OpendTect-6_4
6.4
|
Public Member Functions | |
MultiDimStorage (int ndims, int nvals) | |
MultiDimStorage (const MultiDimStorage< T > &) | |
virtual | ~MultiDimStorage () |
bool | isOK () const |
MultiDimStorage< T > & | operator= (const MultiDimStorage< T > &) |
bool | getRange (int dim, Interval< int > &) const |
int | nrDims () const |
int | nrVals () const |
void | setNrVals (int, bool keepdata) |
void | removeValue (int) |
bool | allowsDuplicates () const |
bool | allowDuplicates (bool) |
bool | isEmpty () const |
int | totalSize () const |
int | size () const |
MultiDimStorage< T > * | operator[] (int) |
const MultiDimStorage< T > * | operator[] (int) const |
int | indexOf (int pos) const |
int | getPos (int idx) const |
template<class IDX > | |
const T & | getRef (const IDX &index, int val) const |
template<class IDX > | |
T & | getRef (const IDX &index, int val) |
template<class V , class POS , class IDX > | |
bool | add (const V &vals, const POS &pos, IDX *index=0) |
template<class V , class POS > | |
bool | add (const V &vals, const POS &pos) |
bool | append (const MultiDimStorage< T > &) |
template<class IDX > | |
void | remove (const IDX &index) |
void | setEmpty () |
template<class POS , class IDX > | |
bool | findFirst (const POS &, IDX &) const |
template<class IDX > | |
bool | getIndex (int global_pos, IDX &) const |
template<class IDX , class POS > | |
bool | getPos (const IDX &, POS &) const |
template<class IDX > | |
bool | next (IDX &, bool skipdups=false) const |
template<class IDX > | |
bool | prev (IDX &, bool skipdups=false) const |
template<class IDX > | |
bool | isValidPos (const IDX &) const |
void | removeDuplicates () |
bool | divide (ObjectSet< int > &) const |
template<class IDX > | |
bool | sort (TypeSet< IDX > &indices) const |
template<class POS > | |
void | getIndicesInRange (const POS &start, const POS &stop, TypeSet< int > &res) const |
template<class IDXS > | |
bool | sort (TypeSet< IDXS > &indices) const |
Protected Member Functions | |
void | getRangeI (int dim, Interval< int > &) const |
template<class IDX > | |
void | setToLastPos (IDX &) const |
int | findFirstPos (int pos) const |
template<class POS > | |
void | getIndicesInRangeI (const POS &start, const POS &stop, TypeSet< int > &curpos, TypeSet< int > &res) const |
Protected Attributes | |
TypeSet< int > | positions_ |
ObjectSet< MultiDimStorage< T > > | lowerdimstorage_ |
TypeSet< T > | onedimstorage_ |
bool | allowduplicates_ |
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. 2019