#include <multiarray.h>
Public Member Functions | |
MultiDimArray (const Coordinate< dimension > &s) | |
MultiDimArray (const MultiDimArray< DataType, dimension > &a) | |
virtual | ~MultiDimArray () |
Coordinate< dimension > | size (void) |
// Instantiating a Coordinate object will contain the size of the dimensions // of the multidimensional array. seal::Coordinate<5> c; c[0] = 1; c[1] = 2; c[2] = 3; c[3] = 4; c[4] = 5; // Instantiating a 5 dimensional array of integers with size 1x2x3x4x5. seal::MultiDimArray<int, 5> array(c); // Initializing an array element. array[0][1][1][2][2] = 100;
seal::MultiDimArray< DataType, dimension >::MultiDimArray | ( | const Coordinate< dimension > & | s | ) | [inline] |
Constructor. It initializes the specified number array elements.
s | The seal::Coordinate object which contains the size of each dimension of the multidimensional array. |
seal::MultiDimArray< DataType, dimension >::MultiDimArray | ( | const MultiDimArray< DataType, dimension > & | a | ) | [inline] |
Copy constructor.
virtual seal::MultiDimArray< DataType, dimension >::~MultiDimArray | ( | ) | [inline, virtual] |
Destructor.
Coordinate<dimension> seal::MultiDimArray< DataType, dimension >::size | ( | void | ) | [inline] |
Returns the size of the array.