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

Private Member Functions

def _set_in_units
 

Private Attributes

 _cml_units
 

Detailed Description

Definition at line 3666 of file pycml.py.

Member Function Documentation

def CellMLToNektar.pycml.mathml_units_mixin_container._set_in_units (   self,
  units,
  no_act = False 
)
private
Set the units of this element.

For container elements, we set the units of the child(ren).

Definition at line 3667 of file pycml.py.

References CellMLToNektar.pycml.mathml_units_mixin._set_element_in_units().

3668  def _set_in_units(self, units, no_act=False):
3669  """Set the units of this element.
3670 
3671  For container elements, we set the units of the child(ren).
3672  """
3673  # We need to copy the children list, because the tree
3674  # may be modified if a conversion is thought to be needed
3675  for elt in self.xml_children[:]:
3676  if getattr(elt, 'nodeType', None) == Node.ELEMENT_NODE:
3677  self._set_element_in_units(elt, units, no_act)
3678  # And set our units to what they now are
3679  if not no_act:
3680  self._cml_units = units
3681  return

Member Data Documentation

CellMLToNektar.pycml.mathml_units_mixin_container._cml_units
private

Definition at line 3679 of file pycml.py.

Referenced by CellMLToNektar.pycml.mathml_apply._set_in_units(), CellMLToNektar.pycml.mathml_piecewise._set_in_units(), CellMLToNektar.pycml.mathml_apply.get_units(), and CellMLToNektar.pycml.mathml_piecewise.get_units().