A one-dimensional array wrapper class. An Array always has its own copy of the data. Consequently, the data passed to its constructor can be safely destroyed. An Array provides a subscript operator which allows modification of the data.
More...
#include <Array.h>
|
std::size_t | nElements_ |
| The number of elements of this ImmutableArray.
|
|
const T * | data_ |
| The pointer to the elements of this ImmutableArray.
|
|
template<typename T, bool runtimeCheck = true>
class fesa::Array< T, runtimeCheck >
A one-dimensional array wrapper class. An Array always has its own copy of the data. Consequently, the data passed to its constructor can be safely destroyed. An Array provides a subscript operator which allows modification of the data.
- Template Parameters
-
T | The type of the elements |
runtimeCheck | To check or not to check index boundaries at runtime |
template<typename T , bool runtimeCheck>
Construct a new Array by copying the data from the memory pointed to by 'data'.
- Parameters
-
data | The pointer to the memory that contains the array's data |
nElements | The number of array's elements |
The documentation for this class was generated from the following file: