FairRoot/PandaRoot
|
#include <PndFTSArray.h>
Public Types | |
typedef PndFTSInternal::TypeForAlignmentHelper < T, alignment >::Type | T2 |
typedef PndFTSInternal::ArrayBase< T2, Size::Dim > | Parent |
Public Member Functions | |
PndFTSFixedArray () | |
PndFTSFixedArray (const PndFTSFixedArray &rhs) | |
int | Size () const |
operator bool () const | |
bool | IsValid () const |
PndFTSInternal::TypeForAlignmentHelper < T, alignment >::Type & | operator* () |
const PndFTSInternal::TypeForAlignmentHelper < T, alignment >::Type & | operator* () const |
PndFTSInternal::TypeForAlignmentHelper < T, alignment >::Type * | Data () |
const PndFTSInternal::TypeForAlignmentHelper < T, alignment >::Type * | Data () const |
PndFTSArray | operator+ (int x) const |
PndFTSArray | operator- (int x) const |
PndFTSArray< Other, Dim > | ReinterpretCast () const |
Private Member Functions | |
void * | operator new (size_t) |
PndFTSFixedArray & | operator= (const PndFTSFixedArray &) |
Private Attributes | |
PndFTSInternal::AlignedData < typename PndFTSInternal::TypeForAlignmentHelper < T, alignment >::Type, Size::Size, alignment > | fFixedArray |
Owns the data. When it goes out of scope the data is freed.
The memory is allocated on the stack.
Instantiate this class on the stack.
T | type of the entries in the array. |
Size | number of entries in the array. |
Dim | selects the operator[]/operator() behavior it should have. I.e. makes it behave like a 1-, 2- or 3-dim array. (defaults to 1) |
Definition at line 536 of file PndFTSArray.h.
typedef PndFTSInternal::ArrayBase<T2, Size::Dim> PndFTSFixedArray< T, Size, alignment >::Parent |
Definition at line 540 of file PndFTSArray.h.
typedef PndFTSInternal::TypeForAlignmentHelper<T, alignment>::Type PndFTSFixedArray< T, Size, alignment >::T2 |
Definition at line 539 of file PndFTSArray.h.
|
inline |
Definition at line 541 of file PndFTSArray.h.
|
inline |
Definition at line 546 of file PndFTSArray.h.
|
inlineinherited |
returns a pointer to the data This circumvents bounds checking so it should not be used.
Definition at line 398 of file PndFTSArray.h.
|
inlineinherited |
returns a const pointer to the data This circumvents bounds checking so it should not be used.
Definition at line 403 of file PndFTSArray.h.
|
inlineinherited |
allows you to check for validity of the array
Definition at line 383 of file PndFTSArray.h.
|
inlineinherited |
allows you to check for validity of the array by casting to bool
Definition at line 379 of file PndFTSArray.h.
|
private |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
moves the array base pointer so that the data that was once at index 0 will then be at index -x
|
inlineinherited |
moves the array base pointer so that the data that was once at index 0 will then be at index x
|
private |
|
inlineinherited |
Definition at line 414 of file PndFTSArray.h.
|
inlineinherited |
Returns the number of elements in the array. If it is a multi-dimensional array the size is the multiplication of the dimensions ( e.g. a 10 x 20 array returns 200 as its size ).
Definition at line 374 of file PndFTSArray.h.
|
private |
Definition at line 554 of file PndFTSArray.h.