Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Static Public Member Functions | List of all members
CellMLToNektar.optimize.ExpressionMatcher Class Reference
Inheritance diagram for CellMLToNektar.optimize.ExpressionMatcher:
Inheritance graph
[legend]
Collaboration diagram for CellMLToNektar.optimize.ExpressionMatcher:
Collaboration graph
[legend]

Classes

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

Static Public Member Functions

def match
 

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

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

Definition at line 1424 of file optimize.py.

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