Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > > Struct Template Reference

#include <EpsilonNFA.h>

Static Public Member Functions

static std::string xmlTagName ()
 The XML tag name of class. More...
 
static bool first (const ext::deque< sax::Token >::const_iterator &input)
 Tests whether the token stream starts with this type. More...
 
static automaton::EpsilonNFA< SymbolType, StateType > parse (ext::deque< sax::Token >::iterator &input)
 
static void parseTransition (ext::deque< sax::Token >::iterator &input, automaton::EpsilonNFA< SymbolType, StateType > &automaton)
 
static void compose (ext::deque< sax::Token > &out, const automaton::EpsilonNFA< SymbolType, StateType > &automaton)
 
static void composeTransitions (ext::deque< sax::Token > &out, const automaton::EpsilonNFA< SymbolType, StateType > &automaton)
 

Member Function Documentation

◆ compose()

template<class SymbolType , class StateType >
void core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > >::compose ( ext::deque< sax::Token > &  out,
const automaton::EpsilonNFA< SymbolType, StateType > &  automaton 
)
static

Composing to a sequence of xml tokens helper.

Parameters
outthe sink for new xml tokens representing the automaton
automatonthe automaton to compose
Here is the call graph for this function:

◆ composeTransitions()

template<class SymbolType , class StateType >
void core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > >::composeTransitions ( ext::deque< sax::Token > &  out,
const automaton::EpsilonNFA< SymbolType, StateType > &  automaton 
)
static

Helper for composing transitions of the automaton to a sequence of xml tokens.

Parameters
outthe sink for xml tokens representing the rules of the automaton
automatonthe automaton to compose
Here is the call graph for this function:

◆ first()

template<class SymbolType , class StateType >
static bool core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > >::first ( const ext::deque< sax::Token >::const_iterator &  input)
inlinestatic

Tests whether the token stream starts with this type.

\params input the iterator to sequence of xml tokens to test

Returns
true if the token stream iterator points to opening tag named with xml tag name of this type, false otherwise.
Here is the call graph for this function:

◆ parse()

template<class SymbolType , class StateType >
automaton::EpsilonNFA< SymbolType, StateType > core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > >::parse ( ext::deque< sax::Token >::iterator &  input)
static

Parsing from a sequence of xml tokens helper.

\params input the iterator to sequence of xml tokens to parse from

Returns
the new instance of the automaton
Here is the call graph for this function:

◆ parseTransition()

template<class SymbolType , class StateType >
void core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > >::parseTransition ( ext::deque< sax::Token >::iterator &  input,
automaton::EpsilonNFA< SymbolType, StateType > &  automaton 
)
static

Helper for parsing of individual transitions of the automaton from a sequence of xml tokens.

\params input the iterator to sequence of xml tokens to parse from \params automaton the automaton to add the rule to

Here is the call graph for this function:

◆ xmlTagName()

template<class SymbolType , class StateType >
static std::string core::xmlApi< automaton::EpsilonNFA< SymbolType, StateType > >::xmlTagName ( )
inlinestatic

The XML tag name of class.

Intentionaly a static member function to be safe in the initialisation before the main function starts.

Returns
string representing the XML tag name of the class

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