CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
OdRefCountImpl< T, TInterface > Class Template Reference

#include <RefCountImpl.h>

Inheritance diagram for OdRefCountImpl< T, TInterface >:

Public Member Functions

void addRef ()
 
void release ()
 
long numRefs () const
 

Static Public Member Functions

static OdSmartPtr< TInterface > createObject ()
 

Detailed Description

template<class T, class TInterface = T>
class OdRefCountImpl< T, TInterface >

Template class that provides the reference counting functionality needed to instantiate objects that are descended from OdRxObject.

<group OdRx_Classes>

Definition at line 41 of file RefCountImpl.h.

Member Function Documentation

◆ addRef()

template<class T , class TInterface = T>
void OdRefCountImpl< T, TInterface >::addRef ( )
inline

Increments the reference count.

Definition at line 67 of file RefCountImpl.h.

◆ createObject()

template<class T , class TInterface = T>
static OdSmartPtr< TInterface > OdRefCountImpl< T, TInterface >::createObject ( )
inlinestatic

Creates an instance of OdRefCountImpl<T, TInterface> and returns SmartPointer to it.

Definition at line 92 of file RefCountImpl.h.

◆ numRefs()

template<class T , class TInterface = T>
long OdRefCountImpl< T, TInterface >::numRefs ( ) const
inline

Definition at line 86 of file RefCountImpl.h.

◆ release()

template<class T , class TInterface = T>
void OdRefCountImpl< T, TInterface >::release ( )
inline

Decrements the reference count, and deletes this object if the reference count reaches zero.

Definition at line 76 of file RefCountImpl.h.


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