ATLAS Offline Software
Public Member Functions | Private Member Functions | Friends | List of all members
SG::ArenaHandleBaseT< T, ALLOC >::const_iterator Class Reference

Const iterator. More...

#include <ArenaHandleBaseT.h>

Inheritance diagram for SG::ArenaHandleBaseT< T, ALLOC >::const_iterator:
Collaboration diagram for SG::ArenaHandleBaseT< T, ALLOC >::const_iterator:

Public Member Functions

 const_iterator (const typename ALLOC::const_iterator &it)
 Constructor. More...
 
 const_iterator (const iterator &it)
 Constructor from a non-const iterator. More...
 

Private Member Functions

const_iterator::reference dereference () const
 Dereference the iterator. More...
 

Friends

class boost::iterator_core_access
 

Detailed Description

template<class T, class ALLOC>
class SG::ArenaHandleBaseT< T, ALLOC >::const_iterator

Const iterator.

It iterates over all unallocated blocks in the current Allocator (in unspecified order). It will be at least a forward_iterator.

Note that this is only supported if the underlying Allocator supports it. If it does not, you will not be able to instantiate this type.

This uses boost::iterator_adaptor to handle casting the element pointers to the proper type.

Definition at line 138 of file ArenaHandleBaseT.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

template<class T , class ALLOC >
SG::ArenaHandleBaseT< T, ALLOC >::const_iterator::const_iterator ( const typename ALLOC::const_iterator &  it)

Constructor.

Parameters
itThe base iterator.

◆ const_iterator() [2/2]

template<class T , class ALLOC >
SG::ArenaHandleBaseT< T, ALLOC >::const_iterator::const_iterator ( const iterator it)

Constructor from a non-const iterator.

Parameters
itThe non-const iterator.

Member Function Documentation

◆ dereference()

template<class T , class ALLOC >
const_iterator::reference SG::ArenaHandleBaseT< T, ALLOC >::const_iterator::dereference ( ) const
private

Dereference the iterator.

Friends And Related Function Documentation

◆ boost::iterator_core_access

template<class T , class ALLOC >
friend class boost::iterator_core_access
friend

Definition at line 163 of file ArenaHandleBaseT.h.


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