Back to index

scribus-ng  1.3.4.dfsg+svn20071115
Public Types | Public Member Functions | Protected Attributes
automata::DFA< STATE, INPUT > Class Template Reference

#include <automata.h>

Inheritance diagram for automata::DFA< STATE, INPUT >:
Inheritance graph
[legend]
Collaboration diagram for automata::DFA< STATE, INPUT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::map< INPUT, STATE > Transitions

Public Member Functions

 DFA (STATE s, STATE deflt)
 DFA (const std::set< STATE > &states, const std::set< INPUT > &inputs, STATE start, STATE deflt)
const std::set< STATE > & states () const
const std::set< INPUT > & inputs () const
const Transitionstransitions (STATE s) const
const STATE start () const
const STATE deflt () const
const STATE next (STATE from, INPUT input) const
void addState (STATE newState)
void addInput (INPUT newInput)
void setTransition (STATE from, INPUT input, STATEto)

Protected Attributes

std::set< STATE > states_
std::set< INPUT > inputs_
std::map< STATE, Transitionstransitions_
const Transitions noTransitions
STATE start_
STATE default_

Detailed Description

template<class STATE, class INPUT>
class automata::DFA< STATE, INPUT >

Definition at line 87 of file automata.h.


Member Typedef Documentation

typedef std::map<INPUT, STATE > automata::FA_base< STATE, INPUT, STATE >::Transitions [inherited]

Definition at line 27 of file automata.h.


Constructor & Destructor Documentation

template<class STATE, class INPUT>
automata::DFA< STATE, INPUT >::DFA ( STATE  s,
STATE  deflt 
) [inline]

Definition at line 89 of file automata.h.

: FA_base<STATE, INPUT, STATE>(s, deflt) {  }
template<class STATE, class INPUT>
automata::DFA< STATE, INPUT >::DFA ( const std::set< STATE > &  states,
const std::set< INPUT > &  inputs,
STATE  start,
STATE  deflt 
) [inline]

Definition at line 90 of file automata.h.

       : FA_base<STATE, INPUT, STATE>(states, inputs, start, deflt) { }

Member Function Documentation

void automata::FA_base< STATE, INPUT, STATE >::addInput ( INPUT  newInput) [inherited]

Here is the caller graph for this function:

void automata::FA_base< STATE, INPUT, STATE >::addState ( STATE  newState) [inherited]

Here is the caller graph for this function:

const STATE automata::FA_base< STATE, INPUT, STATE >::deflt ( ) const [inherited]
const std::set<INPUT>& automata::FA_base< STATE, INPUT, STATE >::inputs ( ) const [inherited]
const STATE automata::FA_base< STATE, INPUT, STATE >::next ( STATE  from,
INPUT  input 
) const [inherited]
void automata::FA_base< STATE, INPUT, STATE >::setTransition ( STATE  from,
INPUT  input,
STATE  to 
) [inherited]

Here is the caller graph for this function:

const STATE automata::FA_base< STATE, INPUT, STATE >::start ( ) const [inherited]
const std::set<STATE>& automata::FA_base< STATE, INPUT, STATE >::states ( ) const [inherited]
const Transitions& automata::FA_base< STATE, INPUT, STATE >::transitions ( STATE  s) const [inherited]

Member Data Documentation

STATE automata::FA_base< STATE, INPUT, STATE >::default_ [protected, inherited]

Definition at line 46 of file automata.h.

std::set<INPUT> automata::FA_base< STATE, INPUT, STATE >::inputs_ [protected, inherited]

Definition at line 42 of file automata.h.

const Transitions automata::FA_base< STATE, INPUT, STATE >::noTransitions [protected, inherited]

Definition at line 44 of file automata.h.

STATE automata::FA_base< STATE, INPUT, STATE >::start_ [protected, inherited]

Definition at line 45 of file automata.h.

std::set<STATE> automata::FA_base< STATE, INPUT, STATE >::states_ [protected, inherited]

Definition at line 41 of file automata.h.

std::map<STATE, Transitions> automata::FA_base< STATE, INPUT, STATE >::transitions_ [protected, inherited]

Definition at line 43 of file automata.h.


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