ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | List of all members
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. More...
 

Public Member Functions

 LArCompactSubsetChannelVectorPointer ()
 Default constructor. More...
 
 LArCompactSubsetChannelVectorPointer (const LArCompactSubsetChannelVector *p)
 Constructor. More...
 
LArCompactSubsetChannelVector operator* ()
 ‘Dereference’ the pointer. More...
 
LArCompactSubsetConstChannelVector operator* () const
 ‘Dereference’ the pointer. More...
 
const LArCompactSubsetChannelVectoroperator-> () const
 ‘Dereference’ the pointer. More...
 
size_t size () const
 Return the size of this vector (number of channels for this FEB). More...
 
LArCompactSubsetChannelProxy operator[] (size_t i)
 Vector indexing. More...
 
LArCompactSubsetConstChannelProxy operator[] (size_t i) const
 Vector indexing. More...
 
const_iterator begin () const
 Begin iterator. More...
 
const_iterator end () const
 End iterator. More...
 
void resize (size_t sz)
 Resize this vector. More...
 

Protected Attributes

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

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() [1/2]

LArCompactSubsetChannelVectorPointer::LArCompactSubsetChannelVectorPointer ( )

Default constructor.

Makes an invalid ‘pointer’.

◆ LArCompactSubsetChannelVectorPointer() [2/2]

LArCompactSubsetChannelVectorPointer::LArCompactSubsetChannelVectorPointer ( const LArCompactSubsetChannelVector p)

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]

LArCompactSubsetChannelVector LArCompactSubsetChannelVectorPointer::operator* ( )

‘Dereference’ the pointer.

◆ operator*() [2/2]

LArCompactSubsetConstChannelVector LArCompactSubsetChannelVectorPointer::operator* ( ) const

‘Dereference’ the pointer.

◆ operator->()

const LArCompactSubsetChannelVector* LArCompactSubsetChannelVectorPointer::operator-> ( ) const

‘Dereference’ the pointer.

◆ 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: