Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
CyclicGraphDomain Struct Reference

Classes

struct  Move
 

Public Types

using State = GraphState
 
using State_Key = size_t
 

Public Member Functions

State_Key state_key (const State &s) const noexcept
 
bool is_goal (const State &s) const noexcept
 
void apply (State &s, const Move &m) const noexcept
 
void undo (State &s, const Move &m) const noexcept
 
template<typename Visitor >
bool for_each_successor (const State &s, Visitor visit) const
 

Detailed Description

Definition at line 77 of file backtracking_cyclic_graph_example.cc.

Member Typedef Documentation

◆ State

◆ State_Key

Member Function Documentation

◆ apply()

void CyclicGraphDomain::apply ( State s,
const Move m 
) const
inlinenoexcept

Definition at line 98 of file backtracking_cyclic_graph_example.cc.

References m.

◆ for_each_successor()

template<typename Visitor >
bool CyclicGraphDomain::for_each_successor ( const State s,
Visitor  visit 
) const
inline

◆ is_goal()

bool CyclicGraphDomain::is_goal ( const State s) const
inlinenoexcept

Definition at line 93 of file backtracking_cyclic_graph_example.cc.

◆ state_key()

State_Key CyclicGraphDomain::state_key ( const State s) const
inlinenoexcept

Definition at line 88 of file backtracking_cyclic_graph_example.cc.

◆ undo()

void CyclicGraphDomain::undo ( State s,
const Move m 
) const
inlinenoexcept

Definition at line 103 of file backtracking_cyclic_graph_example.cc.

References m.


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