30 template <
class SymbolType >
32 template <
class SymbolType >
34 template <
class SymbolType >
36 template <
class SymbolType >
39 template <
class SymbolType >
41 template <
class SymbolType >
44 template <
class SymbolType >
49template <
class SymbolType >
53 auto patternIter = pattern.
getChildren ( ).begin ( );
54 auto subjectIter = subject.
getChildren ( ).begin ( );
56 while ( patternIter != pattern.
getChildren ( ).end ( ) && subjectIter != subject.
getChildren ( ).end ( ) ) {
57 if ( ! matchHelper ( * subjectIter, * patternIter ) )
64 return patternIter == pattern.
getChildren ( ).end ( );
67template <
class SymbolType >
73 if ( !matchHelper ( std::get < 0 > ( childs ), std::get < 1 > ( childs ) ) )
return false;
78template <
class SymbolType >
80 if ( matchHelper ( subject, pattern ) ) occ.insert ( index );
85 matchInternal ( index, occ, child, pattern );
88template <
class SymbolType >
97template <
class SymbolType >
106template <
class SymbolType >
113 for ( ; j < pattern.
getContent ( ).size ( ); j++ )
123template <
class SymbolType >
130 for ( ; j < pattern.
getContent ( ).size ( ); j++ )
Definition: ExactSubtreeMatch.h:24
static ext::set< unsigned > match(const tree::UnrankedTree< SymbolType > &subject, const tree::UnrankedTree< SymbolType > &pattern)
Definition: ExactSubtreeMatch.h:89
Definition: ranked_symbol.hpp:20
Class introducing a tree with interface trying to be close to the interface of standard library conta...
Definition: tree.hpp:52
T & getData()
Getter of the value in the root node.
Definition: tree.hpp:100
ext::vector< tree > & getChildren()
Getter of children of the root node.
Definition: tree.hpp:120
Class extending the tuple class from the standard library. Original reason is to allow printing of th...
Definition: tuple.hpp:42
Tree structure represented as linear sequece as result of preorder traversal with additional bar symb...
Definition: PrefixRankedBarTree.h:78
const ext::vector< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: PrefixRankedBarTree.h:273
Tree structure represented as linear sequece as result of preorder traversal. The representation is s...
Definition: PrefixRankedTree.h:71
const ext::vector< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: PrefixRankedTree.h:235
Tree structure represented in its natural representation. The representation is so called ranked,...
Definition: RankedTree.h:72
const ext::tree< common::ranked_symbol< SymbolType > > & getContent() const &
Definition: RankedTree.h:252
Tree represented in its natural representation. The representation is so called unranked,...
Definition: UnrankedTree.h:69
const ext::tree< SymbolType > & getContent() const &
Definition: UnrankedTree.h:217
Definition: BoyerMooreHorspool.h:22
int i
Definition: AllEpsilonClosure.h:118
const_tuple_foreach< Types ... > make_tuple_foreach(const Types &... args)
Function construction of foreach tuple pack helper.
Definition: foreach.hpp:280