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

Iterator for LArCompactSubsetChannelVector. More...

#include <LArCompactSubset.h>

Collaboration diagram for LArCompactSubsetChannelVector::const_iterator:

Public Member Functions

 const_iterator ()
 Default constructor. More...
 
 const_iterator (unsigned int chan, const LArCompactSubsetVector &subset)
 Constructor from channel index and subset reference. More...
 
LArCompactSubsetConstChannelProxy operator* () const
 Iterator dereference. More...
 
bool operator== (const const_iterator &other) const
 Iterator equality test. More...
 
bool operator!= (const const_iterator &other) const
 Iterator inequality test. More...
 
const_iteratoroperator++ ()
 Iterator increment. More...
 
const_iterator operator- (size_t delta) const
 Adjust iterator backwards. More...
 
long operator- (const const_iterator &other) const
 Iterator difference. More...
 

Private Attributes

unsigned int m_chan
 Channel index at which we're currently pointing. More...
 
const LArCompactSubsetVectorm_subset
 Subset within which we live. More...
 

Detailed Description

Iterator for LArCompactSubsetChannelVector.

Iteration variable is the channel index.

Definition at line 263 of file LArCompactSubset.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/2]

LArCompactSubsetChannelVector::const_iterator::const_iterator ( )

Default constructor.

◆ const_iterator() [2/2]

LArCompactSubsetChannelVector::const_iterator::const_iterator ( unsigned int  chan,
const LArCompactSubsetVector subset 
)

Constructor from channel index and subset reference.

Member Function Documentation

◆ operator!=()

Iterator inequality test.

◆ operator*()

LArCompactSubsetConstChannelProxy LArCompactSubsetChannelVector::const_iterator::operator* ( ) const

Iterator dereference.

Yields a channel proxy.

◆ operator++()

const_iterator& LArCompactSubsetChannelVector::const_iterator::operator++ ( )

Iterator increment.

◆ operator-() [1/2]

long LArCompactSubsetChannelVector::const_iterator::operator- ( const const_iterator other) const

Iterator difference.

Parameters
otherOther iterator for difference.

◆ operator-() [2/2]

const_iterator LArCompactSubsetChannelVector::const_iterator::operator- ( size_t  delta) const

Adjust iterator backwards.

Parameters
deltaAmount by which to adjust.

◆ operator==()

bool LArCompactSubsetChannelVector::const_iterator::operator== ( const const_iterator other) const

Iterator equality test.

Member Data Documentation

◆ m_chan

unsigned int LArCompactSubsetChannelVector::const_iterator::m_chan
private

Channel index at which we're currently pointing.

Definition at line 319 of file LArCompactSubset.h.

◆ m_subset

const LArCompactSubsetVector* LArCompactSubsetChannelVector::const_iterator::m_subset
private

Subset within which we live.

Definition at line 322 of file LArCompactSubset.h.


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