Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Public Types | Public Member Functions | Friends
automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT > Class Template Referencefinal

Nondeterministic input driven pushdown automaton. Accepts subset of context free languages. More...

#include <InputDrivenNPDA.h>

Inheritance diagram for automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >:
[legend]
Collaboration diagram for automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >:
[legend]

Public Types

typedef InputSymbolTypeT InputSymbolType
 
typedef PushdownStoreSymbolTypeT PushdownStoreSymbolType
 
typedef StateTypeT StateType
 

Public Member Functions

 InputDrivenNPDA (ext::set< StateType > states, ext::set< InputSymbolType > inputAlphabet, ext::set< PushdownStoreSymbolType > pushdownStoreAlphabet, StateType initialState, PushdownStoreSymbolType initialSymbol, ext::set< StateType > finalStates)
 Creates a new instance of the automaton with a concrete set of states, input alphabet, pushdown store alphabet, initial state, initial pushdown symbol and a set of final states. More...
 
 InputDrivenNPDA (StateType initialState, PushdownStoreSymbolType initialPushdownSymbol)
 Creates a new instance of the automaton with a concrete initial state and initial pushdown store symbol. More...
 
const StateTypegetInitialState () const &
 
StateType && getInitialState () &&
 
bool setInitialState (StateType state)
 
const ext::set< StateType > & getStates () const &
 
ext::set< StateType > && getStates () &&
 
bool addState (StateType state)
 
void setStates (ext::set< StateType > states)
 
void removeState (const StateType &state)
 
const ext::set< StateType > & getFinalStates () const &
 
ext::set< StateType > && getFinalStates () &&
 
bool addFinalState (StateType state)
 
void setFinalStates (ext::set< StateType > states)
 
void removeFinalState (const StateType &state)
 
const ext::set< PushdownStoreSymbolType > & getPushdownStoreAlphabet () const &
 
ext::set< PushdownStoreSymbolType > && getPushdownStoreAlphabet () &&
 
bool addPushdownStoreSymbol (PushdownStoreSymbolType symbol)
 
void addPushdownStoreSymbols (ext::set< PushdownStoreSymbolType > symbols)
 
void setPushdownStoreAlphabet (ext::set< PushdownStoreSymbolType > symbols)
 
void removePushdownStoreSymbol (const PushdownStoreSymbolType &symbol)
 
const PushdownStoreSymbolTypegetInitialSymbol () const &
 
PushdownStoreSymbolType && getInitialSymbol () &&
 
bool setInitialSymbol (PushdownStoreSymbolType symbol)
 
const ext::set< InputSymbolType > & getInputAlphabet () const &
 
ext::set< InputSymbolType > && getInputAlphabet () &&
 
bool addInputSymbol (InputSymbolType symbol)
 
void addInputSymbols (ext::set< InputSymbolType > symbols)
 
void setInputAlphabet (ext::set< InputSymbolType > symbols)
 
void removeInputSymbol (const InputSymbolType &symbol)
 
bool setPushdownStoreOperation (InputSymbolType input, ext::vector< PushdownStoreSymbolType > pop, ext::vector< PushdownStoreSymbolType > push)
 
void setPushdownStoreOperations (ext::map< InputSymbolType, ext::pair< ext::vector< PushdownStoreSymbolType >, ext::vector< PushdownStoreSymbolType > > > operations)
 
bool clearPushdownStoreOperation (const InputSymbolType &input)
 
const ext::map< InputSymbolType, ext::pair< ext::vector< PushdownStoreSymbolType >, ext::vector< PushdownStoreSymbolType > > > & getPushdownStoreOperations () const &
 
ext::map< InputSymbolType, ext::pair< ext::vector< PushdownStoreSymbolType >, ext::vector< PushdownStoreSymbolType > > > && getPushdownStoreOperations () &&
 
bool addTransition (StateType from, InputSymbolType input, StateType to)
 Adds a transition to the automaton. More...
 
bool removeTransition (const StateType &from, const InputSymbolType &input, const StateType &to)
 Removes a transition from the automaton. More...
 
const ext::multimap< ext::pair< StateType, InputSymbolType >, StateType > & getTransitions () const &
 
ext::multimap< ext::pair< StateType, InputSymbolType >, StateType > && getTransitions () &&
 
ext::multimap< ext::pair< StateType, InputSymbolType >, StateTypegetTransitionsFromState (const StateType &from) const
 
ext::multimap< ext::pair< StateType, InputSymbolType >, StateTypegetTransitionsToState (const StateType &to) const
 
bool isDeterministic () const
 Determines whether the automaton is deterministic. More...
 
auto operator<=> (const InputDrivenNPDA &other) const
 
bool operator== (const InputDrivenNPDA &other) const
 
