OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | List of all members
ArrayND< T > Class Template Referenceabstract

An ArrayND is an array with a given number of dimensions and a size. More...

Inheritance diagram for ArrayND< T >:
[legend]

Public Member Functions

virtual ~ArrayND ()
 
virtual bool isOK () const
 
virtual bool isEmpty () const
 
virtual T getND (const int *) const =0
 
virtual bool isSettable () const
 
virtual void setND (const int *, T)=0
 
const ValueSeries< T > * getStorage () const
 
ValueSeries< T > * getStorage ()
 
virtual bool canSetStorage () const
 
virtual bool setStorage (ValueSeries< T > *s)
 
const T * getData () const
 
T * getData ()
 
virtual const T * get1D (const int *) const
 
virtual T * get1D (const int *)
 
virtual int get1DDim () const
 
virtual const ArrayNDInfoinfo () const =0
 
virtual bool canSetInfo () const
 
virtual bool canChangeNrDims () const
 
virtual bool setInfo (const ArrayNDInfo &)
 
virtual void setAll (T)
 
virtual void getAll (T *ptr) const
 
virtual void getAll (ValueSeries< T > &vs) const
 

Protected Member Functions

virtual const ValueSeries< T > * getStorage_ () const
 
virtual const T * getData_ () const
 

Detailed Description

template<class T>
class ArrayND< T >

An ArrayND is an array with a given number of dimensions and a size.

The ArrayND can be accessed via set() and get().

The ArrayND can give away a pointer to its storage, but there is no guarantee that it will. If no pointer is given, the user can copy the ArrayND by constructing an ArrayNDImpl with the original array as an argument to the constructor.

Constructor & Destructor Documentation

template<class T>
virtual ArrayND< T >::~ArrayND ( )
inlinevirtual

Member Function Documentation

template<class T>
virtual bool ArrayND< T >::canChangeNrDims ( ) const
inlinevirtual

Reimplemented in ArrayNDImpl< T >, and ArrayNDImpl< float >.

template<class T>
virtual bool ArrayND< T >::canSetInfo ( ) const
inlinevirtual
template<class T>
virtual bool ArrayND< T >::canSetStorage ( ) const
inlinevirtual
template<class T >
const T * ArrayND< T >::get1D ( const int *  i) const
inlinevirtual
template<class T >
T * ArrayND< T >::get1D ( const int *  i)
inlinevirtual
template<class T >
int ArrayND< T >::get1DDim ( ) const
inlinevirtual
template<class T>
void ArrayND< T >::getAll ( T *  ptr) const
inlinevirtual

Fills ptr with values from array. ptr is assumed to be allocated with info().getTotalSz() number of values.

Reimplemented in Attrib::DataHolderArray.

template<class T>
void ArrayND< T >::getAll ( ValueSeries< T > &  vs) const
inlinevirtual

Fills vs with values from array. ptr is assumed to be allocated with info().getTotalSz() number of values.

Reimplemented in Attrib::DataHolderArray.

template<class T>
const T* ArrayND< T >::getData ( ) const
inline
template<class T >
T * ArrayND< T >::getData ( )
inline
template<class T>
virtual const T* ArrayND< T >::getData_ ( ) const
inlineprotectedvirtual
template<class T>
virtual T ArrayND< T >::getND ( const int *  ) const
pure virtual
template<class T>
const ValueSeries<T>* ArrayND< T >::getStorage ( ) const
inline
template<class T >
ValueSeries< T > * ArrayND< T >::getStorage ( )
inline
template<class T>
virtual const ValueSeries<T>* ArrayND< T >::getStorage_ ( ) const
inlineprotectedvirtual
template<class T>
virtual const ArrayNDInfo& ArrayND< T >::info ( ) const
pure virtual
template<class T >
bool ArrayND< T >::isEmpty ( ) const
inlinevirtual
template<class T >
bool ArrayND< T >::isOK ( ) const
inlinevirtual
template<class T>
virtual bool ArrayND< T >::isSettable ( ) const
inlinevirtual

Reimplemented in Array2DSlice< T >, and Array1DSlice< T >.

template<class T>
void ArrayND< T >::setAll ( val)
inlinevirtual

Reimplemented in Array1D< T >, and Array1D< float >.

template<class T>
virtual bool ArrayND< T >::setInfo ( const ArrayNDInfo )
inlinevirtual
template<class T>
virtual void ArrayND< T >::setND ( const int *  ,
 
)
pure virtual
template<class T>
virtual bool ArrayND< T >::setStorage ( ValueSeries< T > *  s)
inlinevirtual

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