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

#include <GraphEnvironment.h>

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

Public Member Functions

 GraphHeuristicContainer (Graph *gg)
 
 ~GraphHeuristicContainer ()
 
virtual GraphGetGraph ()
 
void AddHeuristic (GraphHeuristic *h)
 
virtual double HCost (const graphState &state1, const graphState &state2) const
 
- Public Member Functions inherited from GraphHeuristic
virtual ~GraphHeuristic ()
 
virtual void ChooseStartGoal (graphState &, graphState &)
 
virtual void OpenGLDraw () const
 

Private Attributes

std::vector< GraphHeuristic * > heuristics
 
Graphg
 

Detailed Description

Definition at line 88 of file GraphEnvironment.h.

Constructor & Destructor Documentation

◆ GraphHeuristicContainer()

GraphHeuristicContainer::GraphHeuristicContainer ( Graph gg)
inline

Definition at line 90 of file GraphEnvironment.h.

References g.

◆ ~GraphHeuristicContainer()

GraphHeuristicContainer::~GraphHeuristicContainer ( )
inline

Definition at line 91 of file GraphEnvironment.h.

Member Function Documentation

◆ AddHeuristic()

void GraphHeuristicContainer::AddHeuristic ( GraphHeuristic h)
inline

Definition at line 93 of file GraphEnvironment.h.

References heuristics.

◆ GetGraph()

virtual Graph* GraphHeuristicContainer::GetGraph ( )
inlinevirtual

Implements GraphHeuristic.

Definition at line 92 of file GraphEnvironment.h.

References g.

◆ HCost()

virtual double GraphHeuristicContainer::HCost ( const graphState state1,
const graphState state2 
) const
inlinevirtual

Implements GraphHeuristic.

Definition at line 94 of file GraphEnvironment.h.

References heuristics, and max.

Member Data Documentation

◆ g

Graph* GraphHeuristicContainer::g
private

Definition at line 103 of file GraphEnvironment.h.

Referenced by GetGraph(), and GraphHeuristicContainer().

◆ heuristics

std::vector<GraphHeuristic*> GraphHeuristicContainer::heuristics
private

Definition at line 102 of file GraphEnvironment.h.

Referenced by AddHeuristic(), and HCost().


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