OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
FsmBuilder Class Reference

#include <FsmBuilder.h>

Public Member Functions

template<typename TState , typename ... TArgs>
FsmBuilderstate (std::string_view stateName, TArgs &&... args)
 
FsmBuilderstate (std::string_view stateName, std::unique_ptr< FsmState > state)
 
FsmBuilderon (std::string_view transitionName)
 
FsmBuilderexitFsm ()
 
FsmBuilderjumpTo (std::string_view targetState)
 
FsmBuilderjumpTo (std::function< bool()> condition, std::string_view targetState)
 
std::unique_ptr< Fsmbuild (std::string_view startStateName)
 

Private Attributes

FsmStateEntries _states
 
FsmStateEntry_latestState
 
std::string _latestOnTransition
 

Member Function Documentation

◆ build()

std::unique_ptr< Fsm > FsmBuilder::build ( std::string_view  startStateName)

◆ exitFsm()

FsmBuilder & FsmBuilder::exitFsm ( )

◆ jumpTo() [1/2]

FsmBuilder & FsmBuilder::jumpTo ( std::function< bool()>  condition,
std::string_view  targetState 
)

◆ jumpTo() [2/2]

FsmBuilder & FsmBuilder::jumpTo ( std::string_view  targetState)

◆ on()

FsmBuilder & FsmBuilder::on ( std::string_view  transitionName)

◆ state() [1/2]

FsmBuilder & FsmBuilder::state ( std::string_view  stateName,
std::unique_ptr< FsmState state 
)

◆ state() [2/2]

template<typename TState , typename ... TArgs>
FsmBuilder & FsmBuilder::state ( std::string_view  stateName,
TArgs &&...  args 
)
inline

Member Data Documentation

◆ _latestOnTransition

std::string FsmBuilder::_latestOnTransition
private

◆ _latestState

FsmStateEntry* FsmBuilder::_latestState
private

◆ _states

FsmStateEntries FsmBuilder::_states
private

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