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

#include <BitParallelIndex.h>

Static Public Member Functions

static bool used (const indexes::stringology::BitParallelIndex< SymbolType > &index, const SymbolType &symbol)
 
static bool available (const indexes::stringology::BitParallelIndex< SymbolType > &, const SymbolType &)
 
static void valid (const indexes::stringology::BitParallelIndex< SymbolType > &, const SymbolType &)
 

Detailed Description

template<class SymbolType>
class core::SetConstraint< indexes::stringology::BitParallelIndex< SymbolType >, SymbolType, indexes::stringology::GeneralAlphabet >

Helper class specifying constraints for the internal alphabet component of the index.

Template Parameters
SymbolTypetype of symbols of indexed string

Member Function Documentation

◆ available()

template<class SymbolType >
static bool core::SetConstraint< indexes::stringology::BitParallelIndex< SymbolType >, SymbolType, indexes::stringology::GeneralAlphabet >::available ( const indexes::stringology::BitParallelIndex< SymbolType > &  ,
const SymbolType &   
)
inlinestatic

Returns true as all symbols are possibly available to be elements of the alphabet.

Parameters
indexthe tested index
symbolthe tested symbol
Returns
true

◆ used()

template<class SymbolType >
static bool core::SetConstraint< indexes::stringology::BitParallelIndex< SymbolType >, SymbolType, indexes::stringology::GeneralAlphabet >::used ( const indexes::stringology::BitParallelIndex< SymbolType > &  index,
const SymbolType &  symbol 
)
inlinestatic

Returns true if the symbol is still used as key in mapping symbol to bit vector.

Parameters
indexthe tested index
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< indexes::stringology::BitParallelIndex< SymbolType >, SymbolType, indexes::stringology::GeneralAlphabet >::valid ( const indexes::stringology::BitParallelIndex< SymbolType > &  ,
const SymbolType &   
)
inlinestatic

All symbols are valid as symbols of the alphabet.

Parameters
indexthe tested index
symbolthe tested symbol

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