OpenBarnyard
 
Loading...
Searching...
No Matches
AObjectHash.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "AObjectHash.h"
3
4//-----------------------------------------------------------------------------
5// Enables memory debugging.
6// Note: Should be the last include!
7//-----------------------------------------------------------------------------
9
11
12// $Barnyard: FUNCTION 0061f760
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}
21
22// $Barnyard: FUNCTION 0061f920
23// $Barnyard: FUNCTION 0061f880
25{
26 m_FreeList.RemoveAll();
27
28 if ( m_pAllNodes )
29 delete[] m_pAllNodes;
30}
#define TIMPLEMENT_D(DESC)
Definition Defines.h:137
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
int TINT
Definition Typedefs.h:7
virtual ~AObjectHash()
AObjectHash(TINT a_iNumNodes)