ATLAS Offline Software
Loading...
Searching...
No Matches
LArCompactSubsetVector::const_iterator Class Reference

const_iterator class. More...

#include <LArCompactSubset.h>

Collaboration diagram for LArCompactSubsetVector::const_iterator:

Public Types

typedef long difference_type

Public Member Functions

 const_iterator (size_t febIndex, const LArCompactSubsetVector &subset)
 Constructor.
LArCompactSubsetConstFebPair operator* ()
 ‘Dereference’ the iterator.
bool operator== (const const_iterator &other) const
 Compare iterators for equality.
bool operator!= (const const_iterator &other) const
 Compare iterators for inequality.
const_iteratoroperator++ ()
 Advance iterator.
const_iterator operator+ (size_t delta) const
 Adjust iterator.
difference_type operator- (const const_iterator &other) const
 Iterator difference.

Private Attributes

size_t m_febIndex
 Index we're currently referencing.
const LArCompactSubsetVectorm_subset
 The subset within which we live.

Detailed Description

const_iterator class.

This dereferences into LArCompactSubsetConstFebPair. The iteration variable is the FEB index.

Definition at line 611 of file LArCompactSubset.h.

Member Typedef Documentation

◆ difference_type

Constructor & Destructor Documentation

◆ const_iterator()

LArCompactSubsetVector::const_iterator::const_iterator ( size_t febIndex,
const LArCompactSubsetVector & subset )

Constructor.

Parameters
febIndexThe FEB index to which we point.
subsetThe subset within which we live.

Member Function Documentation

◆ operator!=()

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

Compare iterators for inequality.

◆ operator*()

LArCompactSubsetConstFebPair LArCompactSubsetVector::const_iterator::operator* ( )

‘Dereference’ the iterator.

◆ operator+()

const_iterator LArCompactSubsetVector::const_iterator::operator+ ( size_t delta) const

Adjust iterator.

Parameters
deltaAmount by which to advance the iterator.

◆ operator++()

const_iterator & LArCompactSubsetVector::const_iterator::operator++ ( )

Advance iterator.

◆ operator-()

difference_type LArCompactSubsetVector::const_iterator::operator- ( const const_iterator & other) const

Iterator difference.

Parameters
otherOther iterator for difference.

◆ operator==()

bool LArCompactSubsetVector::const_iterator::operator== ( const const_iterator & other) const

Compare iterators for equality.

Member Data Documentation

◆ m_febIndex

size_t LArCompactSubsetVector::const_iterator::m_febIndex
private

Index we're currently referencing.

Definition at line 666 of file LArCompactSubset.h.

◆ m_subset

const LArCompactSubsetVector& LArCompactSubsetVector::const_iterator::m_subset
private

The subset within which we live.

Definition at line 669 of file LArCompactSubset.h.


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