HOG2
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
PuzzleInferenceRuleSet< State, Action > Class Template Reference

#include <PuzzleInferenceRule.h>

Public Member Functions

virtual void FilterActions (const SearchEnvironment< State, Action > &env, const State &state, std::vector< Action > &actions)
 

Public Attributes

std::vector< std::function< ActionType(const SearchEnvironment< State, Action > &, const State &, const Action &)> > rules
 
std::unordered_map< Action, ActionTypelogics
 

Protected Member Functions

virtual void UpdateActionLogics (const SearchEnvironment< State, Action > &env, const State &state, std::unordered_map< Action, ActionType > &logics) const
 

Detailed Description

template<class State, class Action>
class PuzzleInferenceRuleSet< State, Action >

Definition at line 25 of file PuzzleInferenceRule.h.

Member Function Documentation

◆ FilterActions()

template<class State , class Action >
virtual void PuzzleInferenceRuleSet< State, Action >::FilterActions ( const SearchEnvironment< State, Action > &  env,
const State &  state,
std::vector< Action > &  actions 
)
inlinevirtual

Definition at line 46 of file PuzzleInferenceRule.h.

References CANNOT_TAKE, and MUST_TAKE.

◆ UpdateActionLogics()

template<class State , class Action >
virtual void PuzzleInferenceRuleSet< State, Action >::UpdateActionLogics ( const SearchEnvironment< State, Action > &  env,
const State &  state,
std::unordered_map< Action, ActionType > &  logics 
) const
inlineprotectedvirtual

Member Data Documentation

◆ logics

template<class State , class Action >
std::unordered_map<Action, ActionType> PuzzleInferenceRuleSet< State, Action >::logics

Definition at line 44 of file PuzzleInferenceRule.h.

◆ rules

template<class State , class Action >
std::vector<std::function<ActionType(const SearchEnvironment<State, Action>&, const State&, const Action&)> > PuzzleInferenceRuleSet< State, Action >::rules

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