Inventor/stats/SoSubPerfCounter.h File Reference

#include <Inventor/SoType.h>

Go to the source code of this file.

Defines

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

Define Documentation

#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;
#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; }

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/