ATLAS Offline Software
Public Member Functions | Protected Attributes | Friends | List of all members
pool::CollectionPool::flushing_iterator Class Reference

iterator that flushes and closes all collections More...

#include <CollectionPool.h>

Collaboration diagram for pool::CollectionPool::flushing_iterator:

Public Member Functions

 flushing_iterator (CollectionPool *cp)
 
void forceOpen (bool fo=true)
 
flushing_iteratoroperator++ ()
 NOTE - the current collection can NOT be deleted before calling ++. More...
 
bool isValid ()
 
ICollectionoperator* ()
 
ICollectionoperator-> ()
 
ICollectionptr ()
 

Protected Attributes

CollectionPoolm_cpool
 
std::map< ICollection *, rowVect_t >::iterator m_iter
 
std::map< ICollection *, rowVect_t >::iterator m_end
 
bool m_forceOpen
 

Friends

class CollectionPool
 

Detailed Description

iterator that flushes and closes all collections

Definition at line 37 of file CollectionPool.h.

Constructor & Destructor Documentation

◆ flushing_iterator()

pool::CollectionPool::flushing_iterator::flushing_iterator ( CollectionPool cp)
inline

Definition at line 40 of file CollectionPool.h.

41  : m_cpool( cp ), m_iter( cp->m_rowCache.begin() ), m_end( cp->m_rowCache.end() ),
42  m_forceOpen( false )
43  {}

Member Function Documentation

◆ forceOpen()

void pool::CollectionPool::flushing_iterator::forceOpen ( bool  fo = true)
inline

Definition at line 45 of file CollectionPool.h.

45 { m_forceOpen = fo; }

◆ isValid()

bool pool::CollectionPool::flushing_iterator::isValid ( )
inline

Definition at line 49 of file CollectionPool.h.

49 { return m_iter != m_end; }

◆ operator*()

ICollection& pool::CollectionPool::flushing_iterator::operator* ( )
inline

Definition at line 50 of file CollectionPool.h.

50 { return *operator->(); }

◆ operator++()

flushing_iterator& pool::CollectionPool::flushing_iterator::operator++ ( )

NOTE - the current collection can NOT be deleted before calling ++.

◆ operator->()

ICollection* pool::CollectionPool::flushing_iterator::operator-> ( )

◆ ptr()

ICollection* pool::CollectionPool::flushing_iterator::ptr ( )
inline

Definition at line 52 of file CollectionPool.h.

52 { return operator->(); }

Friends And Related Function Documentation

◆ CollectionPool

friend class CollectionPool
friend

Definition at line 38 of file CollectionPool.h.

Member Data Documentation

◆ m_cpool

CollectionPool* pool::CollectionPool::flushing_iterator::m_cpool
protected

Definition at line 55 of file CollectionPool.h.

◆ m_end

std::map< ICollection*, rowVect_t >::iterator pool::CollectionPool::flushing_iterator::m_end
protected

Definition at line 56 of file CollectionPool.h.

◆ m_forceOpen

bool pool::CollectionPool::flushing_iterator::m_forceOpen
protected

Definition at line 57 of file CollectionPool.h.

◆ m_iter

std::map< ICollection*, rowVect_t >::iterator pool::CollectionPool::flushing_iterator::m_iter
protected

Definition at line 56 of file CollectionPool.h.


The documentation for this class was generated from the following file:
pool::CollectionPool::flushing_iterator::m_forceOpen
bool m_forceOpen
Definition: CollectionPool.h:57
SGout2dot.fo
fo
Definition: SGout2dot.py:88
pool::CollectionPool::flushing_iterator::m_end
std::map< ICollection *, rowVect_t >::iterator m_end
Definition: CollectionPool.h:56
LArNewCalib_PedestalAutoCorr.cp
cp
Definition: LArNewCalib_PedestalAutoCorr.py:175
pool::CollectionPool::flushing_iterator::m_iter
std::map< ICollection *, rowVect_t >::iterator m_iter
Definition: CollectionPool.h:56
pool::CollectionPool::flushing_iterator::operator->
ICollection * operator->()
pool::CollectionPool::flushing_iterator::m_cpool
CollectionPool * m_cpool
Definition: CollectionPool.h:55