- Public Member Functions inherited from core::Components< InputDrivenNPDA< DefaultSymbolType, DefaultSymbolType, DefaultStateType >, ext::set< DefaultSymbolType >, component::Set, InputAlphabet, ext::set< DefaultSymbolType >, component::Set, PushdownStoreAlphabet, DefaultSymbolType, component::Value, InitialSymbol, ext::set< DefaultStateType >, component::Set, std::tuple< States, FinalStates >, DefaultStateType, component::Value, InitialState >
void accessComponent ()
 

Friends

ext::ostreamoperator<< (ext::ostream &out, const InputDrivenNPDA &instance)
 

Additional Inherited Members

- Static Public Member Functions inherited from core::Components< InputDrivenNPDA< DefaultSymbolType, DefaultSymbolType, DefaultStateType >, ext::set< DefaultSymbolType >, component::Set, InputAlphabet, ext::set< DefaultSymbolType >, component::Set, PushdownStoreAlphabet, DefaultSymbolType, component::Value, InitialSymbol, ext::set< DefaultStateType >, component::Set, std::tuple< States, FinalStates >, DefaultStateType, component::Value, InitialState >
static void registerComponent ()
 
static void unregisterComponent ()
 

Detailed Description

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
class automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >

Nondeterministic input driven pushdown automaton. Accepts subset of context free languages.

Definition is similar to the deterministic finite automata extended with pushdown store. A = (Q, T, G, I, Z, \delta, \zeta, F), Q (States) = nonempty finite set of states, T (TerminalAlphabet) = finite set of terminal symbols - having this empty won't let automaton do much though, G (PushdownStoreAlphabet) = finite set of pushdown store symbol - having this empty makes the automaton equivalent to NFA I (InitialState) = initial state, Z (InitialPushdownStoreSymbol) = initial pushdown store symbol \delta = transition function of the form A \times a -> P(Q), where A \in Q, a \in T, and P(Q) is a powerset of states, \zeta = mapping function of the form a -> ( \alpha, \beta ) where a \in T and \alpha, \beta \in G* F (FinalStates) = set of final states

Note that target state of a transition is required. This class is used to store minimal, total, ... variants of deterministic finite automata.

Template Parameters
InputSymbolTypeTused for the terminal alphabet
PushdownSymbolTypeTused for the pushdown store alphabet
StateTypeTused to the states, and the initial state of the automaton.

Member Typedef Documentation

◆ InputSymbolType

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
typedef InputSymbolTypeT automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::InputSymbolType

◆ PushdownStoreSymbolType

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
typedef PushdownStoreSymbolTypeT automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::PushdownStoreSymbolType

◆ StateType

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
typedef StateTypeT automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::StateType

Constructor & Destructor Documentation

◆ InputDrivenNPDA() [1/2]

template<class InputSymbolType , class PushdownStoreSymbolType , class StateType >
automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::InputDrivenNPDA ( ext::set< StateType states,
ext::set< InputSymbolType inputAlphabet,
ext::set< PushdownStoreSymbolType pushdownStoreAlphabet,
StateType  initialState,
PushdownStoreSymbolType  initialSymbol,
ext::set< StateType finalStates 
)
explicit

Creates a new instance of the automaton with a concrete set of states, input alphabet, pushdown store alphabet, initial state, initial pushdown symbol and a set of final states.

Parameters
statesthe initial set of states of the automaton
inputAlphabetthe initial input alphabet
pushdownStoreAlphabetthe initial set of symbols used in the pushdown store by the automaton
initialStatethe initial state of the automaton
initialPushdownSymbolthe initial pushdown symbol of the automaton
finalStatesthe initial set of final states of the automaton

◆ InputDrivenNPDA() [2/2]

Creates a new instance of the automaton with a concrete initial state and initial pushdown store symbol.

Parameters
initialStatethe initial state of the automaton
initialPushdownSymbolthe initial pushdown symbol of the automaton

Member Function Documentation

◆ addFinalState()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::addFinalState ( StateType  state)
inline

Adder of a final state.

Parameters
statethe new state to be added to a set of final states
Returns
true if the state was indeed added

◆ addInputSymbol()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::addInputSymbol ( InputSymbolType  symbol)
inline

Adder of a input symbol.

Parameters
symbolthe new symbol to be added to an input alphabet
Returns
true if the symbol was indeed added

◆ addInputSymbols()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::addInputSymbols ( ext::set< InputSymbolType symbols)
inline

Adder of input symbols.

Parameters
symbolsnew symbols to be added to an input alphabet

◆ addPushdownStoreSymbol()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::addPushdownStoreSymbol ( PushdownStoreSymbolType  symbol)
inline

Adder of a pushdown store symbol.

Parameters
symbolthe new symbol to be added to a pushdown store alphabet
Returns
true if the symbol was indeed added

