HOG2
Public Member Functions | Public Attributes | List of all members
IndexOpenClosedData< state > Class Template Reference

This open/closed list is designed for state spaces where the hash is an index that is small enough that we can create a table for all indices. More...

#include <IndexOpenClosed.h>

Public Member Functions

 IndexOpenClosedData ()
 
 IndexOpenClosedData (const state &theData, double gCost, double hCost, uint64_t parent, uint64_t openLoc, dataLocation location)
 

Public Attributes

state data
 
double g
 
double h
 
uint64_t parentID
 
uint64_t openLocation
 
uint64_t round
 
bool reopened
 
dataLocation where
 

Detailed Description

template<typename state>
class IndexOpenClosedData< state >

This open/closed list is designed for state spaces where the hash is an index that is small enough that we can create a table for all indices.

This avoids the need for a hash table for looking up states - they can be looked up directly.

Definition at line 22 of file IndexOpenClosed.h.

Constructor & Destructor Documentation

◆ IndexOpenClosedData() [1/2]

template<typename state >
IndexOpenClosedData< state >::IndexOpenClosedData ( )
inline

Definition at line 24 of file IndexOpenClosed.h.

◆ IndexOpenClosedData() [2/2]

template<typename state >
IndexOpenClosedData< state >::IndexOpenClosedData ( const state &  theData,
double  gCost,
double  hCost,
uint64_t  parent,
uint64_t  openLoc,
dataLocation  location 
)
inline

Definition at line 25 of file IndexOpenClosed.h.

References IndexOpenClosedData< state >::reopened.

Member Data Documentation

◆ data

template<typename state >
state IndexOpenClosedData< state >::data

Definition at line 27 of file IndexOpenClosed.h.

◆ g

template<typename state >
double IndexOpenClosedData< state >::g

Definition at line 28 of file IndexOpenClosed.h.

Referenced by IndexCompare< state >::operator()().

◆ h

template<typename state >
double IndexOpenClosedData< state >::h

Definition at line 29 of file IndexOpenClosed.h.

Referenced by IndexCompare< state >::operator()().

◆ openLocation

template<typename state >
uint64_t IndexOpenClosedData< state >::openLocation

Definition at line 31 of file IndexOpenClosed.h.

◆ parentID

template<typename state >
uint64_t IndexOpenClosedData< state >::parentID

Definition at line 30 of file IndexOpenClosed.h.

◆ reopened

template<typename state >
bool IndexOpenClosedData< state >::reopened

Definition at line 33 of file IndexOpenClosed.h.

Referenced by IndexOpenClosedData< state >::IndexOpenClosedData().

◆ round

template<typename state >
uint64_t IndexOpenClosedData< state >::round

Definition at line 32 of file IndexOpenClosed.h.

◆ where

template<typename state >
dataLocation IndexOpenClosedData< state >::where

Definition at line 34 of file IndexOpenClosed.h.


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