Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoSubPerfCounter.h File Reference
#include <Inventor/SoType.h>

Go to the source code of this file.

Macros

#define SO_PERF_COUNTER_HEADER(className)
 
#define SO_PERF_COUNTER_SOURCE(className, inheritClass)
 

Macro Definition Documentation

◆ SO_PERF_COUNTER_HEADER

#define SO_PERF_COUNTER_HEADER (   className)
Value:
public: \
static void initClass(); \
static void exitClass(); \
static SoType getClassTypeId(); \
virtual SoType getTypeId() const; \
private: \
static SoType m_classTypeId;
virtual SoType getTypeId() const
Returns the type identifier for this specific instance.
Stores runtime type information.
Definition SoType.h:98

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() { \
if (m_classTypeId != SoType::badType()) { \
SoType::removeType(m_classTypeId.getName()); \
m_classTypeId = SoType::badType(); \
} \
} \
SoType className::getClassTypeId() { return className::m_classTypeId; } \
SoType className::getTypeId() const { return className::m_classTypeId; }
static SoType badType()
Returns an always-illegal type.
Definition SoType.h:124

Definition at line 50 of file SoSubPerfCounter.h.