![]() |
ATLAS Offline Software
|
Const iterator for the pool. More...
#include <ArenaPoolAllocator.h>
Public Member Functions | |
const_iterator () | |
Default constructor. More... | |
const_iterator (pointer p, const ArenaBlock *block) | |
Constructor. More... | |
const_iterator (const iterator &it) | |
Constructor from iterator . More... | |
Private Member Functions | |
void | increment () |
Move the iterator forward. More... | |
Private Attributes | |
const ArenaBlock * | m_block |
Block containing the current element. More... | |
Friends | |
class | boost::iterator_core_access |
Const iterator for the pool.
It iterates over all allocated blocks (in unspecified order).
We use boost::iterator_adaptor
, and take a pointer
as the base iterator type. Besides that, we also need to record the current block which we're within.
Definition at line 99 of file ArenaPoolAllocator.h.
SG::ArenaPoolAllocator::const_iterator::const_iterator | ( | ) |
Default constructor.
SG::ArenaPoolAllocator::const_iterator::const_iterator | ( | pointer | p, |
const ArenaBlock * | block | ||
) |
Constructor.
p | Pointer to the element. |
block | Block containing the element. |
Constructor from iterator
.
it | The iterator to copy. |
|
private |
|
friend |
Definition at line 133 of file ArenaPoolAllocator.h.
|
private |
Block containing the current element.
Definition at line 130 of file ArenaPoolAllocator.h.