Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
statemap::FSMContext Class Referenceabstract

#include <statemap.h>

Classes

class  StateEntry
 

Public Member Functions

void clearState ()
 
void emptyStateStack ()
 
virtual void enterStartState ()=0
 
bool getDebugFlag ()
 
StategetPreviousState ()
 
int getStateStackDepth () const
 
char * getTransition ()
 
bool isInTransition () const
 
bool isStateStackEmpty () const
 
FSMContextoperator= (const FSMContext &fsm)
 
void popState ()
 
void pushState (const State &state)
 
int same (const FSMContext &fsm) const
 
void setDebugFlag (bool flag)
 
void setState (const State &state)
 
void setTransition (const char *transition)
 
virtual ~FSMContext ()
 

Protected Member Functions

 FSMContext (const State &state)
 

Protected Attributes

State_previous_state
 
State_state
 
StateEntry_state_stack
 
char * _transition
 

Private Member Functions

 FSMContext (const FSMContext &)
 

Private Attributes

bool _debug_flag
 

Detailed Description

Definition at line 440 of file statemap.h.

Constructor & Destructor Documentation

◆ ~FSMContext()

virtual statemap::FSMContext::~FSMContext ( )
inlinevirtual

Definition at line 498 of file statemap.h.

◆ FSMContext() [1/2]

statemap::FSMContext::FSMContext ( const State state)
inlineprotected

Definition at line 734 of file statemap.h.

◆ FSMContext() [2/2]

statemap::FSMContext::FSMContext ( const FSMContext )
inlineprivate

Definition at line 755 of file statemap.h.

Member Function Documentation

◆ clearState()

void statemap::FSMContext::clearState ( )
inline

Definition at line 600 of file statemap.h.

◆ emptyStateStack()

void statemap::FSMContext::emptyStateStack ( )
inline

Definition at line 716 of file statemap.h.

◆ enterStartState()

virtual void statemap::FSMContext::enterStartState ( )
pure virtual

◆ getDebugFlag()

bool statemap::FSMContext::getDebugFlag ( )
inline

Definition at line 542 of file statemap.h.

◆ getPreviousState()

State* statemap::FSMContext::getPreviousState ( )
inline

Definition at line 608 of file statemap.h.

◆ getStateStackDepth()

int statemap::FSMContext::getStateStackDepth ( ) const
inline

Definition at line 639 of file statemap.h.

◆ getTransition()

char* statemap::FSMContext::getTransition ( )
inline

Definition at line 579 of file statemap.h.

◆ isInTransition()

bool statemap::FSMContext::isInTransition ( ) const
inline

Definition at line 572 of file statemap.h.

◆ isStateStackEmpty()

bool statemap::FSMContext::isStateStackEmpty ( ) const
inline

Definition at line 633 of file statemap.h.

◆ operator=()

FSMContext& statemap::FSMContext::operator= ( const FSMContext fsm)
inline

Definition at line 519 of file statemap.h.

◆ popState()

void statemap::FSMContext::popState ( )
inline

Definition at line 683 of file statemap.h.

◆ pushState()

void statemap::FSMContext::pushState ( const State state)
inline

Definition at line 654 of file statemap.h.

◆ same()

int statemap::FSMContext::same ( const FSMContext fsm) const
inline

Definition at line 536 of file statemap.h.

◆ setDebugFlag()

void statemap::FSMContext::setDebugFlag ( bool  flag)
inline

Definition at line 549 of file statemap.h.

◆ setState()

void statemap::FSMContext::setState ( const State state)
inline

Definition at line 614 of file statemap.h.

◆ setTransition()

void statemap::FSMContext::setTransition ( const char *  transition)
inline

Definition at line 586 of file statemap.h.

Member Data Documentation

◆ _debug_flag

bool statemap::FSMContext::_debug_flag
private

Definition at line 779 of file statemap.h.

◆ _previous_state

State* statemap::FSMContext::_previous_state
protected

Definition at line 767 of file statemap.h.

◆ _state

State* statemap::FSMContext::_state
protected

Definition at line 756 of file statemap.h.

◆ _state_stack

StateEntry* statemap::FSMContext::_state_stack
protected

Definition at line 770 of file statemap.h.

◆ _transition

char* statemap::FSMContext::_transition
protected

Definition at line 774 of file statemap.h.


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


smclib
Author(s): Various
autogenerated on Tue Mar 1 2022 23:53:36