My Project: dynamics.mod/NewtonDynamics/source/core/dgRtti.h File Reference

My Project

Classes | Macros
dgRtti.h File Reference
`#include "dgStdafx.h"`
`#include "dgCRC.h"`

Go to the source code of this file.

## Classes

class | dgRtti

## Macros

#define | dgAddRtti(baseClass)
#define | dgInitRtti(className) dgRtti className::rtti (#className)

## Macro Definition Documentation

## § dgAddRtti

#define dgAddRtti | ( |  | baseClass | ) |

Value:
private: \
static dgRtti rtti; \
public: \
virtual bool IsType (dgUnsigned32 typeId) const \
{ \
if (rtti.IsTypeID (typeId)) { \
return true; \
} \
return baseClass::IsType (typeId); \
} \
virtual dgUnsigned32 GetTypeId () const \
{ \
return rtti.GetTypeId (); \
} \
static dgUnsigned32 GetRttiType() \
{ \
return rtti.GetTypeId(); \
}
dgUnsigned32
unsigned dgUnsigned32
Definition: dgTypes.h:219
dgRtti
Definition: dgRtti.h:28

## § dgInitRtti

#define dgInitRtti | ( |  | className | ) | dgRtti className::rtti (#className)