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 by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/