ATLAS Offline Software
Public Member Functions | Private Types | List of all members
CaloTowerContainer::iterator Class Reference

Iterator class for which the reference type is not an lvalue. More...

#include <CaloTowerContainer.h>

Inheritance diagram for CaloTowerContainer::iterator:
Collaboration diagram for CaloTowerContainer::iterator:

Public Member Functions

 iterator ()
 
 iterator (Base::iterator it)
 
 operator const_iterator () const
 

Private Types

typedef boost::iterator_adaptor< iterator, Base::iterator, Base::value_type, Base::iterator::iterator_category, Base::value_typeiterator_adaptor_
 

Detailed Description

Iterator class for which the reference type is not an lvalue.

   Normally, the iterator for a DataVector uses ElementProxy
   as the reference type, so a dereferenced iterator can act
   as an lvalue.  Here, we change it to an rvalue (just a
   CaloTower*) so that the pointers can't be changed
   through the iterator.

Definition at line 459 of file Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h.

Member Typedef Documentation

◆ iterator_adaptor_

typedef boost::iterator_adaptor<iterator, Base::iterator, Base::value_type, Base::iterator::iterator_category, Base::value_type> CaloTowerContainer::iterator::iterator_adaptor_
private

Constructor & Destructor Documentation

◆ iterator() [1/2]

CaloTowerContainer::iterator::iterator ( )
inline

Definition at line 477 of file Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h.

477 {}

◆ iterator() [2/2]

CaloTowerContainer::iterator::iterator ( Base::iterator  it)
inline

Member Function Documentation

◆ operator const_iterator()

CaloTowerContainer::iterator::operator const_iterator ( ) const
inline

Definition at line 480 of file Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h.

481  { return const_iterator (this->base()); }

The documentation for this class was generated from the following file:
base
std::string base
Definition: hcg.cxx:78
DataVector< CaloTower >::const_iterator
DataModel_detail::const_iterator< DataVector > const_iterator
Standard const_iterator.
Definition: DataVector.h:837
skel.it
it
Definition: skel.GENtoEVGEN.py:423
CaloTowerContainer::iterator::iterator_adaptor_
boost::iterator_adaptor< iterator, Base::iterator, Base::value_type, Base::iterator::iterator_category, Base::value_type > iterator_adaptor_
Definition: Calorimeter/CaloEvent/CaloEvent/CaloTowerContainer.h:474