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

#include <Heuristic.h>

Inheritance diagram for OffsetHeuristic< state >:
Inheritance graph
[legend]
Collaboration diagram for OffsetHeuristic< state >:
Collaboration graph
[legend]

Public Member Functions

 OffsetHeuristic (Heuristic< state > *h, double off)
 
double HCost (const state &a, const state &b) const
 
void SetOffset (double w)
 
- Public Member Functions inherited from Heuristic< state >
 Heuristic ()
 
virtual ~Heuristic ()
 

Public Attributes

Heuristic< state > * h
 
double offset
 
- Public Attributes inherited from Heuristic< state >
std::vector< HeuristicTreeNodelookups
 
std::vector< Heuristic * > heuristics
 
uint64_t histogram [256]
 

Detailed Description

template<class state>
class OffsetHeuristic< state >

Definition at line 60 of file Heuristic.h.

Constructor & Destructor Documentation

◆ OffsetHeuristic()

template<class state >
OffsetHeuristic< state >::OffsetHeuristic ( Heuristic< state > *  h,
double  off 
)
inline

Definition at line 62 of file Heuristic.h.

Member Function Documentation

◆ HCost()

template<class state >
double OffsetHeuristic< state >::HCost ( const state &  a,
const state &  b 
) const
inlinevirtual

Reimplemented from Heuristic< state >.

Definition at line 63 of file Heuristic.h.

References OffsetHeuristic< state >::h, max, and OffsetHeuristic< state >::offset.

◆ SetOffset()

template<class state >
void OffsetHeuristic< state >::SetOffset ( double  w)
inline

Definition at line 64 of file Heuristic.h.

References OffsetHeuristic< state >::offset.

Member Data Documentation

◆ h

template<class state >
Heuristic<state>* OffsetHeuristic< state >::h

Definition at line 66 of file Heuristic.h.

Referenced by OffsetHeuristic< state >::HCost().

◆ offset

template<class state >
double OffsetHeuristic< state >::offset

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