RigsofRods
Soft-body Physics Simulation
Public Member Functions | Static Public Member Functions | Data Fields
RefCountingObject< T > Class Template Reference

Self reference-counting objects, as requred by AngelScript garbage collector. More...

#include <RefCountingObject.h>

Public Member Functions

 RefCountingObject ()
 
virtual ~RefCountingObject ()
 
void AddRef ()
 
void Release ()
 

Static Public Member Functions

static void RegisterRefCountingObject (AS_NAMESPACE_QUALIFIER asIScriptEngine *engine, const char *name)
 

Data Fields

int m_refcount = 0
 
std::mutex m_refcount_mtx
 

Detailed Description

template<class T>
class RefCountingObject< T >

Self reference-counting objects, as requred by AngelScript garbage collector.

Definition at line 26 of file RefCountingObject.h.

Constructor & Destructor Documentation

◆ RefCountingObject()

template<class T >
RefCountingObject< T >::RefCountingObject ( )
inline

Definition at line 29 of file RefCountingObject.h.

◆ ~RefCountingObject()

template<class T >
virtual RefCountingObject< T >::~RefCountingObject ( )
inlinevirtual

Definition at line 34 of file RefCountingObject.h.

Member Function Documentation

◆ AddRef()

template<class T >
void RefCountingObject< T >::AddRef ( )
inline

Definition at line 39 of file RefCountingObject.h.

+ Here is the caller graph for this function:

◆ RegisterRefCountingObject()

template<class T >
static void RefCountingObject< T >::RegisterRefCountingObject ( AS_NAMESPACE_QUALIFIER asIScriptEngine *  engine,
const char *  name 
)
inlinestatic

Definition at line 65 of file RefCountingObject.h.

◆ Release()

template<class T >
void RefCountingObject< T >::Release ( )
inline

Definition at line 48 of file RefCountingObject.h.

+ Here is the caller graph for this function:

Field Documentation

◆ m_refcount

template<class T >
int RefCountingObject< T >::m_refcount = 0

Definition at line 81 of file RefCountingObject.h.

◆ m_refcount_mtx

template<class T >
std::mutex RefCountingObject< T >::m_refcount_mtx

Definition at line 82 of file RefCountingObject.h.


The documentation for this class was generated from the following file: