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

Public Member Functions

def __init__
 
def evaluate
 
- Public Member Functions inherited from CellMLToNektar.pycml.mathml_operator
def wrong_number_of_operands
 
- Public Member Functions inherited from CellMLToNektar.pycml.mathml
def __init__
 
def __repr__
 
def __deepcopy__
 
def clone_self
 
def get_original_of_clone
 
def get_component
 
def model
 
def eval
 
- Public Member Functions inherited from CellMLToNektar.pycml.element_base
def __init__
 
def __delattr__
 
def __setattr__
 
def rootNode
 
def cmeta_id
 
def xml_remove_child_at
 
def xml_doc
 
def xml_properties
 

Additional Inherited Members

- Static Public Member Functions inherited from CellMLToNektar.pycml.mathml
def clone
 
- Public Attributes inherited from CellMLToNektar.pycml.element_base
 xml_attributes
 
- Properties inherited from CellMLToNektar.pycml.mathml
 component = property(get_component)
 

Detailed Description

Class representing the MathML <plus> operator.

Definition at line 5554 of file pycml.py.

Constructor & Destructor Documentation

def CellMLToNektar.pycml.mathml_plus.__init__ (   self)

Definition at line 5556 of file pycml.py.

5557  def __init__(self):
5558  super(mathml_plus, self).__init__()
5559  return

Member Function Documentation

def CellMLToNektar.pycml.mathml_plus.evaluate (   self)
Evaluate by summing the operands of the enclosing <apply>.

Definition at line 5560 of file pycml.py.

References CellMLToNektar.pycml.mathml.eval().

Referenced by CellMLToNektar.pycml.mathml_constructor._eval_self().

5561  def evaluate(self):
5562  """Evaluate by summing the operands of the enclosing <apply>."""
5563  app = self.xml_parent
5564  ops = app.operands()
5565  value = 0
5566  for operand in ops:
5567  value += self.eval(operand)
5568  return value