|
| Type () |
| Create a new empty type object. More...
|
|
template<typename T > |
| Type (const T &object) |
| Create a type object from the type of the parameter. More...
|
|
| operator const String & () const |
| Return a string representing the unique name of this type. More...
|
|
const String & | toString () const |
| Return a string representing the unique name of this type. More...
|
|
const String & | getName () const |
| Return a string representing the unique name of this type. More...
|
|
Hash | getID () const |
| Return an unsigned integer for this type. Different types may have the same ID. More...
|
|
Hash | getHashCode () const |
| Return an integer hash code for this type. More...
|
|
Bool | operator== (const Type &type) const |
| Return whether or not this type is equal to another. More...
|
|
Bool | operator!= (const Type &type) const |
| Return whether or not this type is not equal to another. More...
|
|
A class that represents a C++ type.
The class consists of a string uniquely identifying the type it represents. This string is retrieved from a C++ type_info object. This allows a C++ type to be used as a first-class object. Type objects can be created from both a statically defined type via the templatized method Type::of<>() or from the dynamic type of an object via a constructor or the Type::of() method. In order for the dynamic type of an object to be determined, at least one class in its inheritance hierarchy must have a virtual method.