ATLAS Offline Software
Public Types | Public Member Functions | Private Attributes | List of all members
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. More...
 
LArCompactSubsetConstFebPair operator* ()
 ‘Dereference’ the iterator. More...
 
bool operator== (const const_iterator &other) const
 Compare iterators for equality. More...
 
bool operator!= (const const_iterator &other) const
 Compare iterators for inequality. More...
 
const_iteratoroperator++ ()
 Advance iterator. More...
 
const_iterator operator+ (size_t delta) const
 Adjust iterator. More...
 
difference_type operator- (const const_iterator &other) const
 Iterator difference. More...
 

Private Attributes

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

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

Definition at line 614 of file LArCompactSubset.h.

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

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: