Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
core::SetConstraint< string::CyclicString< SymbolType >, SymbolType, string::GeneralAlphabet > Class Template Reference

#include <CyclicString.h>

Static Public Member Functions

static bool used (const string::CyclicString< SymbolType > &str, const SymbolType &symbol)
 
static bool available (const string::CyclicString< SymbolType > &, const SymbolType &)
 
static void valid (const string::CyclicString< SymbolType > &, const SymbolType &)
 

Detailed Description

template<class SymbolType>
class core::SetConstraint< string::CyclicString< SymbolType >, SymbolType, string::GeneralAlphabet >

Helper class specifying constraints for the string's internal alphabet component.

Template Parameters
SymbolTypeused for the alphabet of the string.

Member Function Documentation

◆ available()

template<class SymbolType >
static bool core::SetConstraint< string::CyclicString< SymbolType >, SymbolType, string::GeneralAlphabet >::available ( const string::CyclicString< SymbolType > &  ,
const SymbolType &   
)
inlinestatic

Returns true as all symbols are possibly available to be in an alphabet.

Parameters
stringthe tested string
symbolthe tested symbol
Returns
true

◆ used()

template<class SymbolType >
static bool core::SetConstraint< string::CyclicString< SymbolType >, SymbolType, string::GeneralAlphabet >::used ( const string::CyclicString< SymbolType > &  str,
const SymbolType &  symbol 
)
inlinestatic

Returns true if the symbol is still used in the string.

Parameters
stringthe tested string
symbolthe tested symbol
Returns
true if the symbol is used, false othervise
Here is the call graph for this function:

◆ valid()

template<class SymbolType >
static void core::SetConstraint< string::CyclicString< SymbolType >, SymbolType, string::GeneralAlphabet >::valid ( const string::CyclicString< SymbolType > &  ,
const SymbolType &   
)
inlinestatic

All symbols are valid as symbols of an alphabet.

Parameters
stringthe tested string
symbolthe tested symbol

The documentation for this class was generated from the following file: