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

#include <RankedPattern.h>

Static Public Member Functions

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

Detailed Description

template<class SymbolType>
class core::ElementConstraint< tree::RankedPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::SubtreeWildcard >

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

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::ElementConstraint< tree::RankedPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::SubtreeWildcard >::available ( const tree::RankedPattern< 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

◆ valid()

template<class SymbolType >
static void core::ElementConstraint< tree::RankedPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::SubtreeWildcard >::valid ( const tree::RankedPattern< SymbolType > &  ,
const common::ranked_symbol< SymbolType > &  symbol 
)
inlinestatic

Subtree wildcard needs to have zero arity and it needs to be different from any nonlinear variable of the tree.

Parameters
patternthe tested pattern
symbolthe tested symbol
Exceptions
TreeExceptionif the symbol does not have zero arity
Here is the call graph for this function:

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