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

#include <RankedExtendedPattern.h>

Static Public Member Functions

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

Detailed Description

template<class SymbolType>
class core::SetConstraint< tree::RankedExtendedPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::NodeWildcards >

Helper class specifying constraints for the pattern's internal node wildcards component.

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

Member Function Documentation

◆ available()

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

Node wildcards must already be in the alphabet.

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

◆ used()

template<class SymbolType >
static bool core::SetConstraint< tree::RankedExtendedPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::NodeWildcards >::used ( const tree::RankedExtendedPattern< SymbolType > &  ,
const common::ranked_symbol< SymbolType > &   
)
inlinestatic

Any node wildcard may be changed to a regular node.

Parameters
patternthe tested pattern
symbolthe tested symbol
Returns
false

◆ valid()

template<class SymbolType >
static void core::SetConstraint< tree::RankedExtendedPattern< SymbolType >, common::ranked_symbol< SymbolType >, tree::NodeWildcards >::valid ( const tree::RankedExtendedPattern< SymbolType > &  pattern,
const common::ranked_symbol< SymbolType > &  symbol 
)
inlinestatic

Node wildcard cannot be a subtree wildcard at the same time.

Parameters
patternthe tested pattern
symbolthe tested symbol
Exceptions
TreeExceptionif the symbol is already a subtree wildcard

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