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

Public Member Functions

def __init__ (self)
 
def match (self, expr)
 
def match (self, expr)
 

Public Attributes

 matched
 

Detailed Description

A placeholder, matching anything (and noting what was matched).

Definition at line 1392 of file optimize.py.

Constructor & Destructor Documentation

◆ __init__()

def CellMLToNektar.optimize.ExpressionMatcher.X.__init__ (   self)

Definition at line 1394 of file optimize.py.

1394 def __init__(self):
1395 self.matched = None
1396

Member Function Documentation

◆ match()

def CellMLToNektar.optimize.ExpressionMatcher.X.match (   self,
  expr 
)
Method implemented by concrete subclasses to test a given expression.
Returns True iff there is a match.

Reimplemented from CellMLToNektar.optimize.ExpressionMatcher.Pattern.

Definition at line 1397 of file optimize.py.

1397 def match(self, expr):
1398 self.matched = expr
1399 return True
1400
1401 class R(Pattern):

References CellMLToNektar.optimize.ExpressionMatcher.X.matched.

Member Data Documentation

◆ matched

CellMLToNektar.optimize.ExpressionMatcher.X.matched

Definition at line 1395 of file optimize.py.

Referenced by CellMLToNektar.optimize.ExpressionMatcher.X.match().