Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

mpcl::text::TDirectiveDFA< TState, TEvent > Class Template Reference

Inheritance diagram for mpcl::text::TDirectiveDFA< TState, TEvent >:

mpcl::automaton::TDeterministicFiniteAutomaton< TState, TEvent > List of all members.

Public Methods

 TDirectiveDFA (void)
 Builds a new instance.

bool next (TState tSOURCE_STATE, TEvent tSOURCE_EVENT, TState &rtTARGET_STATE) const

Detailed Description

template<typename TState, typename TEvent>
class mpcl::text::TDirectiveDFA< TState, TEvent >

Deterministic Finite Automaton for formatting directives like std::printf() has.
See also:
std::printf().
\warning: It must be stateless to make this thread-safe. \warning: It doesn't use inherited final state set. To make things faster, it already knows the final states.

Definition at line 169 of file string.cc.


Member Function Documentation

template<typename TState, typename TEvent>
bool mpcl::text::TDirectiveDFA< TState, TEvent >::next TState    tSOURCE_STATE,
TEvent    tSOURCE_EVENT,
TState &    rtTARGET_STATE
const
 

Gets next state from state ktSOURCE_STATE and the input event tSOURCE_EVENT. This member function doesn't depend on current state, so it's state-less.

Parameters:
tSOURCE_STATE  Source state.
tSOURCE_EVENT  Source input event.
Returns:
True if there is next state from event tSOURCE_EVENT.

Definition at line 262 of file string.cc.

References mpcl::automaton::TDeterministicFiniteAutomaton< TState, TEvent >::tTransitionMap.


The documentation for this class was generated from the following file:
Generated on Mon Oct 13 02:35:26 2003 for MPCL by doxygen1.2.18