 |
OpendTect
6.6
|
Go to the documentation of this file.
44 int* sourcepos)
const;
71 bool isSettable()
const;
95 void set(
int,
int, T );
97 bool isSettable()
const;
125 bool isSettable()
const;
140 template <
class T>
inline
149 template <
class T>
inline
152 , source_( const_cast<
ArrayND<T>& >(source) )
158 template <
class T>
inline
163 template <
class T>
inline
165 {
return writable_ && source_.isSettable(); }
168 template <
class T>
inline
171 if ( !writable_ )
return;
173 getSourcePos( &pos, srcpos );
174 source_.setND( srcpos, val );
178 template <
class T>
inline
182 getSourcePos( &pos, srcpos );
183 return source_.getND( srcpos );
187 template <
class T>
inline
199 template <
class T>
inline
204 template <
class T>
inline
210 if ( !source_.getStorage() )
217 return source_.getStorage();
220 if ( !storage_ || &storage_->source() != source_.getStorage() )
227 storage_->setOffset( offset_ );
233 template <
class T>
inline
242 template <
class T>
inline
245 , source_( const_cast<
ArrayND<T>&>(source) )
251 template <
class T>
inline
256 template <
class T>
inline
258 {
return writable_ && source_.isSettable(); }
261 template <
class T>
inline
264 if ( !writable_ )
return;
266 const int localpos[] = { pos0, pos1 };
268 getSourcePos( localpos, srcpos );
269 source_.setND( srcpos, val );
273 template <
class T>
inline
276 const int localpos[] = { pos0, pos1 };
278 getSourcePos( localpos, srcpos );
279 return source_.getND( srcpos );
283 template <
class T>
inline
288 template <
class T>
inline
294 if ( !source_.getStorage() )
301 return source_.getStorage();
304 if ( !storage_ || &storage_->source() != source_.getStorage() )
311 storage_->setOffset( offset_ );
318 template <
class T>
inline
328 template <
class T>
inline
331 , source_( const_cast<
ArrayND<T>&>(source) )
338 template <
class T>
inline
343 template <
class T>
inline
345 {
return writable_ && source_.isSettable(); }
348 template <
class T>
inline
351 if ( !writable_ )
return;
353 const idx_type localpos[] = { pos0, pos1, pos2 };
355 getSourcePos(
const_cast<NDPos>(localpos), srcpos );
356 source_.setND( srcpos, val );
360 template <
class T>
inline
363 const idx_type localpos[] = { pos0, pos1, pos2 };
365 getSourcePos(
const_cast<NDPos>(localpos), srcpos );
366 return source_.getND( srcpos );
370 template <
class T>
inline
377 template <
class T>
inline
383 if ( !source_.getStorage() )
390 return source_.getStorage();
393 if ( !storage_ || &storage_->source() != source_.getStorage() )
399 storage_->setOffset( offset_ );
Interface to a series of values.
Definition: odmemory.h:16
void set(int, T)
Definition: arrayndslice.h:169
Contains the information about the size of Array2D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:124
ArrayNDSliceBase(ArrayNDInfo *, const ArrayNDInfo &)
void set(idx_type, idx_type, idx_type, T)
Definition: arrayndslice.h:349
Contains the information about the size of ArrayND, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:25
Array3DSlice(ArrayND< T > &)
Definition: arrayndslice.h:319
OffsetValueSeries< T > * storage_
Definition: arrayndslice.h:78
bool isSettable() const
Definition: arrayndslice.h:164
Array2DSlice(ArrayND< T > &)
Definition: arrayndslice.h:234
void getSourcePos(const int *localpos, int *sourcepos) const
#define od_int64
Definition: plftypes.h:35
ArrayND< T > & source_
Definition: arrayndslice.h:132
int getPos(int dim) const
#define mExpClass(module)
Definition: commondefs.h:177
const ValueSeries< T > * getStorage_() const
Definition: arrayndslice.h:289
virtual ~ArrayNDSliceBase()
TypeSet< int > position_
Definition: arrayndslice.h:49
ArrayNDInfo & info_
Definition: arrayndslice.h:45
ArrayND< T > & source_
Definition: arrayndslice.h:77
Array1D ( Subclass of ArrayND ) is a one dimensional array.
Definition: arraynd.h:111
T get(int) const
Definition: arrayndslice.h:179
T get(idx_type, idx_type, idx_type) const
Definition: arrayndslice.h:361
int getDimSize(int dim) const
Subclass of Array1D and ArrayNDSliceBase.
Definition: arrayndslice.h:60
void set(int, int, T)
Definition: arrayndslice.h:262
ValueSeries of offsets.
Definition: valseries.h:70
bool writable_
Definition: arrayndslice.h:101
Array3D ( Subclass of ArrayND ) is a three dimensional array.
Definition: arraynd.h:162
bool isSettable() const
Definition: arrayndslice.h:344
ArrayNDInfo ::idx_type idx_type
Definition: arrayndslice.h:116
const Array1DInfo & info() const
Definition: arrayndslice.h:200
OffsetValueSeries< T > * storage_
Definition: arrayndslice.h:133
TypeSet< int > vardim_
Definition: arrayndslice.h:48
#define mClass(module)
Definition: commondefs.h:181
Contains the information about the size of Array1D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:100
~Array2DSlice()
Definition: arrayndslice.h:252
bool writable_
Definition: arrayndslice.h:76
#define mTypeDefArrNDTypes
Definition: arrayndinfo.h:65
Subclass of Array2D and ArrayNDSliceBase.
Definition: arrayndslice.h:88
ValueSeries< T > * clone() const
Definition: arrayndslice.h:188
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
Contains the information about the size of Array3D, and in what order the data is stored (if accessab...
Definition: arrayndinfo.h:147
Base class of Array1DSlice and Array2DSlice. Access-tool to another ArrayND with higher dimensionalit...
Definition: arrayndslice.h:32
T get(int, int) const
Definition: arrayndslice.h:274
Implementation of Array3DInfo.
Definition: arrayndinfo.h:239
Implementation of Array2DInfo.
Definition: arrayndinfo.h:212
int64_t offset_
Definition: arrayndslice.h:50
const ValueSeries< T > * getStorage_() const
Definition: arrayndslice.h:378
#define mAllocVarLenArr(type, varnm, __size)
Definition: varlenarray.h:53
An ArrayND is an array with a given number of dimensions and a size.
Definition: arraynd.h:33
Implementation of Array1DInfo.
Definition: arrayndinfo.h:186
Subclass of Array3D and ArrayNDSliceBase.
Definition: arrayndslice.h:114
~Array3DSlice()
Definition: arrayndslice.h:339
ArrayNDInfo ::NDPos NDPos
Definition: arrayndslice.h:116
Array1DSlice(ArrayND< T > &)
Definition: arrayndslice.h:141
bool setPos(int dim, int pos)
ArrayND< T > & source_
Definition: arrayndslice.h:103
const Array2DInfo & info() const
Definition: arrayndslice.h:284
const ArrayNDInfo & sourceinfo_
Definition: arrayndslice.h:46
~Array1DSlice()
Definition: arrayndslice.h:159
const ValueSeries< T > * getStorage_() const
Definition: arrayndslice.h:205
bool isSettable() const
Definition: arrayndslice.h:257
void setDimMap(int localdim, int remotedim)
OffsetValueSeries< T > * storage_
Definition: arrayndslice.h:104
const Array3DInfo & info() const
Definition: arrayndslice.h:371
Array2D ( Subclass of ArrayND ) is a two dimensional array.
Definition: arraynd.h:140
bool writable_
Definition: arrayndslice.h:130
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021