HOG2
Public Member Functions | Private Attributes | List of all members
GraphPuzzleDistanceHeuristic< width, height > Class Template Reference

#include <MNPuzzle.h>

Inheritance diagram for GraphPuzzleDistanceHeuristic< width, height >:
Inheritance graph
[legend]
Collaboration diagram for GraphPuzzleDistanceHeuristic< width, height >:
Collaboration graph
[legend]

Public Member Functions

 GraphPuzzleDistanceHeuristic (MNPuzzle< width, height > &mnp, Graph *graph, int count)
 
double HCost (const graphState &state1, const graphState &state2) const
 
- Public Member Functions inherited from GraphDistanceHeuristic
 GraphDistanceHeuristic (Graph *graph)
 
 ~GraphDistanceHeuristic ()
 
void AddHeuristic (node *n=0)
 
int GetNumHeuristics ()
 
void SetPlacement (placementScheme s)
 
GraphGetGraph ()
 
void ChooseStartGoal (graphState &start, graphState &goal)
 
virtual void OpenGLDraw () const
 
- Public Member Functions inherited from GraphHeuristic
virtual ~GraphHeuristic ()
 

Private Attributes

MNPuzzle< width, heightpuzzle
 

Additional Inherited Members

- Protected Member Functions inherited from GraphDistanceHeuristic
void GetOptimalDistances (node *n, std::vector< double > &values)
 
void AddHeuristic (std::vector< double > &values, graphState location)
 
nodeFindFarNode (node *n)
 
nodeFindAvoidNode (node *n)
 
nodeFindBestChild (int best, std::vector< double > &dist, std::vector< double > &weight)
 
void ComputeSizes (node *n, std::vector< double > &dist, std::vector< double > &weight, std::vector< double > &sizes)
 
- Protected Attributes inherited from GraphDistanceHeuristic
placementScheme placement
 
Graphg
 
std::vector< std::vector< double > > heuristics
 
std::vector< graphStatelocations
 
std::vector< double > dist
 
std::vector< double > weight
 
std::vector< double > sizes
 

Detailed Description

template<int width, int height>
class GraphPuzzleDistanceHeuristic< width, height >

Definition at line 261 of file MNPuzzle.h.

Constructor & Destructor Documentation

◆ GraphPuzzleDistanceHeuristic()

template<int width, int height>
GraphPuzzleDistanceHeuristic< width, height >::GraphPuzzleDistanceHeuristic ( MNPuzzle< width, height > &  mnp,
Graph graph,
int  count 
)

Definition at line 1194 of file MNPuzzle.h.

References GraphDistanceHeuristic::AddHeuristic().

Member Function Documentation

◆ HCost()

template<int width, int height>
double GraphPuzzleDistanceHeuristic< width, height >::HCost ( const graphState state1,
const graphState state2 
) const
virtual

Reimplemented from GraphDistanceHeuristic.

Definition at line 1204 of file MNPuzzle.h.

References fgreater().

Member Data Documentation

◆ puzzle

template<int width, int height>
MNPuzzle<width, height> GraphPuzzleDistanceHeuristic< width, height >::puzzle
private

Definition at line 266 of file MNPuzzle.h.


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