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

Public Member Functions

def __init__ (self, start)
 
def __iter__ (self)
 
def next (self)
 

Public Attributes

 curr
 

Detailed Description

An iterator over a single item.

Definition at line 168 of file utilities.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 170 of file utilities.py.

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

Member Function Documentation

◆ __iter__()

def CellMLToNektar.utilities.unitary_iterator.__iter__ (   self)

Definition at line 174 of file utilities.py.

174 def __iter__(self):
175 return self
176

◆ next()

def CellMLToNektar.utilities.unitary_iterator.next (   self)

Definition at line 177 of file utilities.py.

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

References CellMLToNektar.utilities.unitary_iterator.curr.

Member Data Documentation

◆ curr

CellMLToNektar.utilities.unitary_iterator.curr

Definition at line 171 of file utilities.py.

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