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

Iterator class. More...

#include <LArCompactSubset.h>

Collaboration diagram for LArCompactSubsetVector::iterator:

Public Types

typedef long difference_type
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Iterator class.

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

Definition at line 544 of file LArCompactSubset.h.

Member Typedef Documentation

◆ difference_type

Definition at line 547 of file LArCompactSubset.h.

Constructor & Destructor Documentation

◆ iterator()

LArCompactSubsetVector::iterator::iterator ( size_t  febIndex,
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*()

LArCompactSubsetFebPair LArCompactSubsetVector::iterator::operator* ( )

‘Dereference’ the iterator.

◆ operator+()

iterator LArCompactSubsetVector::iterator::operator+ ( size_t  delta)

Adjust iterator.

Parameters
deltaAmount by which to advance the iterator.

◆ operator++()

iterator& LArCompactSubsetVector::iterator::operator++ ( )

Advance iterator.

◆ operator-()

difference_type LArCompactSubsetVector::iterator::operator- ( const iterator other)

Iterator difference.

Parameters
otherOther iterator for difference.

◆ operator==()

bool LArCompactSubsetVector::iterator::operator== ( const iterator other) const

Compare iterators for equality.

Member Data Documentation

◆ m_febIndex

size_t LArCompactSubsetVector::iterator::m_febIndex
private

Index we're currently referencing.

Definition at line 599 of file LArCompactSubset.h.

◆ m_subset

LArCompactSubsetVector& LArCompactSubsetVector::iterator::m_subset
private

The subset within which we live.

Definition at line 602 of file LArCompactSubset.h.


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