95 |
|
|
96 |
// constructor just initialises private data |
// constructor just initialises private data |
97 |
AStarSearch( int MaxNodes = 1000 ) : |
AStarSearch( int MaxNodes = 1000 ) : |
98 |
m_AllocateNodeCount(0), |
m_CurrentSolutionNode( NULL ), |
99 |
m_FreeNodeCount(0), |
m_FreeNodeCount(0), |
100 |
|
m_AllocateNodeCount(0), |
101 |
// ****KILLED**** |
// ****KILLED**** |
102 |
//m_FixedSizeAllocator( MaxNodes ), |
//m_FixedSizeAllocator( MaxNodes ), |
|
m_CurrentSolutionNode( NULL ), |
|
103 |
m_State( SEARCH_STATE_NOT_INITIALISED ), |
m_State( SEARCH_STATE_NOT_INITIALISED ), |
104 |
m_CancelRequest( false ) |
m_CancelRequest( false ) |
105 |
{ |
{ |
694 |
Node *m_Start; |
Node *m_Start; |
695 |
Node *m_Goal; |
Node *m_Goal; |
696 |
|
|
697 |
Node *m_CurrentSolutionNode; |
Node *m_CurrentSolutionNode; // |
698 |
|
|
699 |
// Memory ****KILLED**** |
// Memory ****KILLED**** |
700 |
//FixedSizeAllocator<Node> m_FixedSizeAllocator; |
//FixedSizeAllocator<Node> m_FixedSizeAllocator; |
705 |
typename vector< Node * >::iterator iterDbgClosed; |
typename vector< Node * >::iterator iterDbgClosed; |
706 |
|
|
707 |
// debugging : count memory allocation and free's |
// debugging : count memory allocation and free's |
708 |
int m_AllocateNodeCount; |
int m_FreeNodeCount; // |
709 |
int m_FreeNodeCount; |
int m_AllocateNodeCount; // |
710 |
|
|
711 |
|
|
712 |
// State |
// State |
713 |
unsigned int m_State; |
unsigned int m_State; |