8#include <string/LinearString.h>
22#include <ext/algorithm>
48 template <
class SymbolType,
class StateType >
62 template <
class SymbolType,
class StateType >
76 template <
class SymbolType,
class StateType >
91 template <
class SymbolType,
class StateType >
94 template <
class SymbolType,
class StateType >
109 template <
class SymbolType,
class StateType >
124 template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
139 template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
154 template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
169 template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
184 template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
200 template <
class InputSymbolType,
class OutputSymbolType,
class PushdownStoreSymbolType,
class StateType >
205template <
class SymbolType,
class StateType >
209 return std::get < 0 > (
res ) &&
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) );
212template <
class SymbolType,
class StateType >
217 return automaton.getFinalStates ( ).count ( state );
221template <
class SymbolType,
class StateType >
226 return automaton.getFinalStates ( ).count ( state );
230template <
class SymbolType,
class StateType >
234 return std::get < 0 > (
res ) &&
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) );
237template <
class SymbolType,
class StateType >
241 return std::get < 0 > (
res ) &&
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) );
244template <
class SymbolType,
class StateType >
249 return automaton.getFinalStates ( ).count ( state );
253template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
257 return std::get < 0 > (
res ) && (
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) ) || (
automaton.getFinalStates ( ).empty ( ) && std::get < 3 > (
res ).empty ( ) ) );
260template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
264 return std::get < 0 > (
res ) &&
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) );
267template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
271 return std::get < 0 > (
res ) &&
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) );
274template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
278 return std::get < 0 > (
res ) && (
automaton.getFinalStates ( ).count ( std::get < 1 > (
res ) ) || (
automaton.getFinalStates ( ).empty ( ) && std::get < 3 > (
res ).empty ( ) ) );
281template <
class InputSymbolType,
class PushdownStoreSymbolType,
class StateType >
286 if (
automaton.getFinalStates ( ).contains ( std::get < 0 > ( finalConfiguration ) ) || (
automaton.getFinalStates ( ).empty ( ) && std::get < 2 > ( finalConfiguration ).empty ( ) ) )
292template <
class InputSymbolType,
class OutputSymbolType,
class PushdownStoreSymbolType,
class StateType >
297 if (
automaton.getFinalStates ( ).contains ( std::get < 0 > ( finalConfiguration ) ) || (
automaton.getFinalStates ( ).empty ( ) && std::get < 2 > ( finalConfiguration ).empty ( ) ) )
Deterministic Z-Automaton in Arc-Factored Normal Form. Computation model for unranked regular tree la...
Definition: ArcFactoredDeterministicZAutomaton.h:65
Deterministic finite automaton. Accepts regular languages.
Definition: DFA.h:71
Nondeterministic finite tree automaton without epsilon transitions. Accepts regular tree languages.
Definition: DFTA.h:74
Deterministic pushdown automaton. Accepts subset of context free languages.
Definition: DPDA.h:78
Epsilon nondeterministic finite automaton. Accepts regular languages.
Definition: EpsilonNFA.h:74
Nondeterministic finite automaton. Accepts regular languages.
Definition: NFA.h:66
Nondeterministic finite tree automaton without epsilon transitions. Accepts regular tree languages.
Definition: NFTA.h:72
Deterministic real time height deterministic pushdown automaton. Accepts subset of context free langu...
Definition: RealTimeHeightDeterministicDPDA.h:89
Deterministic visibly pushdown automaton. Accepts subset of context free languages.
Definition: VisiblyPushdownDPDA.h:86
Implementation of test whether automaton accepts its input.
Definition: Accept.h:35
static bool accept(const automaton::DFA< SymbolType, StateType > &automaton, const string::LinearString< SymbolType > &string)
Definition: Accept.h:206
Class extending the deque class from the standard library. Original reason is to allow printing of th...
Definition: deque.hpp:44
Class extending the tuple class from the standard library. Original reason is to allow printing of th...
Definition: tuple.hpp:42
Linear string.
Definition: LinearString.h:57
Tree structure represented in its natural representation. The representation is so called ranked,...
Definition: RankedTree.h:72
Tree represented in its natural representation. The representation is so called unranked,...
Definition: UnrankedTree.h:69
typename T::StateType StateType
Definition: ToGrammarLeftRG.h:64
return res
Definition: MinimizeByPartitioning.h:145
Definition: ToGrammar.h:31
any_of(T &&...) -> any_of< T... >
auto begin(Container &&cont) -> decltype(std::forward(cont).begin())
Definition: iterator.hpp:900
void end()
Definition: measurements.cpp:19
Definition: BackwardOccurrenceTest.h:17