OpendTect  6.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Array2DSlice< T > Class Template Reference

Subclass of Array2D and ArrayNDSliceBase. More...

Inheritance diagram for Array2DSlice< T >:
[legend]

Public Member Functions

 Array2DSlice (ArrayND< T > &)
 
 Array2DSlice (const ArrayND< T > &)
 
 ~Array2DSlice ()
 
get (int, int) const
 
const Array2DInfoinfo () const
 
bool isSettable () const
 
void set (int, int, T)
 
- Public Member Functions inherited from Array2D< T >
virtual T ** get2DData ()
 
virtual const T ** get2DData () const
 
getND (const int *pos) const
 
void setND (const int *pos, T v)
 
- Public Member Functions inherited from ArrayND< T >
virtual ~ArrayND ()
 
virtual bool canChangeNrDims () const
 
virtual bool canSetInfo () const
 
virtual bool canSetStorage () const
 
virtual T * get1D (const int *)
 
virtual const T * get1D (const int *) const
 
virtual int get1DDim () const
 
virtual void getAll (T *ptr) const
 
virtual void getAll (ValueSeries< T > &vs) const
 
T * getData ()
 
const T * getData () const
 
int getSize (int dim) const
 
ValueSeries< T > * getStorage ()
 
const ValueSeries< T > * getStorage () const
 
virtual bool isEmpty () const
 
virtual bool isOK () const
 
int nrDims () const
 
virtual void setAll (T)
 
virtual bool setInfo (const ArrayNDInfo &)
 
virtual bool setStorage (ValueSeries< T > *s)
 
uint64_t totalSize () const
 
bool validPos (int *pos) const
 
- Public Member Functions inherited from ArrayNDSliceBase
virtual ~ArrayNDSliceBase ()
 
int getDimSize (int dim) const
 
int getPos (int dim) const
 
bool init ()
 
void setDimMap (int localdim, int remotedim)
 
bool setPos (int dim, int pos)
 

Protected Member Functions

const ValueSeries< T > * getStorage_ () const
 
- Protected Member Functions inherited from ArrayND< T >
virtual const T * getData_ () const
 
- Protected Member Functions inherited from ArrayNDSliceBase
 ArrayNDSliceBase (ArrayNDInfo *, const ArrayNDInfo &)
 
void getSourcePos (const int *localpos, int *sourcepos) const
 

Protected Attributes

ArrayND< T > & source_
 
OffsetValueSeries< T > * storage_
 
bool writable_
 
- Protected Attributes inherited from ArrayNDSliceBase
ArrayNDInfoinfo_
 
int64_t offset_
 
TypeSet< int > position_
 
const ArrayNDInfosourceinfo_
 
TypeSet< int > vardim_
 

Detailed Description

template<class T>
class Array2DSlice< T >

Subclass of Array2D and ArrayNDSliceBase.

<>

Constructor & Destructor Documentation

◆ Array2DSlice() [1/2]

template<class T >
Array2DSlice< T >::Array2DSlice ( ArrayND< T > &  source)
inline

◆ Array2DSlice() [2/2]

template<class T >
Array2DSlice< T >::Array2DSlice ( const ArrayND< T > &  source)
inline

◆ ~Array2DSlice()

template<class T >
Array2DSlice< T >::~Array2DSlice
inline

Member Function Documentation

◆ get()

template<class T >
T Array2DSlice< T >::get ( int  pos0,
int  pos1 
) const
inlinevirtual

Implements Array2D< T >.

◆ getStorage_()

template<class T >
const ValueSeries< T > * Array2DSlice< T >::getStorage_
inlineprotectedvirtual

Reimplemented from ArrayND< T >.

◆ info()

template<class T >
const Array2DInfo & Array2DSlice< T >::info
inlinevirtual

Implements Array2D< T >.

◆ isSettable()

template<class T >
bool Array2DSlice< T >::isSettable
inlinevirtual

Reimplemented from ArrayND< T >.

◆ set()

template<class T >
void Array2DSlice< T >::set ( int  pos0,
int  pos1,
val 
)
inlinevirtual

Implements Array2D< T >.

Member Data Documentation

◆ source_

template<class T >
ArrayND<T>& Array2DSlice< T >::source_
protected

◆ storage_

template<class T >
OffsetValueSeries<T>* Array2DSlice< T >::storage_
mutableprotected

◆ writable_

template<class T >
bool Array2DSlice< T >::writable_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022