Skip to content
Snippets Groups Projects
Commit 05eb56e0 authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix alphabet template

parent 3002dda1
No related branches found
No related tags found
No related merge requests found
...@@ -76,6 +76,13 @@ public: ...@@ -76,6 +76,13 @@ public:
data = std::move ( symbols ); data = std::move ( symbols );
} }
   
/**
* @return set of symbols in the alphabet.
*/
std::set < SymbolType > & get ( ) {
return data;
}
/** /**
* @return set of symbols in the alphabet. * @return set of symbols in the alphabet.
*/ */
...@@ -169,7 +176,7 @@ public: ...@@ -169,7 +176,7 @@ public:
/** /**
* Construct an alphabet pack from single alphabet. * Construct an alphabet pack from single alphabet.
*/ */
AlphabetPack ( SymbolType first ) : Alphabet < Derived, SymbolType, AlphabetType1 > ( std::move ( first ) ) { AlphabetPack ( std::set < SymbolType > first ) : Alphabet < Derived, SymbolType, AlphabetType1 > ( std::move ( first ) ) {
} }
   
}; };
...@@ -263,6 +270,14 @@ public: ...@@ -263,6 +270,14 @@ public:
} }
} }
   
/**
* Returns the current alphabet element of ElementType.
* @return the notable symbol from the alphabet
*/
SymbolType & get ( ) {
return data;
}
/** /**
* Returns the current alphabet element of ElementType. * Returns the current alphabet element of ElementType.
* @return the notable symbol from the alphabet * @return the notable symbol from the alphabet
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment