OpenBarnyard
 
Loading...
Searching...
No Matches
TModelManager::ModelNode Class Reference

#include <TModelManager.h>

Inheritance diagram for TModelManager::ModelNode:
T2GenericDList::Node

Public Member Functions

 ModelNode ()
 
 ModelNode (TUINT32 a_CRC32, TModel *a_pModel)
 
TUINT IncRefCount ()
 
TUINT DecRefCount ()
 
void Create (TUINT32 a_CRC32, TModel *a_pModel)
 
TUINT32 GetCRC32 () const
 
TUINT GetRefCount () const
 
TModelGetModel () const
 
ModelNodeoperator= (const ModelNode &a_rOther)
 
- Public Member Functions inherited from T2GenericDList::Node
constexpr Node ()
 
 ~Node ()
 
TBOOL IsLinked () const
 
void InsertBefore (Node *pInsertBefore)
 
void InsertAfter (Node *pInsertAfter)
 
void Remove ()
 
NodeNext () const
 
NodePrev () const
 

Additional Inherited Members

- Protected Attributes inherited from T2GenericDList::Node
friend T2GenericDList
 

Detailed Description

Definition at line 13 of file TModelManager.h.

Constructor & Destructor Documentation

◆ ModelNode() [1/2]

TModelManager::ModelNode::ModelNode ( )
inline

Definition at line 16 of file TModelManager.h.

17 {
18 m_CRC32 = 0;
19 m_uiRefCount = 0;
20 m_pModel = TNULL;
21 }
#define TNULL
Definition Typedefs.h:23

◆ ModelNode() [2/2]

TModelManager::ModelNode::ModelNode ( TUINT32 a_CRC32,
TModel * a_pModel )
inline

Definition at line 23 of file TModelManager.h.

24 {
25 Create( a_CRC32, a_pModel );
26 }
void Create(TUINT32 a_CRC32, TModel *a_pModel)

Member Function Documentation

◆ Create()

void TModelManager::ModelNode::Create ( TUINT32 a_CRC32,
TModel * a_pModel )
inline

Definition at line 40 of file TModelManager.h.

41 {
42 m_CRC32 = a_CRC32;
43 m_uiRefCount = 0;
44 m_pModel = a_pModel;
45 }

◆ DecRefCount()

TUINT TModelManager::ModelNode::DecRefCount ( )
inline

Definition at line 33 of file TModelManager.h.

34 {
35 // TODO: Add something more?
36 TASSERT( m_uiRefCount > 0 );
37 return --m_uiRefCount;
38 }
#define TASSERT(X,...)
Definition Defines.h:138

◆ GetCRC32()

TUINT32 TModelManager::ModelNode::GetCRC32 ( ) const
inline

Definition at line 47 of file TModelManager.h.

47{ return m_CRC32; }

◆ GetModel()

TModel * TModelManager::ModelNode::GetModel ( ) const
inline

Definition at line 49 of file TModelManager.h.

49{ return m_pModel; }

◆ GetRefCount()

TUINT TModelManager::ModelNode::GetRefCount ( ) const
inline

Definition at line 48 of file TModelManager.h.

48{ return m_uiRefCount; }

◆ IncRefCount()

TUINT TModelManager::ModelNode::IncRefCount ( )
inline

Definition at line 28 of file TModelManager.h.

29 {
30 return ++m_uiRefCount;
31 }

◆ operator=()

ModelNode & TModelManager::ModelNode::operator= ( const ModelNode & a_rOther)
inline

Definition at line 51 of file TModelManager.h.

52 {
53 m_CRC32 = a_rOther.m_CRC32;
54 m_uiRefCount = a_rOther.m_uiRefCount;
55 m_pModel = a_rOther.m_pModel;
56 }

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