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

#include <AObjectHash.h>

Inheritance diagram for AObjectHash:
AObjectHashMain

Classes

struct  Node
 

Public Member Functions

 AObjectHash (TINT a_iNumNodes)
 
virtual ~AObjectHash ()
 

Static Public Attributes

static constexpr TUINT NUM_LISTS = 4096
 

Detailed Description

Definition at line 4 of file AObjectHash.h.

Constructor & Destructor Documentation

◆ AObjectHash()

AObjectHash::AObjectHash ( TINT a_iNumNodes)

Definition at line 13 of file AObjectHash.cpp.

14{
15 TIMPLEMENT_D( "Initialise some values" );
16
17 m_pAllNodes = new Node[ a_iNumNodes ];
18 for ( TINT i = 0; i < a_iNumNodes; i++ )
19 m_FreeList.InsertHead( &m_pAllNodes[ i ] );
20}
#define TIMPLEMENT_D(DESC)
Definition Defines.h:137
int TINT
Definition Typedefs.h:7

◆ ~AObjectHash()

AObjectHash::~AObjectHash ( )
virtual

Definition at line 24 of file AObjectHash.cpp.

25{
26 m_FreeList.RemoveAll();
27
28 if ( m_pAllNodes )
29 delete[] m_pAllNodes;
30}

Member Data Documentation

◆ NUM_LISTS

TUINT AObjectHash::NUM_LISTS = 4096
inlinestaticconstexpr

Definition at line 7 of file AObjectHash.h.


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