Inventor/misc/SoRefCounter.h File Reference

#include <stdio.h>
#include <Inventor/SbBase.h>
#include <Inventor/threads/SbThreadSpinlock.h>
#include <Inventor/errors/SoDebugError.h>
#include <Inventor/misc/SoAutoRef.h>

Go to the source code of this file.

Classes

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

Defines

#define SO_UNREF_RESET(object)

Typedefs

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

Define Documentation

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

helper macro usefull in destructor implementation


Typedef Documentation

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

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