Gorgon Game Engine
RTTI Class Referenceabstract

This class contains information about a runtime type. More...

Inheritance diagram for RTTI:
[legend]

Public Member Functions

virtual long GetSize () const =0
 Returns the size of the object. More...
 
virtual bool IsConstant () const =0
 Returns if this type is a constant. More...
 
virtual bool IsPointer () const =0
 Returns if this type is pointer. More...
 
virtual bool IsReference () const =0
 Returns if this type is a reference. More...
 
template<class T_ >
bool IsSameType () const
 Compares the type stored with this service to the given type. More...
 
virtual bool IsSameType (const std::type_info &) const =0
 Compares the type stored with this service to the given type info. More...
 
std::string Name () const
 Returns human readable name of the type. More...
 
 operator const std::type_info & () const
 
bool operator!= (const std::type_info &info) const
 
bool operator== (const std::type_info &info) const
 

TypeInfo

virtual const std::type_info & TypeInfo () const =0
 

Detailed Description

This class contains information about a runtime type.

Member Function Documentation

◆ GetSize()

virtual long GetSize ( ) const
pure virtual

Returns the size of the object.

◆ IsConstant()

virtual bool IsConstant ( ) const
pure virtual

Returns if this type is a constant.

◆ IsPointer()

virtual bool IsPointer ( ) const
pure virtual

Returns if this type is pointer.

◆ IsReference()

virtual bool IsReference ( ) const
pure virtual

Returns if this type is a reference.

◆ IsSameType() [1/2]

bool IsSameType ( ) const

Compares the type stored with this service to the given type.

◆ IsSameType() [2/2]

virtual bool IsSameType ( const std::type_info &  ) const
pure virtual

Compares the type stored with this service to the given type info.

◆ Name()

std::string Name ( ) const

Returns human readable name of the type.

References RTTI::TypeInfo().

◆ operator const std::type_info &()

operator const std::type_info & ( ) const

References RTTI::TypeInfo().

◆ operator!=()

bool operator!= ( const std::type_info &  info) const

References RTTI::IsSameType().

◆ operator==()

bool operator== ( const std::type_info &  info) const

References RTTI::IsSameType().

◆ TypeInfo()

virtual const std::type_info& TypeInfo ( ) const
pure virtual

The documentation for this class was generated from the following file: