|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef COLLECTIONUTILITIES_COLLECTIONPOOL_H
6 #define COLLECTIONUTILITIES_COLLECTIONPOOL_H
31 typedef std::vector< pool::CollectionRowBuffer >
rowVect_t;
85 std::map< std::string, pool::ICollection* >
m_map;
JetConstituentVector::iterator iterator
pool::CollectionRowBuffer m_rowBuffer
flushing_iterator(CollectionPool *cp)
CollectionPool(unsigned maxOpen=50, unsigned cacheSize=100)
std::map< pool::ICollection *, rowVect_t > m_rowCache
virtual ICollection * get(const std::string &guid)
get back which collection corresponds to a GUID
void forceOpen(bool fo=true)
virtual ~CollectionPool()
flushing_iterator & operator++()
NOTE - the current collection can NOT be deleted before calling ++.
virtual void insertRow(const std::string &guid, const pool::CollectionRowBuffer &row)
insert row to a connection designated for a given GUID
virtual const std::string & getDstRefName()
std::queue< pool::ICollection * > m_queue
std::map< ICollection *, rowVect_t >::iterator m_end
virtual pool::CollectionRowBuffer & getRowBuffer(const std::string &)
iterator that flushes and closes all collections
std::vector< pool::CollectionRowBuffer > rowVect_t
std::map< std::string, pool::ICollection * > m_map
ICollection & operator*()
void queueOpenColl(pool::ICollection *coll)
std::map< ICollection *, rowVect_t >::iterator m_iter
ICollection * operator->()
void writeCache(pool::ICollection *coll)
virtual void addCollection(const std::string &guid, ICollection *coll)
add GUID -> collection mapping