27#include <ext/algorithm>
59template <
class SymbolType = DefaultSymbolType >
107 return this->
template accessComponent < GeneralAlphabet > ( ).get ( );
116 return std::move ( this->
template accessComponent < GeneralAlphabet > ( ).
get ( ) );
125 this->
template accessComponent < GeneralAlphabet > ( ).add ( std::move ( symbols ) );
189 out <<
"(CyclicString";
190 out <<
" content = " << instance.
getContent ( );
197template <
class SymbolType >
199 setContent(std::move(str));
202template <
class SymbolType >
206template <
class SymbolType >
210template <
class SymbolType >
214template <
class SymbolType >
218template <
class SymbolType >
223template <
class SymbolType >
225 return std::move ( this->m_Data );
229template <
class SymbolType >
236 m_Data = std::move(str);
239template <
class SymbolType >
241 return this->m_Data.empty ( );
253template <
class SymbolType >
266 return std::find(content.
begin(), content.
end(), symbol) != content.
end();
296template <
class SymbolType >
static ext::set< DefaultSymbolType > normalizeAlphabet(ext::set< SymbolType > &&symbols)
Definition: SymbolNormalize.h:50
static ext::vector< DefaultSymbolType > normalizeSymbols(ext::vector< SymbolType > &&symbols)
Definition: SymbolNormalize.h:86
Definition: components.hpp:181
static bool available(const string::CyclicString< SymbolType > &, const SymbolType &)
Definition: CyclicString.h:277
static bool used(const string::CyclicString< SymbolType > &str, const SymbolType &symbol)
Definition: CyclicString.h:264
static void valid(const string::CyclicString< SymbolType > &, const SymbolType &)
Definition: CyclicString.h:287
Definition: setComponents.hpp:26
Basic exception from which all other exceptions are derived.
Definition: CommonException.h:21
Output iterator calling a callback function on assignment.
Definition: iterator.hpp:923
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: set.hpp:99
auto end() &
Inherited behavior of end for non-const instance.
Definition: set.hpp:129
Class extending the vector class from the standard library. Original reason is to allow printing of t...
Definition: vector.hpp:45
auto begin() &
Inherited behavior of begin for non-const instance.
Definition: vector.hpp:125
auto end() &
Inherited behavior of end for non-const instance.
Definition: vector.hpp:155
Cyclic string.
Definition: CyclicString.h:60
const ext::vector< SymbolType > & getContent() const &
Definition: CyclicString.h:219
ext::set< SymbolType > && getAlphabet() &&
Definition: CyclicString.h:115
void extendAlphabet(ext::set< SymbolType > symbols)
Definition: CyclicString.h:124
bool isEmpty() const
Definition: CyclicString.h:240
bool operator==(const CyclicString &other) const
Definition: CyclicString.h:176
CyclicString()
Creates a new instance of the string with an empty content.
Definition: CyclicString.h:203
friend ext::ostream & operator<<(ext::ostream &out, const CyclicString &instance)
Definition: CyclicString.h:188
void setContent(ext::vector< SymbolType > str)
Definition: CyclicString.h:230
const ext::set< SymbolType > & getAlphabet() const &
Definition: CyclicString.h:106
Definition: BarSymbol.cpp:12
typename T::SymbolType SymbolType
Definition: ReachableStates.h:176
Definition: normalize.hpp:10
Definition: sigHandler.cpp:20
constexpr tuple< Elements &... > tie(Elements &... args) noexcept
Helper of extended tuple of references construction. The tuple is constructed to reffer to values in ...
Definition: tuple.hpp:218
auto begin(Container &&cont) -> decltype(std::forward(cont).begin())
Definition: iterator.hpp:900
void end()
Definition: measurements.cpp:19
auto & get(ext::ptr_array< Type, N > &tpl)
Specialisation of get function for pointer arrays.
Definition: ptr_array.hpp:693
Definition: RandomStringFactory.cpp:12
static string::CyclicString< > eval(string::CyclicString< SymbolType > &&value)
Definition: CyclicString.h:298
Definition: normalize.hpp:13