OpendTect
6.6
|
Public Member Functions | |
MultiDimStorage (const MultiDimStorage< T > &) | |
MultiDimStorage (int ndims, int nvals) | |
virtual | ~MultiDimStorage () |
template<class V , class POS > | |
bool | add (const V &vals, const POS &pos) |
template<class V , class POS , class IDX > | |
bool | add (const V &vals, const POS &pos, IDX *index=0) |
bool | allowDuplicates (bool) |
bool | allowsDuplicates () const |
bool | append (const MultiDimStorage< T > &) |
bool | divide (ObjectSet< int > &) const |
template<class POS , class IDX > | |
bool | findFirst (const POS &, IDX &) const |
template<class IDX > | |
bool | getIndex (int global_pos, IDX &) const |
template<class POS > | |
void | getIndicesInRange (const POS &start, const POS &stop, TypeSet< int > &res) const |
template<class IDX , class POS > | |
bool | getPos (const IDX &, POS &) const |
int | getPos (int idx) const |
bool | getRange (int dim, Interval< int > &) const |
template<class IDX > | |
T & | getRef (const IDX &index, int val) |
template<class IDX > | |
const T & | getRef (const IDX &index, int val) const |
int | indexOf (int pos) const |
bool | isEmpty () const |
bool | isOK () const |
template<class IDX > | |
bool | isValidPos (const IDX &) const |
template<class IDX > | |
bool | next (IDX &, bool skipdups=false) const |
int | nrDims () const |
int | nrVals () const |
MultiDimStorage< T > & | operator= (const MultiDimStorage< T > &) |
MultiDimStorage< T > * | operator[] (int) |
const MultiDimStorage< T > * | operator[] (int) const |
template<class IDX > | |
bool | prev (IDX &, bool skipdups=false) const |
template<class IDX > | |
void | remove (const IDX &index) |
void | removeDuplicates () |
void | removeValue (int) |
void | setEmpty () |
void | setNrVals (int, bool keepdata) |
int | size () const |
template<class IDX > | |
bool | sort (TypeSet< IDX > &indices) const |
template<class IDXS > | |
bool | sort (TypeSet< IDXS > &indices) const |
int | totalSize () const |
Protected Member Functions | |
int | findFirstPos (int pos) const |
template<class POS > | |
void | getIndicesInRangeI (const POS &start, const POS &stop, TypeSet< int > &curpos, TypeSet< int > &res) const |
void | getRangeI (int dim, Interval< int > &) const |
template<class IDX > | |
void | setToLastPos (IDX &) const |
Protected Attributes | |
bool | allowduplicates_ |
ObjectSet< MultiDimStorage< T > > | lowerdimstorage_ |
TypeSet< T > | onedimstorage_ |
TypeSet< int > | positions_ |
Private Attributes | |
int | nrdims_ |
int | nrvals_ |
Stores one or more values of type T that are associated with a discrete position in a N dimenstional space.
<>
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
Adds values to stucture.
|
inline |
Adds values to stucture.
|
inline |
|
inline |
Set allowance for allowing multiple instances at the same position.
|
inline |
|
inline |
divides all items into chunks of (about equal size).
|
inline |
|
inlineprotected |
|
inline |
|
inline |
Gives all indices within a position range.
start | array with the interval starts for each dimension |
stop | array with the interval stops for each dimension |
res | the output. The indexes are multiplexed in, so the first ndims samples are the indices for first position, the second ndim samples are the indices for the second postion and so forth. |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void MultiDimStorage< T >::removeValue | ( | int | ) |
|
inline |
removes everything.
|
inline |
|
inlineprotected |
|
inline |
bool MultiDimStorage< T >::sort | ( | TypeSet< IDX > & | indices | ) | const |
Sorts the array in order of globalpos.
|
inline |
|
inline |
|
protected |
|
protected |
|
private |
|
private |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022