◆ addPushdownStoreSymbols()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::addPushdownStoreSymbols ( ext::set< PushdownStoreSymbolType symbols)
inline

Adder of pushdown store symbols.

Parameters
symbolsnew symbols to be added to a pushdown store alphabet

◆ addState()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::addState ( StateType  state)
inline

Adder of a state.

Parameters
statethe new state to be added to a set of states
Returns
true if the state was indeed added

◆ addTransition()

Adds a transition to the automaton.

The transition is in a form A \times a -> B, where A, B \in Q and a \in T

Parameters
currentthe source state (A)
inputthe input symbol (a)
nextthe target state (B)
Exceptions
AutomatonExceptionwhen transition contains state or symbol not present in the automaton components, or when the pushdown store operation is not set for the input symbol
Returns
true if the transition was indeed added
Here is the call graph for this function:

◆ clearPushdownStoreOperation()

template<class InputSymbolType , class PushdownStoreSymbolType , class StateType >
bool automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::clearPushdownStoreOperation ( const InputSymbolType input)

Clearer of pushdown store operation

Parameters
inputthe input symbol for which to clear the pushdown store operation
Returns
true if the pushdown store operaion was cleared
Here is the call graph for this function:

◆ getFinalStates() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::set< StateType > && automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getFinalStates ( ) &&
inline

Getter of final states.

Returns
the final states of the automaton
Here is the call graph for this function:

◆ getFinalStates() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const ext::set< StateType > & automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getFinalStates ( ) const &
inline

Getter of final states.

Returns
the final states of the automaton
Here is the caller graph for this function:

◆ getInitialState() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
StateType && automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getInitialState ( ) &&
inline

Getter of the initial state.

Returns
the initial state of the automaton
Here is the call graph for this function:

◆ getInitialState() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const StateType & automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getInitialState ( ) const &
inline

Getter of the initial state.

Returns
the initial state of the automaton
Here is the caller graph for this function:

◆ getInitialSymbol() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
PushdownStoreSymbolType && automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getInitialSymbol ( ) &&
inline

Getter of the initial pushdown store symbol.

Returns
the initial pushdown store symbol of the automaton
Here is the call graph for this function:

◆ getInitialSymbol() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const PushdownStoreSymbolType & automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getInitialSymbol ( ) const &
inline

Getter of the initial pushdown store symbol.

Returns
the initial pushdown store symbol of the automaton
Here is the caller graph for this function:

◆ getInputAlphabet() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::set< InputSymbolType > && automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getInputAlphabet ( ) &&
inline

Getter of the input alphabet.

Returns
the input alphabet of the automaton
Here is the call graph for this function:

◆ getInputAlphabet() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const ext::set< InputSymbolType > & automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getInputAlphabet ( ) const &
inline

Getter of the input alphabet.

Returns
the input alphabet of the automaton
Here is the caller graph for this function:

◆ getPushdownStoreAlphabet() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::set< PushdownStoreSymbolType > && automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getPushdownStoreAlphabet ( ) &&
inline

Getter of the pushdown store alphabet.

Returns
the pushdown store alphabet of the automaton
Here is the call graph for this function:

◆ getPushdownStoreAlphabet() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const ext::set< PushdownStoreSymbolType > & automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getPushdownStoreAlphabet ( ) const &
inline

Getter of the pushdown store alphabet.

Returns
the pushdown store alphabet of the automaton
Here is the caller graph for this function:

◆ getPushdownStoreOperations() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::map< InputSymbolType, ext::pair< ext::vector< PushdownStoreSymbolType >, ext::vector< PushdownStoreSymbolType > > > && automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::getPushdownStoreOperations ( ) &&

Get the pushdown store operations.

Returns
the pushdown store operaions

◆ getPushdownStoreOperations() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const ext::map< InputSymbolType, ext::pair< ext::vector< PushdownStoreSymbolType >, ext::vector< PushdownStoreSymbolType > > > & automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::getPushdownStoreOperations ( ) const &

Get the pushdown store operations.

Returns
the pushdown store operaions
Here is the caller graph for this function:

◆ getStates() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::set< StateType > && automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getStates ( ) &&
inline

Getter of states.

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

◆ getStates() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const ext::set< StateType > & automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::getStates ( ) const &
inline

Getter of states.

Returns
the states of the automaton
Here is the caller graph for this function:

