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

Public Member Functions

 __init__ (self)
 add (self, o)

Private Attributes

int __chunksize = 65536
int __i = self.__chunksize
list __chunks = []

Detailed Description

Definition at line 277 of file root_pickle.py.

Constructor & Destructor Documentation

◆ __init__()

python.root_pickle.Saver.__init__ ( self)

Definition at line 278 of file root_pickle.py.

278 def __init__ (self):
279 self.__chunksize = 65536
280 self.__i = self.__chunksize
281 self.__chunks = []
282 return
283

Member Function Documentation

◆ add()

python.root_pickle.Saver.add ( self,
o )

Definition at line 284 of file root_pickle.py.

284 def add (self, o):
285 if self.__i >= self.__chunksize:
286 self.__chunks.append ([None] * self.__chunksize)
287 self.__i = 0
288 self.__chunks[-1][self.__i] = o
289 self.__i += 1
290 return
291
292
bool add(const std::string &hname, TKey *tobj)
Definition fastadd.cxx:55

Member Data Documentation

◆ __chunks

list python.root_pickle.Saver.__chunks = []
private

Definition at line 281 of file root_pickle.py.

◆ __chunksize

python.root_pickle.Saver.__chunksize = 65536
private

Definition at line 279 of file root_pickle.py.

◆ __i

int python.root_pickle.Saver.__i = self.__chunksize
private

Definition at line 280 of file root_pickle.py.


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