|
| ArraySimpleFixed () |
| default constructor, does nothing
|
|
| ArraySimpleFixed (const ArraySimpleFixed< T, d1, d2, d3, d4, d5 > &a) |
| copy constructor, copies contents of source into sink
|
|
| ~ArraySimpleFixed () |
| destructor
|
|
int | size () const |
| get the total size of the array
|
|
int | size (const int &i) const |
| get the size of the array along one dimension
|
|
int | rank () const |
| get the rank of the array
|
|
T * | ptr () |
| return a pointer to the data
|
|
ArraySimpleFixed< T, d1, d2,
d3, d4, d5 > & | operator= (const ArraySimpleFixed< T, d1, d2, d3, d4, d5 > &a) |
| assignment operator, copy data from source array into the current instance
|
|
ArraySimpleFixed< T, d1, d2,
d3, d4, d5 > & | operator= (const T &a) |
|
T & | operator[] (const int &i) |
| one dimensional index operator
|
|
const T & | operator[] (const int &i) const |
| const one dimensional index operator
|
|
T & | operator() (const int &i1, const int &i2=0, const int &i3=0, const int &i4=0, const int &i5=0) |
| multidimensional index operator
|
|
const T & | operator() (const int &i1, const int &i2=0, const int &i3=0, const int &i4=0, const int &i5=0) const |
| const multidimensional index operator
|
|
template<class T, int d1, int d2 = 1, int d3 = 1, int d4 = 1, int d5 = 1>
class ArraySimpleFixed< T, d1, d2, d3, d4, d5 >
simple fixed size arrays of up to rank 4
Provides an efficient wrapper for statically declared arrays (eg a[2][3].) The class also provides column major ordering and access to the data pointer. It should support ranks up to MAXRANK.
template<class T, int d1, int d2 = 1, int d3 = 1, int d4 = 1, int d5 = 1>
one dimensional index operator
index into the array in a one dimensional manner, ignoring the dimensions of the array
- Parameters
-
- Returns
- a reference to data item i
template<class T, int d1, int d2 = 1, int d3 = 1, int d4 = 1, int d5 = 1>
const T& ArraySimpleFixed< T, d1, d2, d3, d4, d5 >::operator[] |
( |
const int & |
i | ) |
const |
|
inline |
const one dimensional index operator
index into the array in a one dimensional manner, ignoring the dimensions of the array
- Parameters
-
- Returns
- a const reference to data item i