1 #ifndef arrayndwrapper_h 2 #define arrayndwrapper_h 25 { dimmap_[srcdim] = targetdim; }
27 virtual void init() = 0;
28 virtual bool isOK()
const = 0;
32 { dimmap_.setSize( info.
getNDim(), 0 ); }
53 void set(int,int,int,T);
54 T
get(int,int,int)
const;
89 {
return srcarr_.info().getNDim() < 3; }
95 int pos3d[] = { i0, i1, i2 };
107 int pos3d[] = { i0, i1, i2 };
110 posnd += pos3d[
dimmap_[idx] ];
virtual int getNDim() const =0
void init()
Definition: arrayndwrapper.h:80
ArrayND< T > & srcarr_
Definition: arrayndwrapper.h:61
T get(int, int, int) const
Definition: arrayndwrapper.h:105
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:118
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:23
TypeSet< int > dimmap_
Definition: arrayndwrapper.h:34
~Array3DWrapper()
Definition: arrayndwrapper.h:75
virtual T * arr()
3rd party access
Definition: typeset.h:92
Implementation of Array3DInfo.
Definition: arrayndinfo.h:193
void setDimMap(int srcdim, int targetdim)
Definition: arrayndwrapper.h:24
Access tool to another array with a lower number of dimensions.
Definition: arrayndwrapper.h:21
bool isOK() const
Definition: arrayndwrapper.h:88
void set(int, int, int, T)
Definition: arrayndwrapper.h:93
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:33
Subclass of ArrayNDWrapper.
Definition: arrayndwrapper.h:44
size_type size() const
Definition: typeset.h:254
Array3DWrapper(ArrayND< T > &)
Definition: arrayndwrapper.h:67
#define mClass(module)
Definition: commondefs.h:164
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:153
const Array3DInfo & info() const
Definition: arrayndwrapper.h:56
Array3DInfo & info_
Definition: arrayndwrapper.h:60
ArrayNDWrapper(const ArrayNDInfo &info)
Definition: arrayndwrapper.h:31