◆ getTransitions() [1/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::multimap< ext::pair< StateType, InputSymbolType >, StateType > && automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::getTransitions ( ) &&

Get the transition function of the automaton in its natural form.

Returns
transition function of the automaton

◆ getTransitions() [2/2]

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
const ext::multimap< ext::pair< StateType, InputSymbolType >, StateType > & automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::getTransitions ( ) const &

Get the transition function of the automaton in its natural form.

Returns
transition function of the automaton
Here is the caller graph for this function:

◆ getTransitionsFromState()

Get a subset of the transition function of the automaton, with the source state fixed in the transitions natural representation.

Parameters
fromfilter the transition function based on this state as a source state
Returns
a subset of the transition function of the automaton with the source state fixed
Here is the call graph for this function:

◆ getTransitionsToState()

Get the transition function of the automaton, with the target state fixed in the transitions natural representation.

Parameters
tofilter the transition function based on this state as a source state
Returns
a subset of the transition function of the automaton with the target state fixed
Here is the call graph for this function:

◆ isDeterministic()

Determines whether the automaton is deterministic.

the automaton is deterministic if and only if:

  • size of transition function \delta (from state, input symbol) \leq 1
Returns
true if the automaton is deterministic, false otherwise

◆ operator<=>()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
auto automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::operator<=> ( const InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT > &  other) const
inline

The three way comparison implementation

Parameters
otherthe other instance
Returns
the ordering between this object and the other.
Here is the call graph for this function:

◆ operator==()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::operator== ( const InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT > &  other) const
inline

The equality comparison implementation.

Parameters
otherthe other object to compare with.
Returns
true if this and other objects are equal, false othervise
Here is the call graph for this function:

◆ removeFinalState()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::removeFinalState ( const StateType state)
inline

Remover of a final state.

Parameters
statea state to be removed from a set of final states
Returns
true if the state was indeed removed

◆ removeInputSymbol()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::removeInputSymbol ( const InputSymbolType symbol)
inline

Remover of an input symbol.

Parameters
symbola symbol to be removed from an input alphabet
Returns
true if the symbol was indeed removed

◆ removePushdownStoreSymbol()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::removePushdownStoreSymbol ( const PushdownStoreSymbolType symbol)
inline

Remover of an pushdown store symbol.

Parameters
symbola symbol to be removed from a pushdown store alphabet
Returns
true if the symbol was indeed removed

◆ removeState()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::removeState ( const StateType state)
inline

Remover of a state.

Parameters
statea state to be removed from a set of states
Returns
true if the state was indeed removed

◆ removeTransition()

template<class InputSymbolType , class PushdownStoreSymbolType , class StateType >
bool automaton::InputDrivenNPDA< InputSymbolType, PushdownStoreSymbolType, StateType >::removeTransition ( const StateType from,
const InputSymbolType input,
const StateType to 
)

Removes a transition from the automaton.

The transition is in a form A times a -> B, where A, B \in Q and a \in T

Parameters
currentthe source state (A)
inputthe input symbol (a)
nextthe target state (B)
Returns
true if the transition was indeed removed
Here is the call graph for this function:

◆ setFinalStates()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::setFinalStates ( ext::set< StateType states)
inline

Setter of final states.

Parameters
statescompletely new set of final states

◆ setInitialState()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::setInitialState ( StateType  state)
inline

Setter of the initial state.

Parameters
statenew initial state of the automaton
Returns
true if the initial state was indeed changed

◆ setInitialSymbol()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
bool automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::setInitialSymbol ( PushdownStoreSymbolType  symbol)
inline

Setter of the initial pushdown store symbol.

Parameters
symbolnew initial pushdown store symbol of the automaton
Returns
true if the initial pushdown store symbol was indeed changed

◆ setInputAlphabet()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::setInputAlphabet ( ext::set< InputSymbolType symbols)
inline

Setter of input alphabet.

Parameters
symbolscompletely new input alphabet

◆ setPushdownStoreAlphabet()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::setPushdownStoreAlphabet ( ext::set< PushdownStoreSymbolType symbols)
inline

Setter of a pushdown store alphabet.

Parameters
symbolscompletely new pushdown store alphabet

◆ setPushdownStoreOperation()

Setter of pushdown store operation

Pushdown store operation is a mapping from a input symbol to the pop and push pushdown store operations

Parameters
inputthe input symbol
popthe vector of pushdown store symbols to pop from pushdown store
pushthe vector of pushdown store symbol to push to pushdown store
Returns
true if the operation was set
Here is the call graph for this function:

◆ setPushdownStoreOperations()

Setter of pushdown store operations

Pushdown store operation is a mapping from a input symbol to the pop and push pushdown store operations

Parameters
operationsrepresented by mapping from input symbol to pair of vectors of pushdown store symbols to pop and pop respectively
Here is the call graph for this function:

◆ setStates()

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
void automaton::InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >::setStates ( ext::set< StateType states)
inline

Setter of states.

Parameters
statescompletely new set of states

Friends And Related Function Documentation

◆ operator<<

template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
ext::ostream & operator<< ( ext::ostream out,
const InputDrivenNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT > &  instance 
)
friend

Print this object as raw representation to ostream.

Parameters
outostream where to print
instanceobject to print
Returns
modified output stream

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