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

#include <PrefixRankedBarNonlinearPattern.h>

Static Public Member Functions

static bool used (const tree::PrefixRankedBarNonlinearPattern< SymbolType > &pattern, const common::ranked_symbol< SymbolType > &symbol)
 
static bool available (const tree::PrefixRankedBarNonlinearPattern< SymbolType > &pattern, const common::ranked_symbol< SymbolType > &symbol)
 
static void valid (const tree::PrefixRankedBarNonlinearPattern< SymbolType > &, const common::ranked_symbol< SymbolType > &)
 

Detailed Description

template<class SymbolType>
class core::SetConstraint< tree::PrefixRankedBarNonlinearPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::BarSymbols >

Helper class specifying constraints for the pattern's internal bar set component.

Template Parameters
SymbolTypeused for the symbol part of the ranked symbols of the alphabet of the pattern.

Member Function Documentation

◆ available()

template<class SymbolType >
static bool core::SetConstraint< tree::PrefixRankedBarNonlinearPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::BarSymbols >::available ( const tree::PrefixRankedBarNonlinearPattern< SymbolType > &  pattern,
const common::ranked_symbol< SymbolType > &  symbol 
)
inlinestatic

Determines whether the symbol is available in the pattern's alphabet.

Parameters
patternthe tested pattern
symbolthe tested symbol
Returns
true if the symbol is already in the alphabet of the pattern

◆ used()

template<class SymbolType >
static bool core::SetConstraint< tree::PrefixRankedBarNonlinearPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::BarSymbols >::used ( const tree::PrefixRankedBarNonlinearPattern< SymbolType > &  pattern,
const common::ranked_symbol< SymbolType > &  symbol 
)
inlinestatic

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

Parameters
patternthe tested pattern
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< tree::PrefixRankedBarNonlinearPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::BarSymbols >::valid ( const tree::PrefixRankedBarNonlinearPattern< SymbolType > &  ,
const common::ranked_symbol< SymbolType > &   
)
inlinestatic

All symbols are valid as a bar symbol of the pattern.

Parameters
patternthe tested pattern
symbolthe tested symbol

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