Inventor/misc/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...
struct  SoRefCounter::OnDeleteCB

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 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/