Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CC_FSM_inl.h

00001 // 00002 // Copyright 2004 P&P Software GmbH - All Rights Reserved 00003 // 00004 // CC_FSM_inl.h 00005 // 00006 // Version 1.0 00007 // Date 13.10.02 00008 // Author A. Pasetti (P&P Software) 00009 00010 #ifndef CC_FSM_INL 00011 #define CC_FSM_INL 00012 00013 #include "../GeneralInclude/CompilerSwitches.h" 00014 #include "../GeneralInclude/DebugSupport.h" 00015 #include "../GeneralInclude/Constants.h" 00016 #include "CC_FSM.h" 00017 00018 inline FsmState* CC_FSM::getState(TD_FsmStateIndex i) const { 00019 assert( numberOfStates > 0 ); 00020 assert( (i < numberOfStates ) && (pState[i] != pNULL) ); 00021 return pState[i]; 00022 } 00023 00024 inline TD_FsmStateIndex CC_FSM::getCurrentState() const { 00025 assert( numberOfStates > 0 ); 00026 return currentState; 00027 } 00028 00029 inline bool CC_FSM::isTransitionEnabled(TD_FsmStateIndex toState) const { 00030 assert( toState < numberOfStates ); 00031 assert( toState >= 0 ); 00032 return transitionEnabled[toState]; 00033 } 00034 00035 inline bool CC_FSM::isTransitionEnabled() const { 00036 return allTransitionEnabled; 00037 } 00038 00039 #endif
Copyright 2003 P&P Software GmbH - All Rights Reserved