OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | List of all members
ArrayNDInfo Class Referenceabstract

Contains the information about the size of ArrayND, and in what order the data is stored (if accessable via a pointer). More...

Inheritance diagram for ArrayNDInfo:
[legend]

Public Member Functions

virtual ArrayNDInfoclone () const =0
 
virtual ~ArrayNDInfo ()
 
virtual int getNDim () const =0
 
virtual int getSize (int dim) const =0
 
virtual bool setSize (int dim, int sz)
 
virtual bool isOK () const
 
virtual uint64_t getTotalSz () const
 
virtual uint64_t getOffset (const int *) const
 
virtual bool validPos (const int *) const
 
bool validDimPos (int dim, int pos) const
 
virtual bool getArrayPos (uint64_t, int *) const
 

Protected Member Functions

uint64_t calcTotalSz () const
 

Detailed Description

Contains the information about the size of ArrayND, and in what order the data is stored (if accessable via a pointer).

Constructor & Destructor Documentation

virtual ArrayNDInfo::~ArrayNDInfo ( )
inlinevirtual

Member Function Documentation

uint64_t ArrayNDInfo::calcTotalSz ( ) const
protected
virtual ArrayNDInfo* ArrayNDInfo::clone ( ) const
pure virtual
virtual bool ArrayNDInfo::getArrayPos ( uint64_t  ,
int *   
) const
virtual

Given an offset, what is the ND position.

virtual int ArrayNDInfo::getNDim ( ) const
pure virtual
virtual uint64_t ArrayNDInfo::getOffset ( const int *  ) const
virtual

Returns offset in a 'flat' array.

Reimplemented in Array3DInfo, Array2DInfo, and Array1DInfo.

virtual int ArrayNDInfo::getSize ( int  dim) const
pure virtual
virtual uint64_t ArrayNDInfo::getTotalSz ( ) const
virtual
virtual bool ArrayNDInfo::isOK ( ) const
virtual
virtual bool ArrayNDInfo::setSize ( int  dim,
int  sz 
)
virtual
bool ArrayNDInfo::validDimPos ( int  dim,
int  pos 
) const

Checks if the position exists on a certain dim.

virtual bool ArrayNDInfo::validPos ( const int *  ) const
virtual

Checks if the position exists.

Reimplemented in Array3DInfo, Array2DInfo, and Array1DInfo.


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