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

#include <FormalRTE.h>

Static Public Member Functions

static bool used (const rte::FormalRTE< SymbolType > &rte, const common::ranked_symbol< SymbolType > &symbol)
 
static bool available (const rte::FormalRTE< SymbolType > &, const common::ranked_symbol< SymbolType > &)
 
static void valid (const rte::FormalRTE< SymbolType > &rte, const common::ranked_symbol< SymbolType > &symbol)
 

Detailed Description

template<class SymbolType>
class core::SetConstraint< rte::FormalRTE< SymbolType >, common::ranked_symbol< SymbolType >, rte::GeneralAlphabet >

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

Template Parameters
SymbolTypeused for the symbol part of the ranked symbol

Member Function Documentation

◆ available()

template<class SymbolType >
static bool core::SetConstraint< rte::FormalRTE< SymbolType >, common::ranked_symbol< SymbolType >, rte::GeneralAlphabet >::available ( const rte::FormalRTE< SymbolType > &  ,
const common::ranked_symbol< SymbolType > &   
)
inlinestatic

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

Parameters
rtethe tested expresion
symbolthe tested state
Returns
true

◆ used()

template<class SymbolType >
static bool core::SetConstraint< rte::FormalRTE< SymbolType >, common::ranked_symbol< SymbolType >, rte::GeneralAlphabet >::used ( const rte::FormalRTE< SymbolType > &  rte,
const common::ranked_symbol< SymbolType > &  symbol 
)
inlinestatic

Returns true if the symbol is still used somewhere in the structure of the expression.

Parameters
rtethe tested expresion
symbolthe tested symbol
Returns
true if the symbol is used, false othervise

◆ valid()

template<class SymbolType >
static void core::SetConstraint< rte::FormalRTE< SymbolType >, common::ranked_symbol< SymbolType >, rte::GeneralAlphabet >::valid ( const rte::FormalRTE< SymbolType > &  rte,
const common::ranked_symbol< SymbolType > &  symbol 
)
inlinestatic

Throws exception if the symbol is already a part of the substitution alphabet.

Parameters
rtethe tested expresion
symbolthe tested state
Here is the call graph for this function:

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