ATLAS Offline Software
Loading...
Searching...
No Matches
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

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

478: iterator_adaptor_ (it) {}
boost::iterator_adaptor< iterator, Base::iterator, Base::value_type, Base::iterator::iterator_category, Base::value_type > iterator_adaptor_

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()); }
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
std::string base
Definition hcg.cxx:81

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