ATLAS Offline Software
Loading...
Searching...
No Matches
LArCompactSubsetChannelVectorPointer Class Reference

This acts as a pointer to a LArCompactSubsetChannelVector. More...

#include <LArCompactSubset.h>

Inheritance diagram for LArCompactSubsetChannelVectorPointer:
Collaboration diagram for LArCompactSubsetChannelVectorPointer:

Public Types

typedef const_iterator iterator
 No separate non-const iterator.

Public Member Functions

 LArCompactSubsetChannelVectorPointer (const LArCompactSubsetChannelVector *p)
 Default constructor.
size_t size () const
 Return the size of this vector (number of channels for this FEB).
LArCompactSubsetChannelProxy operator[] (size_t i)
 Vector indexing.
LArCompactSubsetConstChannelProxy operator[] (size_t i) const
 Vector indexing.
const_iterator begin () const
 Begin iterator.
const_iterator end () const
 End iterator.
void resize (size_t sz)
 Resize this vector.

Protected Attributes

size_t m_febIndex
 The index of the FEB with which this vector is associated.
LArCompactSubsetVectorm_subset
 The subset within which we live.

Detailed Description

This acts as a pointer to a LArCompactSubsetChannelVector.

Actually, since LArCompactSubsetChannelVector is itself a reference, and we'd need to hold the reference anyway, we just extend LArCompactSubsetChannelVector with a pointer dereference.

Definition at line 436 of file LArCompactSubset.h.

Member Typedef Documentation

◆ iterator

No separate non-const iterator.

Definition at line 327 of file LArCompactSubset.h.

Constructor & Destructor Documentation

◆ LArCompactSubsetChannelVectorPointer()

LArCompactSubsetChannelVectorPointer::LArCompactSubsetChannelVectorPointer ( const LArCompactSubsetChannelVector * p)

Default constructor.

Makes an invalid `pointer'. */ LArCompactSubsetChannelVectorPointer();

/**

Constructor.

Parameters
pPointer to a channel vector proxy.

Member Function Documentation

◆ begin()

const_iterator LArCompactSubsetChannelVector::begin ( ) const
inherited

Begin iterator.

◆ end()

const_iterator LArCompactSubsetChannelVector::end ( ) const
inherited

End iterator.

◆ operator[]() [1/2]

LArCompactSubsetChannelProxy LArCompactSubsetChannelVector::operator[] ( size_t i)
inherited

Vector indexing.

Returns a channel proxy.

Parameters
iChannel index within the vector.

◆ operator[]() [2/2]

LArCompactSubsetConstChannelProxy LArCompactSubsetChannelVector::operator[] ( size_t i) const
inherited

Vector indexing.

Returns a channel proxy.

Parameters
iChannel index within the vector.

◆ resize()

void LArCompactSubsetChannelVector::resize ( size_t sz)
inherited

Resize this vector.

Parameters
szThe desired new size.

Restriction: Only the vector associated with the last FEB index in the subset may be resized.

◆ size()

size_t LArCompactSubsetChannelVector::size ( ) const
inherited

Return the size of this vector (number of channels for this FEB).

Member Data Documentation

◆ m_febIndex

size_t LArCompactSubsetChannelVector::m_febIndex
protectedinherited

The index of the FEB with which this vector is associated.

Definition at line 379 of file LArCompactSubset.h.

◆ m_subset

LArCompactSubsetVector* LArCompactSubsetChannelVector::m_subset
protectedinherited

The subset within which we live.

Definition at line 382 of file LArCompactSubset.h.


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