27#include <ext/algorithm>
56template <
class SymbolType = DefaultSymbolType >
104 return this->
template accessComponent < GeneralAlphabet > ( ).get ( );
113 return std::move ( this->
template accessComponent < GeneralAlphabet > ( ).
get ( ) );
122 this->
template accessComponent < GeneralAlphabet > ( ).add( symbols );
160 bool empty ( ) const;
167 size_t size ( ) const;
200 out <<
"(LinearString";
201 out <<
" content = " << instance.
getContent ( );
208template <
class SymbolType >
210 setContent(std::move(str));
213template <
class SymbolType >
217template <
class SymbolType >
221template <
class SymbolType >
225template <
class SymbolType >
229template <
class SymbolType >
231 if ( getAlphabet().count ( symbol ) == 0 )
234 m_Data.push_back ( std::move ( symbol ) );
237template <
class SymbolType >
242template <
class SymbolType >
244 return std::move ( this->m_Data );
247template <
class SymbolType >
254 this->m_Data = std::move ( str );
257template <
class SymbolType >
259 return this->m_Data.
empty ( );
262template <
class SymbolType >
264 return this->m_Data.
size ( );
276template <
class SymbolType >
289 return std::find(content.
begin(), content.
end(), symbol) != content.
end();
319template <
class SymbolType >
328template <
class SymbolType >
static ext::vector< common::ranked_symbol< DefaultSymbolType > > normalizeRankedSymbols(ext::vector< common::ranked_symbol< SymbolType > > &&symbols)
Definition: SymbolNormalize.h:113
static ext::set< DefaultSymbolType > normalizeAlphabet(ext::set< SymbolType > &&symbols)
Definition: SymbolNormalize.h:50
static ext::set< common::ranked_symbol< DefaultSymbolType > > normalizeRankedAlphabet(ext::set< common::ranked_symbol< SymbolType > > &&symbols)
Definition: SymbolNormalize.h:59
static ext::vector< DefaultSymbolType > normalizeSymbols(ext::vector< SymbolType > &&symbols)
Definition: SymbolNormalize.h:86
Definition: ranked_symbol.hpp:20
Definition: components.hpp:181
static void valid(const string::LinearString< SymbolType > &, const SymbolType &)
Definition: LinearString.h:310
static bool available(const string::LinearString< SymbolType > &, const SymbolType &)
Definition: LinearString.h:300
static bool used(const string::LinearString< SymbolType > &str, const SymbolType &symbol)
Definition: LinearString.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
Linear string.
Definition: LinearString.h:57
const ext::set< SymbolType > & getAlphabet() const &
Definition: LinearString.h:103
bool operator==(const LinearString &other) const
Definition: LinearString.h:187
friend ext::ostream & operator<<(ext::ostream &out, const LinearString &instance)
Definition: LinearString.h:199
ext::set< SymbolType > && getAlphabet() &&
Definition: LinearString.h:112
bool empty() const
Definition: LinearString.h:258
const ext::vector< SymbolType > & getContent() const &
Definition: LinearString.h:238
void setContent(ext::vector< SymbolType > str)
Definition: LinearString.h:248
void appendSymbol(SymbolType symbol)
Definition: LinearString.h:230
LinearString()
Creates a new instance of the string with an empty content.
Definition: LinearString.h:214
size_t size() const
Definition: LinearString.h:263
void extendAlphabet(const ext::set< SymbolType > &symbols)
Definition: LinearString.h:121
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
std::string to_string(const T &value)
To string method designated for objects that can be casted to string.
Definition: string.hpp:131
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::LinearString< > eval(string::LinearString< SymbolType > &&value)
Definition: LinearString.h:321
static string::LinearString< > eval(string::LinearString< common::ranked_symbol< SymbolType > > &&value)
Definition: LinearString.h:337
static string::LinearString< common::ranked_symbol< DefaultSymbolType > > evalRanked(string::LinearString< common::ranked_symbol< SymbolType > > &&value)
Definition: LinearString.h:330
Definition: normalize.hpp:13