HOG2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
aStarOld Class Reference

A sample A* implementation. More...

#include <AStar3.h>

Inheritance diagram for aStarOld:
Inheritance graph
[legend]
Collaboration diagram for aStarOld:
Collaboration graph
[legend]

Public Member Functions

 aStarOld (double _w=1.0, bool _doPathDraw=true)
 
pathGetPath (GraphAbstraction *aMap, node *from, node *to, reservationProvider *rp=0)
 
virtual const char * GetName ()
 
void drawPath (bool _doPathDraw)
 
- Public Member Functions inherited from SearchAlgorithm
 SearchAlgorithm ()
 
virtual ~SearchAlgorithm ()
 
uint64_t GetNodesExpanded ()
 
uint64_t GetNodesTouched ()
 
virtual void LogFinalStats (StatCollection *)
 

Private Member Functions

void relaxEdge (Heap *nodeHeap, Graph *g, edge *e, int source, int nextNode, node *to)
 
pathextractBestPath (Graph *g, unsigned int current)
 

Private Attributes

GraphAbstractionmap
 
double wh
 
char aStarName [128]
 
bool doPathDraw
 

Additional Inherited Members

- Public Attributes inherited from SearchAlgorithm
uint32_t nodesExpanded
 
uint32_t nodesTouched
 

Detailed Description

A sample A* implementation.

Definition at line 26 of file AStar3.h.

Constructor & Destructor Documentation

◆ aStarOld()

aStarOld::aStarOld ( double  _w = 1.0,
bool  _doPathDraw = true 
)

Definition at line 21 of file AStar3.cpp.

References aStarName, doPathDraw, fequal(), and wh.

Member Function Documentation

◆ drawPath()

void aStarOld::drawPath ( bool  _doPathDraw)
inline

Definition at line 32 of file AStar3.h.

References doPathDraw.

◆ extractBestPath()

path * aStarOld::extractBestPath ( Graph g,
unsigned int  current 
)
private

◆ GetName()

virtual const char* aStarOld::GetName ( )
inlinevirtual

Implements SearchAlgorithm.

Definition at line 31 of file AStar3.h.

References aStarName.

◆ GetPath()

path * aStarOld::GetPath ( GraphAbstraction aMap,
node from,
node to,
reservationProvider rp = 0 
)
virtual

◆ relaxEdge()

void aStarOld::relaxEdge ( Heap nodeHeap,
Graph g,
edge e,
int  source,
int  nextNode,
node to 
)
private

Member Data Documentation

◆ aStarName

char aStarOld::aStarName[128]
private

Definition at line 39 of file AStar3.h.

Referenced by aStarOld(), and GetName().

◆ doPathDraw

bool aStarOld::doPathDraw
private

Definition at line 40 of file AStar3.h.

Referenced by aStarOld(), drawPath(), and extractBestPath().

◆ map

GraphAbstraction* aStarOld::map
private

Definition at line 37 of file AStar3.h.

Referenced by GetPath(), and relaxEdge().

◆ wh

double aStarOld::wh
private

Definition at line 38 of file AStar3.h.

Referenced by aStarOld(), GetPath(), and relaxEdge().


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