OpenBarnyard
 
Loading...
Searching...
No Matches
TRefCounted Class Reference

#include <TRefCounted.h>

Inheritance diagram for TRefCounted:
TPooledString8 TRenderInterface TTask TRenderD3DInterface

Public Member Functions

 TRefCounted ()
 
 ~TRefCounted ()
 
TINT DecRefCount ()
 
TINT GetRefCount ()
 
TINT IncRefCount ()
 
TRefCountedoperator= (TRefCounted const &)
 

Protected Attributes

TINT m_iRefCount
 

Detailed Description

Definition at line 5 of file TRefCounted.h.

Constructor & Destructor Documentation

◆ TRefCounted()

TRefCounted::TRefCounted ( )
inline

Definition at line 8 of file TRefCounted.h.

8{ m_iRefCount = 0; }
TINT m_iRefCount
Definition TRefCounted.h:17

◆ ~TRefCounted()

TRefCounted::~TRefCounted ( )
inline

Definition at line 9 of file TRefCounted.h.

9{ m_iRefCount = -1; }

Member Function Documentation

◆ DecRefCount()

TINT TRefCounted::DecRefCount ( )
inline

Definition at line 11 of file TRefCounted.h.

11{ return m_iRefCount--; }

◆ GetRefCount()

TINT TRefCounted::GetRefCount ( )
inline

Definition at line 12 of file TRefCounted.h.

12{ return m_iRefCount; }

◆ IncRefCount()

TINT TRefCounted::IncRefCount ( )
inline

Definition at line 13 of file TRefCounted.h.

13{ return m_iRefCount++; }

◆ operator=()

TRefCounted & TRefCounted::operator= ( TRefCounted const & )
inline

Definition at line 14 of file TRefCounted.h.

14{ return *this; }

Member Data Documentation

◆ m_iRefCount

TINT TRefCounted::m_iRefCount
protected

Definition at line 17 of file TRefCounted.h.


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