#include <msmazes/core/fsm/builder.hpp>
Parameter | Description | Default |
---|---|---|
PatternType | The type of the underlying pattern. | |
ArgumentValidationPolicyType | The argument validation policy that will determine the acceptance or rejection of initialization arguments. | DefaultArgumentValidationPolicy |
PatternType
must model the Pattern concept. ArgumentValidationPolicyType
must model the Argument Validation Policy concept.
Public Types | |
typedef implementation_defined | ArgumentValidationPolicy |
typedef implementation_defined | Pattern |
typedef implementation_defined | Cell |
typedef implementation_defined | Direction |
typedef unspecified | MazeGraph |
typedef unspecified | InputIndex |
typedef unspecified | StateIndex |
Public Member Functions | |
FSMBuilder () | |
The default constructor. | |
virtual | ~FSMBuilder () |
The destructor. | |
const Pattern & | getPattern () const |
const MazeGraph & | getMazeGraph () const |
bool | isReady () const |
template<typename TransitionFunction> | |
void | buildTransitionFunction (TransitionFunction &transition_function) const |
StateIndex | getSourceState () const |
StateIndex | getTargetState () const |
bool | hasSolutionFromState (const StateIndex source_state) const |
InputIndex | getCorrectInput (const StateIndex source_state) const |
const Cell & | getStateCell (const StateIndex state) const |
Direction | getStateDirection (const StateIndex state) const |
Protected Types | |
typedef implementation_defined | MazeStructType |
Protected Member Functions | |
template<typename RNGEngine, typename MazeMaker, typename FSMInputMaker, typename MazePolicy, typename ArgumentPack> | |
bool | initialize (RNGEngine &rng_engine, const MazeMaker &maze_maker, const FSMInputMaker &input_maker, const MazePolicy &policy, const ArgumentPack &p) |
const MazeStructType & | getMazeStruct () const |
|
The Argument Validation Policy in effect, as defined in the FSM Builder concept. |
|
The type of the underlying pattern, as defined in the FSM Builder concept. |
|
The type of the cells in the underlying pattern, as defined in the FSM Builder concept. |
|
The type representing the course or bearing that is followed when traversing an edge in the underlying pattern's internal graph, as defined in the FSM Builder concept. |
|
The type of the data structure that stores the underlying maze graph and the solution path's source and target vertices. |
|
The type of the underlying maze graph, as defined in the FSM Builder concept. |
|
The type representing the index of an edge in the underlying maze graph, as defined in the FSM Builder concept. |
|
The type representing the index of a vertex in the underlying maze graph, as defined in the FSM Builder concept. |
|
Constructs this |
|
Destroys this |
|
If the argument validation policy in effect accepts the specified arguments, initializes the underlying pattern with the specified Argument Pack object, builds the underlying maze graph, then returns
|
|
Returns the data structure that stores the underlying maze graph.
|
|
Returns a const reference to the underlying pattern, as defined in the FSM Builder concept. |
|
Returns a const reference to the underlying maze graph, as defined in the FSM Builder concept. |
|
Returns the readiness of this |
|
Builds the specified transition function according to the structure of the underlying maze graph and its property maps, as defined in the FSM Builder concept. |
|
Returns the finite state machine's source state, as defined in the <a class="concept"href="concept__fsm__builder.html">FSM Builder concept. |
|
Returns the finite state machine's target state, as defined in the FSM Builder concept. |
|
Indicates whether or not it is possible for the finite state machine to reach the target state from the specified state, as defined in the FSM Builder concept. |
|
Returns the input that brings the finite state machine one step closer to its target state, as defined in the FSM Builder concept. |
|
Returns the cell that the maze graph's cell index map pairs the specified state with, as defined in the FSM Builder concept. |
|
Returns the direction from the last-visited cell to the cell that the maze graph's cell index map pairs the specified state with, as defined in the FSM Builder concept. |
Multi-State Mazes in C++ is hosted by . Use the Table of Contents for navigation.