ATLAS Offline Software
|
Auxiliary variable span wrapper. More...
#include <AuxDataSpan.h>
Public Member Functions | |
AuxDataSpan (const AuxDataSpanBase &span) | |
Constructor. More... | |
size_t | size () const |
Return the size of the span. More... | |
bool | empty () const |
Test to see if the span is empty. More... | |
T * | data () |
Return the start of the span. More... | |
const T * | data () const |
Return the start of the span (const). More... | |
T & | operator[] (size_t index) |
Element access. More... | |
const T & | operator[] (size_t index) const |
Element access (const). More... | |
T & | at (size_t index) |
Bounds-checked element access. More... | |
const T & | at (size_t index) const |
Bounds-checked element access (const). More... | |
T & | front () |
Return the first element in the range. More... | |
const T & | front () const |
Return the first element in the range (const). More... | |
T & | back () |
Return the last element in the range. More... | |
const T & | back () const |
Return the last element in the range (const). More... | |
Private Attributes | |
const AuxDataSpanBase & | m_span |
The wrapped object. More... | |
Auxiliary variable span wrapper.
This wraps an AuxDataSpanBase
for more user-friendly access. It holds the AuxDataSpanBase
by reference, so it will implicity see any changes.
Definition at line 70 of file AuxDataSpan.h.
|
inline |
|
inline |
|
inline |
|
inline |
Return the last element in the range.
Definition at line 161 of file AuxDataSpan.h.
|
inline |
Return the last element in the range (const).
Definition at line 167 of file AuxDataSpan.h.
|
inline |
Return the start of the span.
Definition at line 95 of file AuxDataSpan.h.
|
inline |
Return the start of the span (const).
Definition at line 101 of file AuxDataSpan.h.
|
inline |
Test to see if the span is empty.
Definition at line 89 of file AuxDataSpan.h.
|
inline |
|
inline |
|
inline |
|
inline |
Element access (const).
index The element index to access.
Definition at line 118 of file AuxDataSpan.h.
|
inline |
Return the size of the span.
Definition at line 83 of file AuxDataSpan.h.
|
private |
The wrapped object.
Definition at line 172 of file AuxDataSpan.h.