20 #if !defined(__MITSUBA_CORE_OBJECT_H_)
21 #define __MITSUBA_CORE_OBJECT_H_
44 inline int getRefCount()
const;
57 void decRef(
bool autoDeallocate =
true)
const;
60 virtual const Class *getClass()
const;
71 virtual std::string toString()
const;
76 static void staticInitialization();
79 static void staticShutdown();
88 #if !defined(_MSC_VER)
89 volatile mutable int m_refCount;
91 volatile mutable long m_refCount;
#define MTS_EXPORT_CORE
Definition: getopt.h:29
static Class * m_theClass
Pointer to the object's class descriptor.
Definition: object.h:86
Stores meta-information about Object instances.
Definition: class.h:43
Parent of all Mitsuba classes.
Definition: object.h:38
int getRefCount() const
Return the current reference count.
Definition: object.h:95