OpendTect  7.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | List of all members
Array3DImpl< T > Class Template Reference

Implementation of Array3D. More...

Inheritance diagram for Array3DImpl< T >:
[legend]

Public Member Functions

 Array3DImpl (const Array3D< T > &)
 
 Array3DImpl (const Array3DImpl< T > &)
 
 Array3DImpl (const Array3DInfo &)
 
 Array3DImpl (int sz0, int sz1, int sz2)
 
 ~Array3DImpl ()
 
bool canSetInfo () const override
 
bool canSetStorage () const override
 
void copyFrom (const Array3D< T > &)
 
get (int, int, int) const override
 
const T *** get3DData () const override
 
T *** get3DData () override
 
const Array3DInfoinfo () const override
 
bool isOK () const override
 
Array3DImpl< T > & operator= (const Array3D< T > &ai)
 
Array3DImpl< T > & operator= (const Array3DImpl< T > &ai)
 
void set (int, int, int, T) override
 
bool setInfo (const ArrayNDInfo &) override
 
bool setSize (int, int, int)
 
bool setStorage (ValueSeries< T > *) override
 
- Public Member Functions inherited from Array3D< T >
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 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 isSettable () const
 
int nrDims () const
 
virtual void setAll (T)
 
std::uint64_t totalSize () const
 
bool validPos (int *pos) const
 

Protected Member Functions

void eraseCache ()
 
const T * getData_ () const override
 
const ValueSeries< T > * getStorage_ () const override
 
std::int64_t getStorageSize () const override
 
void updateCachePointers ()
 
void updateStorage ()
 
- Protected Member Functions inherited from ArrayImplBase< T >
 ArrayImplBase ()
 
 ~ArrayImplBase ()
 
bool getDataFrom (const ArrayND< T > &templ)
 
bool setStorageInternal (ValueSeries< T > *)
 
bool setStorageNoResize (ValueSeries< T > *)
 
bool storageOK () const
 
bool updateStorageSize ()
 

Protected Attributes

TypeSet< T ** > cachestor_
 
Array3DInfoImpl in_
 
T *** ptr3d_ = nullptr
 
- Protected Attributes inherited from ArrayImplBase< T >
T * ptr_ = nullptr
 
ValueSeries< T > * stor_ = nullptr
 

Private Types

typedef ArrayImplBase< T > base
 

Detailed Description

template<class T>
class Array3DImpl< T >

Implementation of Array3D.

<>

Member Typedef Documentation

◆ base

template<class T >
typedef ArrayImplBase<T> Array3DImpl< T >::base
private

Constructor & Destructor Documentation

◆ Array3DImpl() [1/4]

template<class T >
Array3DImpl< T >::Array3DImpl ( int  sz0,
int  sz1,
int  sz2 
)
inline

◆ Array3DImpl() [2/4]

template<class T >
Array3DImpl< T >::Array3DImpl ( const Array3DInfo nsz)
inline

◆ Array3DImpl() [3/4]

template<class T >
Array3DImpl< T >::Array3DImpl ( const Array3D< T > &  templ)
inline

◆ Array3DImpl() [4/4]

template<class T >
Array3DImpl< T >::Array3DImpl ( const Array3DImpl< T > &  templ)
inline

◆ ~Array3DImpl()

template<class T >
Array3DImpl< T >::~Array3DImpl ( )
inline

Member Function Documentation

◆ canSetInfo()

template<class T >
bool Array3DImpl< T >::canSetInfo ( ) const
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ canSetStorage()

template<class T >
bool Array3DImpl< T >::canSetStorage ( ) const
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ copyFrom()

template<class T >
void Array3DImpl< T >::copyFrom ( const Array3D< T > &  templ)
inline

◆ eraseCache()

template<class T >
void Array3DImpl< T >::eraseCache
inlineprotected

◆ get()

template<class T >
T Array3DImpl< T >::get ( int  p0,
int  p1,
int  p2 
) const
inlineoverridevirtual

Implements Array3D< T >.

◆ get3DData() [1/2]

template<class T >
const T*** Array3DImpl< T >::get3DData ( ) const
inlineoverridevirtual

Reimplemented from Array3D< T >.

◆ get3DData() [2/2]

template<class T >
T*** Array3DImpl< T >::get3DData ( )
inlineoverridevirtual

Reimplemented from Array3D< T >.

◆ getData_()

template<class T >
const T* Array3DImpl< T >::getData_ ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ArrayND< T >.

◆ getStorage_()

template<class T >
const ValueSeries<T>* Array3DImpl< T >::getStorage_ ( ) const
inlineoverrideprotectedvirtual

Reimplemented from ArrayND< T >.

◆ getStorageSize()

template<class T >
std::int64_t Array3DImpl< T >::getStorageSize ( ) const
inlineoverrideprotectedvirtual

Implements ArrayImplBase< T >.

◆ info()

template<class T >
const Array3DInfo& Array3DImpl< T >::info ( ) const
inlineoverridevirtual

Implements Array3D< T >.

◆ isOK()

template<class T >
bool Array3DImpl< T >::isOK ( ) const
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ operator=() [1/2]

template<class T >
Array3DImpl<T>& Array3DImpl< T >::operator= ( const Array3D< T > &  ai)
inline

◆ operator=() [2/2]

template<class T >
Array3DImpl<T>& Array3DImpl< T >::operator= ( const Array3DImpl< T > &  ai)
inline

◆ set()

template<class T >
void Array3DImpl< T >::set ( int  p0,
int  p1,
int  p2,
v 
)
inlineoverridevirtual

Implements Array3D< T >.

◆ setInfo()

template<class T >
bool Array3DImpl< T >::setInfo ( const ArrayNDInfo ni)
inlineoverridevirtual

Reimplemented from ArrayND< T >.

◆ setSize()

template<class T >
bool Array3DImpl< T >::setSize ( int  d0,
int  d1,
int  d2 
)
inline

◆ setStorage()

template<class T >
bool Array3DImpl< T >::setStorage ( ValueSeries< T > *  s)
inlineoverridevirtual

becomes mine. The size must be settable, or I return false.

Reimplemented from ArrayND< T >.

◆ updateCachePointers()

template<class T >
void Array3DImpl< T >::updateCachePointers
inlineprotected

◆ updateStorage()

template<class T >
void Array3DImpl< T >::updateStorage
inlineprotected

Member Data Documentation

◆ cachestor_

template<class T >
TypeSet<T**> Array3DImpl< T >::cachestor_
protected

◆ in_

template<class T >
Array3DInfoImpl Array3DImpl< T >::in_
protected

◆ ptr3d_

template<class T >
T*** Array3DImpl< T >::ptr3d_ = nullptr
protected

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