Nektar++
Classes | Static Public Member Functions | List of all members
CellMLToNektar.optimize.ExpressionMatcher Class Reference
Inheritance diagram for CellMLToNektar.optimize.ExpressionMatcher:
[legend]

Classes

class  A
 
class  N
 
class  Pattern
 
class  R
 
class  V
 
class  X
 

Static Public Member Functions

def match (pattern, expression)
 

Detailed Description

Test whether a MathML expression matches a given tree pattern.

Patterns are instances of the nested Pattern class, or more specifically
one of its subclasses.  The static method match on this class checks an
expression against a pattern, returning True iff there is a match.

Definition at line 1326 of file optimize.py.

Member Function Documentation

◆ match()

def CellMLToNektar.optimize.ExpressionMatcher.match (   pattern,
  expression 
)
static
Test for a match.

Definition at line 1424 of file optimize.py.

1424 def match(pattern, expression):
1425 """Test for a match."""
1426 return pattern.match(expression)
1427