27 virtual ArrayNDInfo* clone()
const = 0;
30 virtual int getNDim()
const = 0;
31 virtual int getSize(
int dim)
const = 0;
32 virtual bool setSize(
int dim,
int sz);
34 virtual bool isOK()
const;
37 virtual od_uint64 getOffset(
const int*)
const;
39 virtual bool validPos(
const int*)
const;
41 bool validDimPos(
int dim,
int pos)
const;
56 if ( nd != a2.
getNDim() )
return false;
57 for (
int idx=0; idx<nd; idx++ )
63 {
return !(a1 == a2); }
83 {
return getOffset( *iarr ); }
101 virtual od_uint64 getOffset(
int,
int)
const;
103 virtual bool validPos(
int,
int)
const;
124 virtual od_uint64 getOffset(
int,
int,
int)
const;
126 virtual bool validPos(
int,
int,
int)
const;
150 virtual int getSize(
int dim)
const;
151 virtual bool setSize(
int dim,
int nsz);
152 virtual bool isOK()
const {
return dimsz_>=0; }
175 virtual int getSize(
int dim)
const;
176 virtual bool setSize(
int dim,
int nsz);
177 virtual bool isOK()
const {
return cachedtotalsz_ > 0; }
202 virtual int getSize(
int dim)
const;
203 virtual bool setSize(
int dim,
int nsz);
204 virtual bool isOK()
const {
return cachedtotalsz_ > 0; }
223 virtual ArrayNDInfo* clone()
const;
224 static ArrayNDInfo*
create(
int ndim);
230 virtual bool isOK()
const {
return cachedtotalsz_ > 0; }
233 virtual int getNDim()
const;
234 virtual int getSize(
int dim)
const;
235 virtual bool setSize(
int dim,
int nsz);
254 return dim>1 || dim<0 ? 0 :
dimsz_[dim];
260 return dim>2 || dim<0 ? 0 :
dimsz_[dim];
#define mExpClass(module)
Definition: commondefs.h:160
virtual int getNDim() const =0
uint64_t cachedtotalsz_
Definition: arrayndinfo.h:242
uint64_t cachedtotalsz_
Definition: arrayndinfo.h:210
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
virtual int getNDim() const
Definition: arrayndinfo.h:75
virtual bool validPos(const int *) const
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:118
virtual bool validPos(const int *iarr) const
Definition: arrayndinfo.h:130
Implementation of ArrayNDInfo.
Definition: arrayndinfo.h:219
uint64_t cachedtotalsz_
Definition: arrayndinfo.h:184
Contains the information about the size of ArrayND, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:23
Contains the information about the size of Array1D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:71
virtual int getSize(int dim) const
Definition: arrayndinfo.h:258
virtual int getNDim() const
Definition: arrayndinfo.h:99
RowCol getArrayPos(const EM::PosID &) const
virtual Array1DInfo * clone() const
Definition: arrayndinfo.h:144
virtual uint64_t getTotalSz() const
Definition: arrayndinfo.h:232
virtual int getSize(int dim) const =0
int ndim_
Definition: arrayndinfo.h:239
Implementation of Array3DInfo.
Definition: arrayndinfo.h:193
virtual bool isOK() const
Definition: arrayndinfo.h:177
virtual bool validPos(int pos) const
Definition: arrayndinfo.h:79
virtual bool validPos(const int *iarr) const
Definition: arrayndinfo.h:107
virtual uint64_t getOffset(int pos) const
Definition: arrayndinfo.h:77
Contains the information about the size of Array2D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:95
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
virtual bool isOK() const
Definition: arrayndinfo.h:204
virtual uint64_t getOffset(const int *) const
virtual int getSize(int dim) const
Definition: arrayndinfo.h:246
virtual bool isOK() const
Definition: arrayndinfo.h:230
#define od_uint64
Definition: plftypes.h:37
virtual uint64_t getTotalSz() const
Definition: arrayndinfo.h:179
virtual Array3DInfo * clone() const
Definition: arrayndinfo.h:197
virtual uint64_t getTotalSz() const
Definition: arrayndinfo.h:205
int dimsz_
Definition: arrayndinfo.h:157
static uiHor3DInterpol * create(uiParent *)
Implementation of Array1DInfo.
Definition: arrayndinfo.h:140
virtual bool isOK() const
Definition: arrayndinfo.h:152
virtual Array2DInfo * clone() const
Definition: arrayndinfo.h:170
Implementation of Array2DInfo.
Definition: arrayndinfo.h:166
int * dimsz_
Definition: arrayndinfo.h:240
virtual uint64_t getTotalSz() const
Definition: arrayndinfo.h:153
virtual uint64_t getOffset(const int *iarr) const
Definition: arrayndinfo.h:82
virtual int getSize(int dim) const
Definition: arrayndinfo.h:252
virtual uint64_t getOffset(const int *iarr) const
Definition: arrayndinfo.h:105
virtual bool validPos(const int *iarr) const
Definition: arrayndinfo.h:84
virtual ~ArrayNDInfo()
Definition: arrayndinfo.h:28
virtual uint64_t getOffset(const int *iarr) const
Definition: arrayndinfo.h:128
virtual int getNDim() const
Definition: arrayndinfo.h:122