OpendTect 8.0
Loading...
Searching...
No Matches
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...

#include <arrayndinfo.h>

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 od_int16 nr_dims_type
 
typedef od_int64 offset_type
 
typedef od_int32 size_type
 
typedef offset_type total_size_type
 

Public Member Functions

virtual ~ArrayNDInfo ()
 
virtual ArrayNDInfoclone () const =0
 
virtual bool getArrayPos (od_uint64, int *) const
 
virtual int getNDim () const =0
 
virtual od_uint64 getOffset (const int *) const
 
virtual int getSize (int dim) const =0
 
virtual od_uint64 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

od_uint64 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 od_int16 ArrayNDInfo::nr_dims_type

◆ offset_type

typedef od_int64 ArrayNDInfo::offset_type

◆ size_type

typedef od_int32 ArrayNDInfo::size_type

◆ total_size_type

Constructor & Destructor Documentation

◆ ~ArrayNDInfo()

virtual ArrayNDInfo::~ArrayNDInfo ( )
inlinevirtual

Member Function Documentation

◆ calcTotalSz()

od_uint64 ArrayNDInfo::calcTotalSz ( ) const
protected

◆ clone()

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

◆ getArrayPos()

virtual bool ArrayNDInfo::getArrayPos ( od_uint64 ,
int *  ) const
virtual

Given an offset, what is the ND position.

◆ getNDim()

virtual int ArrayNDInfo::getNDim ( ) const
pure virtual

◆ getOffset()

virtual od_uint64 ArrayNDInfo::getOffset ( const int * ) const
virtual

Returns offset in a 'flat' array.

Reimplemented in Array1DInfo, Array2DInfo, Array3DInfo, and Array4DInfo.

◆ getSize()

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

◆ getTotalSz()

virtual od_uint64 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 Array1DInfo, Array2DInfo, Array3DInfo, and Array4DInfo.


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