Go to the source code of this file.
◆ SO_PERF_COUNTER_HEADER
Value:public: \
static void initClass(); \
static void exitClass(); \
static SoType getClassTypeId(); \
private: \
virtual SoType getTypeId() const
Returns the type identifier for this specific instance.
Stores runtime type information.
Definition at line 33 of file SoSubPerfCounter.h.
◆ SO_PERF_COUNTER_SOURCE
#define SO_PERF_COUNTER_SOURCE |
( |
|
className, |
|
|
|
inheritClass |
|
) |
| |
Value:SoType className::m_classTypeId; \
void className::initClass() { \
if (m_classTypeId.isBad()) { \
if (inheritClass::getClassTypeId().isBad() ) \
inheritClass::initClass(); \
m_classTypeId = SoType::createType(inheritClass::getClassTypeId(), #
className); \
m_classTypeId.makeInternal(); \
} \
} \
void className::exitClass() { \
SoType::removeType(m_classTypeId.getName()); \
} \
} \
SoType className::getClassTypeId() {
return className::m_classTypeId; } \
SoType className::getTypeId()
const {
return className::m_classTypeId; }
static SoType badType()
Returns an always-illegal type.
Definition at line 50 of file SoSubPerfCounter.h.