|
| SinglePopNPDA (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...
|
|
| SinglePopNPDA (StateType initialState, PushdownStoreSymbolType initialPushdownSymbol) |
| Creates a new instance of the automaton with a concrete initial state and initial pushdown store symbol. More...
|
|
const StateType & | getInitialState () 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 PushdownStoreSymbolType & | getInitialSymbol () 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 | addTransition (StateType from, common::symbol_or_epsilon< InputSymbolType > input, PushdownStoreSymbolType pop, StateType to, ext::vector< PushdownStoreSymbolType > push) |
| Adds a transition to the automaton. More...
|
|
bool | addTransition (StateType from, InputSymbolType input, PushdownStoreSymbolType pop, StateType to, ext::vector< PushdownStoreSymbolType > push) |
| Adds a transition to the automaton. More...
|
|
bool | addTransition (StateType from, PushdownStoreSymbolType pop, StateType to, ext::vector< PushdownStoreSymbolType > push) |
| Adds a transition to the automaton. More...
|
|
bool | removeTransition (const StateType &from, const common::symbol_or_epsilon< InputSymbolType > &input, const PushdownStoreSymbolType &pop, const StateType &to, const ext::vector< PushdownStoreSymbolType > &push) |
| Removes a transition from the automaton. More...
|
|
bool | removeTransition (const StateType &from, const InputSymbolType &input, const PushdownStoreSymbolType &pop, const StateType &to, const ext::vector< PushdownStoreSymbolType > &push) |
| Removes a transition from the automaton. More...
|
|
bool | removeTransition (const StateType &from, const PushdownStoreSymbolType &pop, const StateType &to, const ext::vector< PushdownStoreSymbolType > &push) |
| Removes a transition from the automaton. More...
|
|
const ext::multimap< ext::tuple< StateType, common::symbol_or_epsilon< InputSymbolType >, PushdownStoreSymbolType >, ext::pair< StateType, ext::vector< PushdownStoreSymbolType > > > & | getTransitions () const & |
|
ext::multimap< ext::tuple< StateType, common::symbol_or_epsilon< InputSymbolType >, PushdownStoreSymbolType >, ext::pair< StateType, ext::vector< PushdownStoreSymbolType > > > && | getTransitions () && |
|
auto | operator<=> (const SinglePopNPDA &other) const |
|
bool | operator== (const SinglePopNPDA &other) const |
|
void | accessComponent () |
|
template<class InputSymbolTypeT = DefaultSymbolType, class PushdownStoreSymbolTypeT = DefaultSymbolType, class StateTypeT = DefaultStateType>
class automaton::SinglePopNPDA< InputSymbolTypeT, PushdownStoreSymbolTypeT, StateTypeT >
Nondeterministic pushdown automaton requiring a symbol pop from pushdown store on each transition use. Accepts subset of context free languages.
Definition A = (Q, T, G, I, Z, \delta, 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 DFA I (InitialState) = initial state, Z (InitialPushdownStoreSymbol) = initial pushdown store symbol \delta = transition function of the form A \times a \times g -> B \times \beta, where A, B \in Q, a \in T \cup { \eps }, g \in G, and \beta \in G*, F (FinalStates) = set of final states
- Template Parameters
-
InputSymbolTypeT | used for the terminal alphabet |
PushdownSymbolTypeT | used for the pushdown store alphabet |
StateTypeT | used to the states, and the initial state of the automaton. |