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

#include <TopSpinGraph.h>

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

Public Member Functions

 TopSpinGraphHeuristic (int psize, int spin, int pdb)
 
 TopSpinGraphHeuristic ()
 
GraphGetGraph ()
 
void SetState (TopSpinGraph *tss)
 
virtual ~TopSpinGraphHeuristic ()
 
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
 

Static Public Attributes

static int THmode = 0
 

Private Attributes

TopSpinGraphts
 
int pdb
 
std::vector< uint8_t > DB
 

Detailed Description

Definition at line 19 of file TopSpinGraph.h.

Constructor & Destructor Documentation

◆ TopSpinGraphHeuristic() [1/2]

TopSpinGraphHeuristic::TopSpinGraphHeuristic ( int  psize,
int  spin,
int  pdb 
)

Definition at line 256 of file TopSpinGraph.cpp.

References DB, TopSpinGraph::GetPDBSize(), pdb, and ts.

◆ TopSpinGraphHeuristic() [2/2]

TopSpinGraphHeuristic::TopSpinGraphHeuristic ( )

Definition at line 251 of file TopSpinGraph.cpp.

◆ ~TopSpinGraphHeuristic()

virtual TopSpinGraphHeuristic::~TopSpinGraphHeuristic ( )
inlinevirtual

Definition at line 25 of file TopSpinGraph.h.

Member Function Documentation

◆ GetGraph()

Graph* TopSpinGraphHeuristic::GetGraph ( )
inlinevirtual

Implements GraphHeuristic.

Definition at line 23 of file TopSpinGraph.h.

◆ HCost()

double TopSpinGraphHeuristic::HCost ( const graphState state1,
const graphState state2 
) const
virtual

Implements GraphHeuristic.

Definition at line 274 of file TopSpinGraph.cpp.

References DB, TopSpinGraph::Dual(), TopSpinGraph::GetPDBHash(), pdb, THmode, and ts.

◆ SetState()

void TopSpinGraphHeuristic::SetState ( TopSpinGraph tss)
inline

Definition at line 24 of file TopSpinGraph.h.

References ts.

Member Data Documentation

◆ DB

std::vector<uint8_t> TopSpinGraphHeuristic::DB
private

Definition at line 32 of file TopSpinGraph.h.

Referenced by HCost(), and TopSpinGraphHeuristic().

◆ pdb

int TopSpinGraphHeuristic::pdb
private

Definition at line 31 of file TopSpinGraph.h.

Referenced by HCost(), and TopSpinGraphHeuristic().

◆ THmode

int TopSpinGraphHeuristic::THmode = 0
static

Definition at line 28 of file TopSpinGraph.h.

Referenced by HCost().

◆ ts

TopSpinGraph* TopSpinGraphHeuristic::ts
private

Definition at line 30 of file TopSpinGraph.h.

Referenced by HCost(), SetState(), and TopSpinGraphHeuristic().


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