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

#include <IRDijkstra.h>

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

Public Member Functions

 IRDijkstra ()
 
virtual ~IRDijkstra ()
 
virtual const char * GetName ()
 
virtual pathGetPath (GraphAbstraction *aMap, node *from, node *to, reservationProvider *rp=0)
 
pathDoOneSearchStep ()
 
bool InitializeSearch (GraphAbstraction *aMap, node *from, node *to)
 
void OpenGLDraw () const
 
int GetNodesRefined ()
 
- Public Member Functions inherited from SearchAlgorithm
 SearchAlgorithm ()
 
virtual ~SearchAlgorithm ()
 
uint64_t GetNodesExpanded ()
 
uint64_t GetNodesTouched ()
 
virtual void LogFinalStats (StatCollection *)
 

Private Member Functions

nodeFindTopLevelNode (node *one, node *two, GraphAbstraction *aMap)
 
void SetInitialValues (node *gNewNode, node *aRealNode, node *gParent)
 
void RefineNode (node *gNode)
 
nodeGetRealNode (node *gNode) const
 
bool ShouldAddEdge (node *aLowerNode, node *aHigherNode)
 
void GetAllSolutionNodes (node *goal, std::vector< node * > &nodes)
 
void ExpandNeighbors (node *gNode)
 
pathExtractAndRefinePath ()
 
pathGetSolution (node *gNode)
 

Private Attributes

IRDijkstraConstants::PQueue q
 
IRDijkstraConstants::NodeLookupTable closedList
 
nodeaStart
 
nodeaGoal
 
nodegStart
 
nodegGoal
 
GraphAbstractionabsGraph
 
Graphg
 
int nodesRefined
 
bool done
 

Additional Inherited Members

- Public Attributes inherited from SearchAlgorithm
uint32_t nodesExpanded
 
uint32_t nodesTouched
 

Detailed Description

Definition at line 68 of file IRDijkstra.h.

Constructor & Destructor Documentation

◆ IRDijkstra()

IRDijkstra::IRDijkstra ( )

Definition at line 15 of file IRDijkstra.cpp.

References g.

◆ ~IRDijkstra()

IRDijkstra::~IRDijkstra ( )
virtual

Definition at line 21 of file IRDijkstra.cpp.

Member Function Documentation

◆ DoOneSearchStep()

path * IRDijkstra::DoOneSearchStep ( )

◆ ExpandNeighbors()

void IRDijkstra::ExpandNeighbors ( node gNode)
private

◆ ExtractAndRefinePath()

path * IRDijkstra::ExtractAndRefinePath ( )
private

◆ FindTopLevelNode()

node * IRDijkstra::FindTopLevelNode ( node one,
node two,
GraphAbstraction aMap 
)
private

◆ GetAllSolutionNodes()

void IRDijkstra::GetAllSolutionNodes ( node goal,
std::vector< node * > &  nodes 
)
private

◆ GetName()

const char * IRDijkstra::GetName ( )
virtual

Implements SearchAlgorithm.

Definition at line 25 of file IRDijkstra.cpp.

◆ GetNodesRefined()

int IRDijkstra::GetNodesRefined ( )
inline

Definition at line 77 of file IRDijkstra.h.

References nodesRefined.

◆ GetPath()

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

Implements SearchAlgorithm.

Definition at line 30 of file IRDijkstra.cpp.

References DoOneSearchStep(), and InitializeSearch().

◆ GetRealNode()

node * IRDijkstra::GetRealNode ( node gNode) const
private

◆ GetSolution()

path * IRDijkstra::GetSolution ( node gNode)
private

◆ InitializeSearch()

bool IRDijkstra::InitializeSearch ( GraphAbstraction aMap,
node from,
node to 
)

◆ OpenGLDraw()

void IRDijkstra::OpenGLDraw ( ) const

◆ RefineNode()

void IRDijkstra::RefineNode ( node gNode)
private

◆ SetInitialValues()

void IRDijkstra::SetInitialValues ( node gNewNode,
node aRealNode,
node gParent 
)
private

◆ ShouldAddEdge()

bool IRDijkstra::ShouldAddEdge ( node aLowerNode,
node aHigherNode 
)
private

Member Data Documentation

◆ absGraph

GraphAbstraction* IRDijkstra::absGraph
private

◆ aGoal

node * IRDijkstra::aGoal
private

Definition at line 98 of file IRDijkstra.h.

Referenced by InitializeSearch(), and SetInitialValues().

◆ aStart

node* IRDijkstra::aStart
private

Definition at line 98 of file IRDijkstra.h.

Referenced by InitializeSearch(), and SetInitialValues().

◆ closedList

IRDijkstraConstants::NodeLookupTable IRDijkstra::closedList
private

◆ done

bool IRDijkstra::done
private

Definition at line 103 of file IRDijkstra.h.

Referenced by DoOneSearchStep(), and ExtractAndRefinePath().

◆ g

Graph* IRDijkstra::g
private

◆ gGoal

node * IRDijkstra::gGoal
private

◆ gStart

node* IRDijkstra::gStart
private

Definition at line 99 of file IRDijkstra.h.

Referenced by ExtractAndRefinePath(), InitializeSearch(), OpenGLDraw(), and SetInitialValues().

◆ nodesRefined

int IRDijkstra::nodesRefined
private

Definition at line 102 of file IRDijkstra.h.

Referenced by GetNodesRefined(), InitializeSearch(), and RefineNode().

◆ q

IRDijkstraConstants::PQueue IRDijkstra::q
private

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