Main   Class Hierarchy   Classes   Compound List   Files   Compound Members   File Members   Pages  

PathFind::AStarNode Class Reference

#include <astar.h>

List of all members.


Detailed Description

Node used in implementation of AStar.

Definition at line 28 of file astar.h.

Public Member Functions

 AStarNode ()
 AStarNode (int nodeId, int parent, int g, int h)
void print (ostream &ostrm) const

Public Attributes

int m_nodeId
int m_parent
int m_g
int m_h
int m_f


Constructor & Destructor Documentation

PathFind::AStarNode::AStarNode  )  [inline]
 

Definition at line 51 of file astar.h.

PathFind::AStarNode::AStarNode int  nodeId,
int  parent,
int  g,
int  h
[inline]
 

Definition at line 55 of file astar.h.


Member Function Documentation

void AStarNode::print ostream &  ostrm  )  const
 

Definition at line 42 of file astar.cpp.

References m_f, m_g, m_h, m_nodeId, and m_parent.


Member Data Documentation

int PathFind::AStarNode::m_f
 

Definition at line 49 of file astar.h.

Referenced by PathFind::AStar< MARKER, CLOSED >::finishSearch(), PathFind::AStarNode::Compare::operator()(), and print().

int PathFind::AStarNode::m_g
 

Definition at line 45 of file astar.h.

Referenced by PathFind::AStar< MARKER, CLOSED >::findPathAStar(), PathFind::AStarNode::Compare::operator()(), and print().

int PathFind::AStarNode::m_h
 

Definition at line 47 of file astar.h.

Referenced by print().

int PathFind::AStarNode::m_nodeId
 

Definition at line 41 of file astar.h.

Referenced by PathFind::AStarClosedLookup< MARKER >::add(), PathFind::AStar< MARKER, CLOSED >::findPathAStar(), PathFind::AStar< MARKER, CLOSED >::getBestNodeFromOpen(), PathFind::AStarOpen< MARKER >::insert(), PathFind::AStarOpen< MARKER >::pop(), and print().

int PathFind::AStarNode::m_parent
 

Definition at line 43 of file astar.h.

Referenced by PathFind::AStarClosedLookup< MARKER >::constructPath(), PathFind::AStarClosed::constructPath(), and print().


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


Generated on Thu Aug 7 13:05:20 2003 by Doxygen1.3.1