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

Implementation of Array2D. More...

Inheritance diagram for Array2DImpl< T >:
[legend]

Public Member Functions

 Array2DImpl (const Array2D< T > &)
 
 Array2DImpl (const Array2DImpl< T > &)
 
 Array2DImpl (const Array2DInfo &)
 
 Array2DImpl (int sz0, int sz1)
 
 ~Array2DImpl ()
 
bool canSetInfo () const
 
bool canSetStorage () const
 
void copyFrom (const Array2D< T > &)
 
get (int, int) const
 
T ** get2DData ()
 
const T ** get2DData () const
 
const Array2DInfoinfo () const
 
bool isOK () const
 
Array2DImpl< T > & operator= (const Array2D< T > &ai)
 
Array2DImpl< T > & operator= (const Array2DImpl< T > &ai)
 
void set (int, int, T)
 
bool setInfo (const ArrayNDInfo &)
 
bool setSize (int, int)
 
bool setStorage (ValueSeries< T > *vs)
 
- Public Member Functions inherited from Array2D< T >
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 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)
 
uint64_t totalSize () const
 
bool validPos (int *pos) const
 

Protected Member Functions

const T * getData_ () const
 
const ValueSeries< T > * getStorage_ () const
 
int64_t getStorageSize () const
 
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

Array2DInfoImpl in_
 
T ** ptr2d_
 
- Protected Attributes inherited from ArrayImplBase< T >
T * ptr_
 
ValueSeries< T > * stor_
 

Private Types

typedef ArrayImplBase< T > base
 

Detailed Description

template<class T>
class Array2DImpl< T >

Implementation of Array2D.

<>

Member Typedef Documentation

◆ base

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

Constructor & Destructor Documentation

◆ Array2DImpl() [1/4]

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

◆ Array2DImpl() [2/4]

template<class T >
Array2DImpl< T >::Array2DImpl ( const Array2DInfo nsz)
inline

◆ Array2DImpl() [3/4]

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

◆ Array2DImpl() [4/4]

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

◆ ~Array2DImpl()

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

Member Function Documentation

◆ canSetInfo()

template<class T >
bool Array2DImpl< T >::canSetInfo ( ) const
inlinevirtual

Reimplemented from ArrayND< T >.

◆ canSetStorage()

template<class T >
bool Array2DImpl< T >::canSetStorage ( ) const
inlinevirtual

Reimplemented from ArrayND< T >.

◆ copyFrom()

template<class T >
void Array2DImpl< T >::copyFrom ( const Array2D< T > &  templ)
inline

◆ get()

template<class T >
T Array2DImpl< T >::get ( int  p0,
int  p1 
) const
inlinevirtual

Implements Array2D< T >.

◆ get2DData() [1/2]

template<class T >
T** Array2DImpl< T >::get2DData ( )
inlinevirtual

Reimplemented from Array2D< T >.

◆ get2DData() [2/2]

template<class T >
const T** Array2DImpl< T >::get2DData ( ) const
inlinevirtual

Reimplemented from Array2D< T >.

◆ getData_()

template<class T >
const T* Array2DImpl< T >::getData_ ( ) const
inlineprotectedvirtual

Reimplemented from ArrayND< T >.

◆ getStorage_()

template<class T >
const ValueSeries<T>* Array2DImpl< T >::getStorage_ ( ) const
inlineprotectedvirtual

Reimplemented from ArrayND< T >.

◆ getStorageSize()

template<class T >
int64_t Array2DImpl< T >::getStorageSize ( ) const
inlineprotectedvirtual

Implements ArrayImplBase< T >.

◆ info()

template<class T >
const Array2DInfo& Array2DImpl< T >::info ( ) const
inlinevirtual

Implements Array2D< T >.

◆ isOK()

template<class T >
bool Array2DImpl< T >::isOK ( ) const
inlinevirtual

Reimplemented from ArrayND< T >.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ set()

template<class T >
void Array2DImpl< T >::set ( int  p0,
int  p1,
v 
)
inlinevirtual

Implements Array2D< T >.

◆ setInfo()

template<class T >
bool Array2DImpl< T >::setInfo ( const ArrayNDInfo ni)
inlinevirtual

Reimplemented from ArrayND< T >.

◆ setSize()

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

◆ setStorage()

template<class T >
bool Array2DImpl< T >::setStorage ( ValueSeries< T > *  s)
inlinevirtual

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

Reimplemented from ArrayND< T >.

◆ updateCachePointers()

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

◆ updateStorage()

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

Member Data Documentation

◆ in_

template<class T >
Array2DInfoImpl Array2DImpl< T >::in_
protected

◆ ptr2d_

template<class T >
T** Array2DImpl< T >::ptr2d_
protected

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