StateMachine Class Reference

List of all members.

Public Member Functions

 StateMachine ()
int getTransition (int state, UInt8 input) const
int getStateStr (int state, UInt8 input) const
int addState ()
void setStateAccept (int state)
void addTransition (int transitionsState, UInt8 input, int nextState, int inputSelection)
void debug () const
void removeDuplicateState (int state1, int state2)

Public Attributes

vector< state_tm_states

Static Public Attributes

static const int start = 0
static const int invalid = -1

Classes

struct  state_t
struct  transition_t

Detailed Description

Definition at line 59 of file OW_GenCaseFoldingCompare.cpp.


Constructor & Destructor Documentation

StateMachine::StateMachine  )  [inline]
 

Definition at line 65 of file OW_GenCaseFoldingCompare.cpp.

References m_states.


Member Function Documentation

int StateMachine::addState  )  [inline]
 

Definition at line 82 of file OW_GenCaseFoldingCompare.cpp.

References m_states, and state.

Referenced by followOrAddTransition().

void StateMachine::addTransition int  transitionsState,
UInt8  input,
int  nextState,
int  inputSelection
[inline]
 

Definition at line 98 of file OW_GenCaseFoldingCompare.cpp.

References invalid, and m_states.

Referenced by followOrAddTransition().

void StateMachine::debug  )  const [inline]
 

Definition at line 109 of file OW_GenCaseFoldingCompare.cpp.

References DEBUG, and m_states.

int StateMachine::getStateStr int  state,
UInt8  input
const [inline]
 

Definition at line 76 of file OW_GenCaseFoldingCompare.cpp.

References m_states.

Referenced by followOrAddTransition().

int StateMachine::getTransition int  state,
UInt8  input
const [inline]
 

Definition at line 70 of file OW_GenCaseFoldingCompare.cpp.

References m_states.

Referenced by followOrAddTransition().

void StateMachine::removeDuplicateState int  state1,
int  state2
[inline]
 

Definition at line 114 of file OW_GenCaseFoldingCompare.cpp.

References i, and m_states.

Referenced by minimizeStateMachine().

void StateMachine::setStateAccept int  state  )  [inline]
 

Definition at line 90 of file OW_GenCaseFoldingCompare.cpp.

References m_states.


Member Data Documentation

const int StateMachine::invalid = -1 [static]
 

Definition at line 63 of file OW_GenCaseFoldingCompare.cpp.

Referenced by addTransition(), followOrAddTransition(), and minimizeStateMachine().

vector<state_t> StateMachine::m_states
 

Definition at line 168 of file OW_GenCaseFoldingCompare.cpp.

Referenced by addState(), addTransition(), debug(), findDuplicateStates(), getStateStr(), getTransition(), outputCode(), removeDuplicateState(), setStateAccept(), and StateMachine().

const int StateMachine::start = 0 [static]
 

Definition at line 62 of file OW_GenCaseFoldingCompare.cpp.

Referenced by buildTransitions().


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 09:12:14 2006 for openwbem by  doxygen 1.4.6