seal::MultiDimArray< DataType, dimension > Class Template Reference

#include <multiarray.h>

List of all members.

Public Member Functions

 MultiDimArray (const Coordinate< dimension > &s)
 MultiDimArray (const MultiDimArray< DataType, dimension > &a)
virtual ~MultiDimArray ()
Coordinate< dimension > size (void)


Detailed Description

template<typename DataType, unsigned int dimension>
class seal::MultiDimArray< DataType, dimension >

This encapsulates a multidimensional array. An examples of instantiating and using a multidimensional array is as follows.

 // 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;

Constructor & Destructor Documentation

template<typename DataType, unsigned int dimension>
seal::MultiDimArray< DataType, dimension >::MultiDimArray ( const Coordinate< dimension > &  s  )  [inline]

Constructor. It initializes the specified number array elements.

Parameters:
s The seal::Coordinate object which contains the size of each dimension of the multidimensional array.

template<typename DataType, unsigned int dimension>
seal::MultiDimArray< DataType, dimension >::MultiDimArray ( const MultiDimArray< DataType, dimension > &  a  )  [inline]

Copy constructor.

template<typename DataType, unsigned int dimension>
virtual seal::MultiDimArray< DataType, dimension >::~MultiDimArray (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<typename DataType, unsigned int dimension>
Coordinate<dimension> seal::MultiDimArray< DataType, dimension >::size ( void   )  [inline]

Returns the size of the array.


The documentation for this class was generated from the following file:

Generated on Sat May 16 21:35:20 2009 for SEAL by  doxygen 1.5.5