OpendTect  7.0
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 override
 
const Array2DInfoinfo () const override
 
bool isSettable () const override
 
void set (int, int, T) override
 
- Public Member Functions inherited from Array2D< T >
virtual T ** get2DData ()
 
virtual const T ** get2DData () const
 
getND (const int *pos) const override
 
void setND (const int *pos, T v) override
 
- 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)
 
std::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 override
 
- 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_ = nullptr
 
bool writable_
 
- Protected Attributes inherited from ArrayNDSliceBase
ArrayNDInfoinfo_
 
std::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
inlineoverridevirtual

Implements Array2D< T >.

◆ getStorage_()

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

Reimplemented from ArrayND< T >.

◆ info()

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

Implements Array2D< T >.

◆ isSettable()

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

Reimplemented from ArrayND< T >.

◆ set()

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

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_ = nullptr
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-2024