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

Public Member Functions

def __init__
 
def set_variable
 
def match
 
- Public Member Functions inherited from CellMLToNektar.optimize.ExpressionMatcher.Pattern
def match
 

Public Attributes

 var
 

Detailed Description

A variable reference.

Definition at line 1360 of file optimize.py.

Constructor & Destructor Documentation

def CellMLToNektar.optimize.ExpressionMatcher.V.__init__ (   self,
  var = None 
)

Member Function Documentation

def CellMLToNektar.optimize.ExpressionMatcher.V.match (   self,
  expr 
)

Definition at line 1371 of file optimize.py.

References CellMLToNektar.optimize.ExpressionMatcher.V.var.

1372  def match(self, expr):
1373  matched = False
1374  if isinstance(expr, mathml_ci) and self.var is expr.variable.get_source_variable(recurse=True):
1375  matched = True
1376  return matched
class N(Pattern):
def CellMLToNektar.optimize.ExpressionMatcher.V.set_variable (   self,
  var 
)

Definition at line 1365 of file optimize.py.

Referenced by CellMLToNektar.optimize.ExpressionMatcher.V.__init__().

1366  def set_variable(self, var):
1367  if var:
1368  self.var = var.get_source_variable(recurse=True)
1369  else:
1370  self.var = var

Member Data Documentation

CellMLToNektar.optimize.ExpressionMatcher.V.var

Definition at line 1367 of file optimize.py.

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