#include <Array.h>
|
enum | { NDIM = 0
} |
| The number of dimensions of the array. More...
|
|
|
Arrayelt * | m_elt_nc |
| Pointer to this array's single element, non-const copy. More...
|
|
◆ anonymous enum
◆ WritableArray() [1/2]
Constructor.
- Parameters
-
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() [2/2]
Private constructor for array indexing.
- Parameters
-
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.
◆ asint()
Convert to an integer.
- Returns
- The
Array<0>
contents as an integer.
◆ operator Arrayelt()
Convert to a number.
- Returns
- The
Array<0>
contents as a number.
◆ operator=()
Assignment.
- Parameters
-
elt | The RHS of the assignment. |
- Returns
- This object.
Assign into the array.
◆ shape()
Return the array shape.
- Returns
- The array shape.
The array shape is vector with one element for each array dimension, giving the size of the array along that dimension. For Array<0>
, this will always be an empty array.
◆ size()
Return the size of the array along one dimension.
- Parameters
-
dim | The dimension of the size to retrieve. Must be less than the number of dimensions. |
- Returns
- The array size along dimension
dim
.
For Array<0>
, dim must be 0, and the function will always return 0.
◆ valid()
Test for validity.
- Returns
- True if the
Array
is associated with an Arrayrep
, false if not.
◆ write_array()
Creates a text representation of the array content.
- Parameters
-
std::ostream | where the text should be written |
Writes the content of the array to a ostream. The sub-arrays are enclosed by square brackets and separated by commas.
◆ WritableArray< 1 >
◆ m_elt
◆ m_elt_nc
Pointer to this array's single element, non-const copy.
Null if this instance was created using the default constructor.
Definition at line 760 of file Control/CxxUtils/CxxUtils/Array.h.
The documentation for this class was generated from the following file: