Struct LabelRule

Inheritance Relationships

Base Type

Struct Documentation

struct LabelRule : public sequant::ExpressionFilter::Rule

Rule matching expressions that contain (at any depth) a labeled subexpression whose label fully matches one of the given patterns

Public Functions

explicit LabelRule(std::vector<std::wregex> patterns)
virtual bool matches(const Expr &expr) const override

Public Members

std::vector<std::wregex> patterns_