ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
CaloClusterCellLink::const_iterator Class Reference

const_iterator to loop over cells belonging to a cluster More...

#include <CaloClusterCellLink.h>

Collaboration diagram for CaloClusterCellLink::const_iterator:

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = const CaloCell *
 
using difference_type = std::ptrdiff_t
 
using pointer = value_type *
 
using reference = value_type &
 

Public Member Functions

 const_iterator ()=delete
 
 const_iterator (const CaloCellContainer *cellCont, linkAndWeightCollType::const_iterator it)
 constructor * More...
 
const CaloCelloperator* () const
 dereferencing operator More...
 
const CaloCelloperator-> () const
 
weight_t weight () const
 Accessor for weight associated to this cell. More...
 
unsigned index () const
 Accessor for the index of the cell in the CaloCellContainer. More...
 
const_iterator operator++ ()
 
const_iterator operator-- ()
 
const_iterator operator++ (int)
 
const_iterator operator-- (int)
 
bool operator== (const const_iterator &b) const
 
bool operator!= (const const_iterator &b) const
 

Private Attributes

const CaloCellContainerm_ccc
 
linkAndWeightCollType::const_iterator m_it
 

Detailed Description

const_iterator to loop over cells belonging to a cluster

Definition at line 56 of file CaloClusterCellLink.h.

Member Typedef Documentation

◆ difference_type

Definition at line 61 of file CaloClusterCellLink.h.

◆ iterator_category

using CaloClusterCellLink::const_iterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 59 of file CaloClusterCellLink.h.

◆ pointer

Definition at line 62 of file CaloClusterCellLink.h.

◆ reference

Definition at line 63 of file CaloClusterCellLink.h.

◆ value_type

Definition at line 60 of file CaloClusterCellLink.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

CaloClusterCellLink::const_iterator::const_iterator ( )
delete

◆ const_iterator() [2/2]

CaloClusterCellLink::const_iterator::const_iterator ( const CaloCellContainer cellCont,
linkAndWeightCollType::const_iterator  it 
)
inline

constructor *

Parameters
[in]cellContPointer to the CaloCellContainer
[in]itmap-iterator to the map insinde CaloClusterLinkContainer

Definition at line 71 of file CaloClusterCellLink.h.

71  :
72  m_ccc(cellCont), m_it(it) {};

Member Function Documentation

◆ index()

unsigned CaloClusterCellLink::const_iterator::index ( ) const
inline

Accessor for the index of the cell in the CaloCellContainer.

Definition at line 86 of file CaloClusterCellLink.h.

86 {return m_it->first;}

◆ operator!=()

Definition at line 93 of file CaloClusterCellLink.h.

93 { return m_it!=b.m_it;}

◆ operator*()

const CaloCell* CaloClusterCellLink::const_iterator::operator* ( ) const
inline

dereferencing operator

Returns
pointer to CaloCell

Definition at line 77 of file CaloClusterCellLink.h.

77 {return (*m_ccc)[m_it->first];}

◆ operator++() [1/2]

const_iterator CaloClusterCellLink::const_iterator::operator++ ( )
inline

Definition at line 88 of file CaloClusterCellLink.h.

88 {++m_it; return *this;}

◆ operator++() [2/2]

const_iterator CaloClusterCellLink::const_iterator::operator++ ( int  )
inline

Definition at line 90 of file CaloClusterCellLink.h.

90 {++m_it; return *this;}

◆ operator--() [1/2]

const_iterator CaloClusterCellLink::const_iterator::operator-- ( )
inline

Definition at line 89 of file CaloClusterCellLink.h.

89 {--m_it; return *this;}

◆ operator--() [2/2]

const_iterator CaloClusterCellLink::const_iterator::operator-- ( int  )
inline

Definition at line 91 of file CaloClusterCellLink.h.

91 {--m_it; return *this;}

◆ operator->()

const CaloCell* CaloClusterCellLink::const_iterator::operator-> ( ) const
inline

Definition at line 78 of file CaloClusterCellLink.h.

78 {return (*m_ccc)[m_it->first];}

◆ operator==()

bool CaloClusterCellLink::const_iterator::operator== ( const const_iterator b) const
inline

Definition at line 92 of file CaloClusterCellLink.h.

92 { return m_it==b.m_it;}

◆ weight()

weight_t CaloClusterCellLink::const_iterator::weight ( ) const
inline

Accessor for weight associated to this cell.

Definition at line 82 of file CaloClusterCellLink.h.

82 {return m_it->second;}

Member Data Documentation

◆ m_ccc

const CaloCellContainer* CaloClusterCellLink::const_iterator::m_ccc
private

Definition at line 96 of file CaloClusterCellLink.h.

◆ m_it

linkAndWeightCollType::const_iterator CaloClusterCellLink::const_iterator::m_it
private

Definition at line 97 of file CaloClusterCellLink.h.


The documentation for this class was generated from the following file:
skel.it
it
Definition: skel.GENtoEVGEN.py:396
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77