HOG2
Public Member Functions | Public Attributes | List of all members
SearchAlgorithm Class Referenceabstract

A generic algorithm which can be used for pathfinding. More...

#include <SearchAlgorithm.h>

Inheritance diagram for SearchAlgorithm:
Inheritance graph
[legend]

Public Member Functions

 SearchAlgorithm ()
 
virtual ~SearchAlgorithm ()
 
virtual const char * GetName ()=0
 
virtual pathGetPath (GraphAbstraction *aMap, node *from, node *to, reservationProvider *rp=0)=0
 
uint64_t GetNodesExpanded ()
 
uint64_t GetNodesTouched ()
 
virtual void LogFinalStats (StatCollection *)
 

Public Attributes

uint32_t nodesExpanded
 
uint32_t nodesTouched
 

Detailed Description

A generic algorithm which can be used for pathfinding.

Definition at line 25 of file SearchAlgorithm.h.

Constructor & Destructor Documentation

◆ SearchAlgorithm()

SearchAlgorithm::SearchAlgorithm ( )
inline

Definition at line 27 of file SearchAlgorithm.h.

References nodesExpanded, and nodesTouched.

◆ ~SearchAlgorithm()

virtual SearchAlgorithm::~SearchAlgorithm ( )
inlinevirtual

Definition at line 28 of file SearchAlgorithm.h.

Member Function Documentation

◆ GetName()

virtual const char* SearchAlgorithm::GetName ( )
pure virtual

◆ GetNodesExpanded()

uint64_t SearchAlgorithm::GetNodesExpanded ( )
inline

◆ GetNodesTouched()

uint64_t SearchAlgorithm::GetNodesTouched ( )
inline

◆ GetPath()

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

◆ LogFinalStats()

virtual void SearchAlgorithm::LogFinalStats ( StatCollection )
inlinevirtual

Definition at line 33 of file SearchAlgorithm.h.

Referenced by patrolUnit::LogFinalStats(), and SearchUnit::LogFinalStats().

Member Data Documentation

◆ nodesExpanded

uint32_t SearchAlgorithm::nodesExpanded

◆ nodesTouched

uint32_t SearchAlgorithm::nodesTouched

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