From 4ac1156b630f556e4a2a46f3130032d36cdfa685 Mon Sep 17 00:00:00 2001 From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz> Date: Wed, 17 Jan 2018 21:03:54 +0100 Subject: [PATCH] ranked bar notations extend bars alphabet method --- alib2data/src/tree/ranked/PrefixRankedBarNonlinearPattern.h | 4 ++++ alib2data/src/tree/ranked/PrefixRankedBarPattern.h | 4 ++++ alib2data/src/tree/ranked/PrefixRankedBarTree.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/alib2data/src/tree/ranked/PrefixRankedBarNonlinearPattern.h b/alib2data/src/tree/ranked/PrefixRankedBarNonlinearPattern.h index 6d321d670c..0d68906383 100644 --- a/alib2data/src/tree/ranked/PrefixRankedBarNonlinearPattern.h +++ b/alib2data/src/tree/ranked/PrefixRankedBarNonlinearPattern.h @@ -89,6 +89,10 @@ public: return std::move ( this->template accessComponent < BarSymbols > ( ).get ( ) ); } + void extendBars ( const ext::set < common::ranked_symbol < SymbolType, RankType > > & bars ) { + this->template accessComponent < BarSymbols > ( ).add ( bars ); + } + const common::ranked_symbol < SymbolType, RankType > & getSubtreeWildcard ( ) const & { return this->template accessComponent < SubtreeWildcard > ( ).get ( ); } diff --git a/alib2data/src/tree/ranked/PrefixRankedBarPattern.h b/alib2data/src/tree/ranked/PrefixRankedBarPattern.h index 1acca356b6..28880c2804 100644 --- a/alib2data/src/tree/ranked/PrefixRankedBarPattern.h +++ b/alib2data/src/tree/ranked/PrefixRankedBarPattern.h @@ -82,6 +82,10 @@ public: return std::move ( this->template accessComponent < BarSymbols > ( ).get ( ) ); } + void extendBars ( const ext::set < common::ranked_symbol < SymbolType, RankType > > & bars ) { + this->template accessComponent < BarSymbols > ( ).add ( bars ); + } + const common::ranked_symbol < SymbolType, RankType > & getSubtreeWildcard ( ) const & { return this->template accessComponent < SubtreeWildcard > ( ).get ( ); } diff --git a/alib2data/src/tree/ranked/PrefixRankedBarTree.h b/alib2data/src/tree/ranked/PrefixRankedBarTree.h index 1369dc77d3..723a0026b5 100644 --- a/alib2data/src/tree/ranked/PrefixRankedBarTree.h +++ b/alib2data/src/tree/ranked/PrefixRankedBarTree.h @@ -77,6 +77,10 @@ public: return std::move ( this->template accessComponent < BarSymbols > ( ).get ( ) ); } + void extendBars ( const ext::set < common::ranked_symbol < SymbolType, RankType > > & bars ) { + this->template accessComponent < BarSymbols > ( ).add ( bars ); + } + /** * @return List of symbols forming tree (const version). */ -- GitLab