Read-write multidimensional array. More...
#include <Array.h>
Public Member Functions | |
WritableArray (Arrayrep &rep) | |
Constructor. | |
WritableArray< N-1 > | operator[] (unsigned int i) const |
Array indexing. | |
Arrayelt * | ptr () |
Return a direct pointer to array elements. | |
Friends | |
class | WritableArray< N+1 > |
Read-write multidimensional array.
Read-write multidimensional array, specialized for N=0
.
This class derives from <N>. It allows writing into the array, but otherwise works in the same way.
This class derives from <0>. It allows writing into the (single) element, but otherwise works in the same way.
CxxUtils::WritableArray< N >::WritableArray | ( | Arrayrep & | rep | ) | [inline] |
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.
WritableArray< N-1 > CxxUtils::WritableArray< N >::operator[] | ( | unsigned int | i | ) | const [inline] |
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.
Reimplemented from CxxUtils::Array< N >.
Arrayelt * CxxUtils::WritableArray< N >::ptr | ( | ) | [inline] |
Return a direct pointer to array elements.
Subsequent elements follow in standard C indexing order.