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

Public Member Functions

def __init__
 
def __iter__
 
def next
 

Public Attributes

 curr
 

Detailed Description

An iterator over a single item.

Definition at line 168 of file utilities.py.

Constructor & Destructor Documentation

def CellMLToNektar.utilities.unitary_iterator.__init__ (   self,
  start 
)

Definition at line 170 of file utilities.py.

171  def __init__(self, start):
172  self.curr = start
173  return

Member Function Documentation

def CellMLToNektar.utilities.unitary_iterator.__iter__ (   self)

Definition at line 174 of file utilities.py.

175  def __iter__(self):
176  return self
def CellMLToNektar.utilities.unitary_iterator.next (   self)

Definition at line 177 of file utilities.py.

References CellMLToNektar.utilities.amara_parse(), and CellMLToNektar.utilities.unitary_iterator.curr.

178  def next(self):
179  if not self.curr:
180  raise StopIteration()
181  result = self.curr
182  self.curr = None
183  return result
184 

Member Data Documentation

CellMLToNektar.utilities.unitary_iterator.curr

Definition at line 171 of file utilities.py.

Referenced by CellMLToNektar.utilities.unitary_iterator.next().