Classes | Functions
ionClass.h File Reference

Methods and classes for rudimentary reflection and other class related functionality. More...

#include <ionConfig.h>
#include <typeinfo>
Include dependency graph for ionClass.h:

Go to the source code of this file.

Classes

class  Singleton< Implementation >
 Base class for Singleton design pattern implementation. More...
 
class  SingletonPointer< T >
 Wraps a pointer to a singleton object. More...
 
struct  Type
 Lightweight wrapper for std::type_info that enables sorting (e.g. for use in a std::map) More...
 

Functions

template<typename T , typename U >
bool InstanceOf (U *Object)
 Check whether an object is an instance of a type. More...
 
template<typename T , typename U >
bool InstanceOf (U &Object)
 Check whether an object is an instance of a type. More...
 
template<typename T , typename U >
T * As (U *Object)
 Casts an object as a different type, performing a validity check. More...
 
template<typename T , typename U >
T const * As (U const *Object)
 Casts a constant object as a different type, performing a validity check. More...
 
template<typename T , typename U >
T & As (U &Object)
 Casts an object as a different type, performing a validity check. More...
 
template<typename T , typename U >
T const & As (U const &Object)
 Casts a constant object as a different type, performing a validity check. More...
 

Detailed Description

Methods and classes for rudimentary reflection and other class related functionality.

Methods and classes for performing comparisons between numbers.