Apache Mesos
Public Member Functions | List of all members
process::StateMachine< State > Class Template Reference

#include <state_machine.hpp>

Public Member Functions

 StateMachine (State initial)
 
template<State from, State to, typename F >
Try< typename result_of< F()>
::type > 
transition (F &&f, Option< std::string > &&message=None())
 
template<State from, State to>
Try< Nothingtransition (Option< std::string > &&message=None())
 
template<State s>
bool is () const
 
template<State s>
Future< Nothingwhen ()
 

Constructor & Destructor Documentation

template<typename State >
process::StateMachine< State >::StateMachine ( State  initial)
inline

Member Function Documentation

template<typename State >
template<State s>
bool process::StateMachine< State >::is ( ) const
inline
template<typename State >
template<State from, State to, typename F >
Try<typename result_of<F()>::type> process::StateMachine< State >::transition ( F &&  f,
Option< std::string > &&  message = None() 
)
inline
template<typename State >
template<State from, State to>
Try<Nothing> process::StateMachine< State >::transition ( Option< std::string > &&  message = None())
inline
template<typename State >
template<State s>
Future<Nothing> process::StateMachine< State >::when ( )
inline

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