Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
Static Public Member Functions
core::ElementConstraint< tree::PrefixBarTree< SymbolType >, SymbolType, tree::BarSymbol > Class Template Reference

#include <PrefixBarTree.h>

Static Public Member Functions

static bool available (const tree::PrefixBarTree< SymbolType > &tree, const SymbolType &symbol)
 
static void valid (const tree::PrefixBarTree< SymbolType > &, const SymbolType &)
 

Detailed Description

template<class SymbolType>
class core::ElementConstraint< tree::PrefixBarTree< SymbolType >, SymbolType, tree::BarSymbol >

Helper class specifying constraints for the pattern's internal subtree bar element.

Template Parameters
SymbolTypeused for the symbol of the alphabet

Member Function Documentation

◆ available()

template<class SymbolType >
static bool core::ElementConstraint< tree::PrefixBarTree< SymbolType >, SymbolType, tree::BarSymbol >::available ( const tree::PrefixBarTree< SymbolType > &  tree,
const 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

◆ valid()

template<class SymbolType >
static void core::ElementConstraint< tree::PrefixBarTree< SymbolType >, SymbolType, tree::BarSymbol >::valid ( const tree::PrefixBarTree< SymbolType > &  ,
const SymbolType &   
)
inlinestatic

All symbols are valid as bar.

Parameters
patternthe tested pattern
symbolthe tested symbol

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