HOG2
Public Member Functions | Private Attributes | List of all members
OldSearchCode::GraphSearchEnvironment Class Reference

#include <OldSearchEnvironment.h>

Inheritance diagram for OldSearchCode::GraphSearchEnvironment:
Inheritance graph
[legend]
Collaboration diagram for OldSearchCode::GraphSearchEnvironment:
Collaboration graph
[legend]

Public Member Functions

 GraphSearchEnvironment (Graph *_graph)
 
 ~GraphSearchEnvironment ()
 
void getNeighbors (uint32_t nodeID, std::vector< uint32_t > &neighbors)
 GraphSearchEnvironment. More...
 
double heuristic (uint32_t node1, uint32_t node2)
 
double gcost (uint32_t node1, uint32_t node2)
 
- Public Member Functions inherited from OldSearchCode::SearchEnvironment
virtual ~SearchEnvironment ()
 
virtual bool goalTest (uint32_t node, uint32_t goal)
 

Private Attributes

Graphg
 

Detailed Description

Definition at line 40 of file OldSearchEnvironment.h.

Constructor & Destructor Documentation

◆ GraphSearchEnvironment()

OldSearchCode::GraphSearchEnvironment::GraphSearchEnvironment ( Graph _graph)
inline

Definition at line 43 of file OldSearchEnvironment.h.

◆ ~GraphSearchEnvironment()

OldSearchCode::GraphSearchEnvironment::~GraphSearchEnvironment ( )
inline

Definition at line 44 of file OldSearchEnvironment.h.

Member Function Documentation

◆ gcost()

double OldSearchCode::GraphSearchEnvironment::gcost ( uint32_t  node1,
uint32_t  node2 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 84 of file OldSearchEnvironment.cpp.

References heuristic().

◆ getNeighbors()

void OldSearchCode::GraphSearchEnvironment::getNeighbors ( uint32_t  nodeID,
std::vector< uint32_t > &  neighbors 
)
virtual

◆ heuristic()

double OldSearchCode::GraphSearchEnvironment::heuristic ( uint32_t  node1,
uint32_t  node2 
)
virtual

Implements OldSearchCode::SearchEnvironment.

Definition at line 76 of file OldSearchEnvironment.cpp.

References Graph::FindEdge(), g, and edge::GetWeight().

Referenced by gcost().

Member Data Documentation

◆ g

Graph* OldSearchCode::GraphSearchEnvironment::g
private

Definition at line 49 of file OldSearchEnvironment.h.

Referenced by getNeighbors(), and heuristic().


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