ATLAS Offline Software
Loading...
Searching...
No Matches
python.dbsqlite.SQLHashKeyIterator Class Reference
Inheritance diagram for python.dbsqlite.SQLHashKeyIterator:
Collaboration diagram for python.dbsqlite.SQLHashKeyIterator:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

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

Public Attributes

 iter = iter(c)
 getter = itemgetter(*indices)

Detailed Description

Definition at line 143 of file dbsqlite.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 144 of file dbsqlite.py.

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

Member Function Documentation

◆ __iter__()

python.dbsqlite.SQLHashKeyIterator.__iter__ ( self)

Definition at line 151 of file dbsqlite.py.

151 def __iter__(self):
152 return self
153

◆ __next__()

python.dbsqlite.SQLHashKeyIterator.__next__ ( self)

Definition at line 156 of file dbsqlite.py.

156 def __next__(self): #py3
157 return self.getter(self.iter.__next__())
158

◆ next()

python.dbsqlite.SQLHashKeyIterator.next ( self)

Definition at line 154 of file dbsqlite.py.

154 def next(self): #py2
155 return self.getter(self.iter.next())

Member Data Documentation

◆ getter

python.dbsqlite.SQLHashKeyIterator.getter = itemgetter(*indices)

Definition at line 149 of file dbsqlite.py.

◆ iter

python.dbsqlite.SQLHashKeyIterator.iter = iter(c)

Definition at line 148 of file dbsqlite.py.


The documentation for this class was generated from the following file: