OpendTect  7.0
Public Types | 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 Types

typedef nr_dims_type dim_idx_type
 
typedef size_type idx_type
 
typedef const idx_typeNDPos
 
typedef TypeSet< idx_typeNDPosBuf
 
typedef const size_typeNDSize
 
typedef std::int16_t nr_dims_type
 
typedef std::int64_t offset_type
 
typedef std::int32_t size_type
 
typedef offset_type total_size_type
 

Public Member Functions

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

Protected Member Functions

std::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).

<>

Member Typedef Documentation

◆ dim_idx_type

◆ idx_type

◆ NDPos

typedef const idx_type* ArrayNDInfo::NDPos

◆ NDPosBuf

◆ NDSize

◆ nr_dims_type

typedef std::int16_t ArrayNDInfo::nr_dims_type

◆ offset_type

typedef std::int64_t ArrayNDInfo::offset_type

◆ size_type

typedef std::int32_t ArrayNDInfo::size_type

◆ total_size_type

Constructor & Destructor Documentation

◆ ~ArrayNDInfo()

virtual ArrayNDInfo::~ArrayNDInfo ( )
inlinevirtual

Member Function Documentation

◆ calcTotalSz()

std::uint64_t ArrayNDInfo::calcTotalSz ( ) const
protected

◆ clone()

virtual ArrayNDInfo* ArrayNDInfo::clone ( ) const
pure virtual

◆ getArrayPos()

virtual bool ArrayNDInfo::getArrayPos ( std::uint64_t  ,
int *   
) const
virtual

Given an offset, what is the ND position.

◆ getNDim()

virtual int ArrayNDInfo::getNDim ( ) const
pure virtual

◆ getOffset()

virtual std::uint64_t ArrayNDInfo::getOffset ( const int *  ) const
virtual

Returns offset in a 'flat' array.

Reimplemented in Array4DInfo, Array3DInfo, Array2DInfo, and Array1DInfo.

◆ getSize()

virtual int ArrayNDInfo::getSize ( int  dim) const
pure virtual

◆ getTotalSz()

virtual std::uint64_t ArrayNDInfo::getTotalSz ( ) const
virtual

◆ isOK()

virtual bool ArrayNDInfo::isOK ( ) const
virtual

◆ nrDims()

int ArrayNDInfo::nrDims ( ) const
inline

◆ setSize()

virtual bool ArrayNDInfo::setSize ( int  dim,
int  sz 
)
virtual

◆ validDimPos()

bool ArrayNDInfo::validDimPos ( int  dim,
int  pos 
) const

Checks if the position exists on a certain dim.

◆ validPos()

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

Checks if the position exists.

Reimplemented in Array4DInfo, Array3DInfo, Array2DInfo, and Array1DInfo.


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