ATLAS Offline Software
|
Read-write multidimensional array. More...
#include <Array.h>
Public Member Functions | |
WritableArray (Arrayrep &rep) | |
Constructor. More... | |
WritableArray< N-1 > | operator[] (unsigned int i) |
Array indexing. More... | |
Array< N-1 > | operator[] (unsigned int i) const |
Array indexing. More... | |
Arrayelt * | ptr () |
Return a direct pointer to array elements. More... | |
Private Member Functions | |
WritableArray (Arrayrep &rep, unsigned int offs) | |
Private constructor for array indexing. More... | |
Private Attributes | |
Arrayrep * | m_rep_nc |
The underlying array representation, non-const copy. More... | |
Friends | |
class | WritableArray< N+1 > |
Read-write multidimensional array.
This class derives from Array<N>
. It allows writing into the array, but otherwise works in the same way.
Definition at line 53 of file Control/CxxUtils/CxxUtils/Array.h.
CxxUtils::WritableArray::WritableArray | ( | Arrayrep & | rep | ) |
Constructor.
rep | Arrayrep from which to initialize the array. |
Initialize an array from an Arrayrep
. The new array will represent the entire Arrayrep
. The dimension N
must match the length of the Arrayrep's
shape.
|
private |
Private constructor for array indexing.
rep | Arrayrep from which to initialize the array. |
offs | Offset of the first element of the new array within rep. |
This is a private constructor used to make the Array
instances returned from an indexing operation.
WritableArray<N-1> CxxUtils::WritableArray::operator[] | ( | unsigned int | i | ) |
Array indexing.
i | The desired index. Must be less than the array size along this dimension. |
N-1
dimensional subarray in the array.Note that this operation is not available if N
is 0.
Array<N-1> CxxUtils::WritableArray::operator[] | ( | unsigned int | i | ) | const |
Array indexing.
i | The desired index. Must be less than the array size along this dimension. |
N-1
dimensional subarray in the array.Note that this operation is not available if N
is 0.
Arrayelt* CxxUtils::WritableArray::ptr | ( | ) |
Return a direct pointer to array elements.
Subsequent elements follow in standard C indexing order.
|
friend |
Definition at line 701 of file Control/CxxUtils/CxxUtils/Array.h.
|
private |
The underlying array representation, non-const copy.
Definition at line 707 of file Control/CxxUtils/CxxUtils/Array.h.