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

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 159 of file dbsqlite.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 160 of file dbsqlite.py.

160 def __init__(self, conn, stmt, indices):
161 c = conn.cursor()
162 c.execute(stmt)
163
164 self.iter = iter(c)
165 self.getter = itemgetter(*indices)
166

Member Function Documentation

◆ __iter__()

python.dbsqlite.SQLHashValueIterator.__iter__ ( self)

Definition at line 167 of file dbsqlite.py.

167 def __iter__(self):
168 return self
169

◆ __next__()

python.dbsqlite.SQLHashValueIterator.__next__ ( self)

Definition at line 173 of file dbsqlite.py.

173 def __next__(self): #py3
174 o = self.getter(self.iter.__next__())
175 return pickle.loads(o)
176

◆ next()

python.dbsqlite.SQLHashValueIterator.next ( self)

Definition at line 170 of file dbsqlite.py.

170 def next(self): #py2
171 o = self.getter(self.iter.next())
172 return pickle.loads(o)

Member Data Documentation

◆ getter

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

Definition at line 165 of file dbsqlite.py.

◆ iter

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

Definition at line 164 of file dbsqlite.py.


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