23 { dimmap_[srcdim] = targetdim; }
25 virtual void init() = 0;
26 virtual bool isOK()
const = 0;
30 { dimmap_.setSize( info.
getNDim(), 0 ); }
51 void set(int,int,int,T);
52 T
get(int,int,int)
const;
87 {
return srcarr_.info().getNDim() < 3; }
93 int pos3d[] = { i0, i1, i2 };
105 int pos3d[] = { i0, i1, i2 };
108 posnd += pos3d[
dimmap_[idx] ];
virtual int getNDim() const =0
void init()
Definition: arrayndwrapper.h:78
ArrayND< T > & srcarr_
Definition: arrayndwrapper.h:59
T get(int, int, int) const
Definition: arrayndwrapper.h:103
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:116
virtual bool setSize(int dim, int sz)
Contains the information about the size of ArrayND, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:21
TypeSet< int > dimmap_
Definition: arrayndwrapper.h:32
~Array3DWrapper()
Definition: arrayndwrapper.h:73
virtual T * arr()
3rd party access
Definition: typeset.h:86
Implementation of Array3DInfo.
Definition: arrayndinfo.h:191
void setDimMap(int srcdim, int targetdim)
Definition: arrayndwrapper.h:22
Access tool to another array with a lower number of dimensions.
Definition: arrayndwrapper.h:19
bool isOK() const
Definition: arrayndwrapper.h:86
void set(int, int, int, T)
Definition: arrayndwrapper.h:91
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:29
Subclass of ArrayNDWrapper.
Definition: arrayndwrapper.h:42
size_type size() const
Definition: typeset.h:263
Array3DWrapper(ArrayND< T > &)
Definition: arrayndwrapper.h:65
#define mClass(module)
Definition: commondefs.h:161
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:149
const Array3DInfo & info() const
Definition: arrayndwrapper.h:54
Array3DInfo & info_
Definition: arrayndwrapper.h:58
ArrayNDWrapper(const ArrayNDInfo &info)
Definition: arrayndwrapper.h:29