ATLAS Offline Software
|
Non-const iterator for the pool. More...
#include <ArenaPoolAllocator.h>
Public Member Functions | |
iterator () | |
Default constructor. More... | |
iterator (pointer p, ArenaBlock *block) | |
Constructor. More... | |
Private Member Functions | |
void | increment () |
Move the iterator forward. More... | |
Private Attributes | |
ArenaBlock * | m_block |
Block containing the current element. More... | |
Friends | |
class | const_iterator |
class | boost::iterator_core_access |
Non-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 53 of file ArenaPoolAllocator.h.
SG::ArenaPoolAllocator::iterator::iterator | ( | ) |
Default constructor.
SG::ArenaPoolAllocator::iterator::iterator | ( | pointer | p, |
ArenaBlock * | block | ||
) |
Constructor.
p | Pointer to the element. |
block | Block containing the element. |
|
private |
|
friend |
Definition at line 84 of file ArenaPoolAllocator.h.
|
friend |
Definition at line 76 of file ArenaPoolAllocator.h.
|
private |
Block containing the current element.
Definition at line 81 of file ArenaPoolAllocator.h.