ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 const_iterator (unsigned int chan, const LArCompactSubsetVector &subset)
 Constructor from channel index and subset reference.
LArCompactSubsetConstChannelProxy operator* () const
 Iterator dereference.
bool operator== (const const_iterator &other) const
 Iterator equality test.
bool operator!= (const const_iterator &other) const
 Iterator inequality test.
const_iteratoroperator++ ()
 Iterator increment.
const_iterator operator- (size_t delta) const
 Adjust iterator backwards.
long operator- (const const_iterator &other) const
 Iterator difference.

Private Attributes

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

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!=()

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

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: