Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoRefCounter.h File Reference
#include <stdio.h>
#include <Inventor/SbBase.h>
#include <Inventor/threads/SbThreadSpinlock.h>
#include <Inventor/errors/SoDebugError.h>
#include <functional>
#include <Inventor/misc/SoAutoRef.h>

Go to the source code of this file.

Classes

class  SoRefCounter
 Base class for ref-counted objects. More...
 

Macros

#define SO_UNREF_RESET(object)
 helper macro usefull in destructor implementation
 

Typedefs

typedef void SoBaseRefCountCB(void *userData, const SoRefCounter *base)
 

Macro Definition Documentation

◆ SO_UNREF_RESET

#define SO_UNREF_RESET (   object)
Value:
{\
if ( object )\
{\
object->unref();\
object=NULL;\
}\
}

helper macro usefull in destructor implementation

Definition at line 234 of file SoRefCounter.h.

Typedef Documentation

◆ SoBaseRefCountCB

typedef void SoBaseRefCountCB(void *userData, const SoRefCounter *base)

Definition at line 36 of file SoRefCounter.h.