ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.dbsqlite.SQLHashKeyIterator Class Reference
Inheritance diagram for python.dbsqlite.SQLHashKeyIterator:
Collaboration diagram for python.dbsqlite.SQLHashKeyIterator:

Public Member Functions

def __init__ (self, conn, stmt, indices)
 
def __iter__ (self)
 
def next (self)
 
def __next__ (self)
 

Public Attributes

 iter
 
 getter
 

Detailed Description

Definition at line 145 of file dbsqlite.py.

Constructor & Destructor Documentation

◆ __init__()

def python.dbsqlite.SQLHashKeyIterator.__init__ (   self,
  conn,
  stmt,
  indices 
)

Definition at line 146 of file dbsqlite.py.

146  def __init__(self, conn, stmt, indices):
147  c = conn.cursor()
148  c.execute(stmt)
149 
150  self.iter = iter(c)
151  self.getter = itemgetter(*indices)
152 

Member Function Documentation

◆ __iter__()

def python.dbsqlite.SQLHashKeyIterator.__iter__ (   self)

Definition at line 153 of file dbsqlite.py.

153  def __iter__(self):
154  return self
155 

◆ __next__()

def python.dbsqlite.SQLHashKeyIterator.__next__ (   self)

Definition at line 158 of file dbsqlite.py.

158  def __next__(self): #py3
159  return self.getter(self.iter.__next__())
160 

◆ next()

def python.dbsqlite.SQLHashKeyIterator.next (   self)

Definition at line 156 of file dbsqlite.py.

156  def next(self): #py2
157  return self.getter(self.iter.next())

Member Data Documentation

◆ getter

python.dbsqlite.SQLHashKeyIterator.getter

Definition at line 151 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashKeyIterator.iter

Definition at line 150 of file dbsqlite.py.


The documentation for this class was generated from the following file:
python.Bindings.__iter__
__iter__
Definition: Control/AthenaPython/python/Bindings.py:791
fillPileUpNoiseLumi.next
next
Definition: fillPileUpNoiseLumi.py:52
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18