OpendTect-6_4  6.4
Public Member Functions | Static Protected Member Functions | Friends | List of all members
BinIDValueSet Class Reference

A Pos::IdxPairValueSet with BinIDs. More...

Inheritance diagram for BinIDValueSet:
[legend]

Public Member Functions

 BinIDValueSet (int nrvals, bool allowdup)
 
 BinIDValueSet (const BinIDValueSet &bvs)
 
BinIDValueSetoperator= (const BinIDValueSet &oth)
 
void allowDuplicateBinIDs (bool yn)
 
bool hasDuplicateBinIDs () const
 
bool nrDuplicateBinIDs () const
 
BinID getBinID (const SPos &spos) const
 
BinID firstBinID () const
 
- Public Member Functions inherited from Pos::IdxPairValueSet
 IdxPairValueSet (int nr_vals, bool allow_duplicate_idxpairs)
 
 IdxPairValueSet (const IdxPairValueSet &)
 
virtual ~IdxPairValueSet ()
 
IdxPairValueSetoperator= (const IdxPairValueSet &)
 
void allowDuplicateIdxPairs (bool yn)
 
bool allowsDuplicateIdxPairs () const
 
void setEmpty ()
 
bool append (const IdxPairValueSet &)
 
void remove (const IdxPairValueSet &)
 
void copyStructureFrom (const IdxPairValueSet &)
 will also empty this set More...
 
SPos find (const IdxPair &ip) const
 
SPos findOccurrence (const IdxPair &, int occ=0) const
 
bool next (SPos &, bool skip_duplicate_idxpairs=false) const
 
bool prev (SPos &, bool skip_duplicate_idxpairs=false) const
 
bool isValid (const IdxPair &) const
 
void get (const SPos &, IdxPair &, float *v=0, int mxnrvals=-1) const
 
IdxPair getIdxPair (const SPos &) const
 
SPos getPos (od_int64 global_idx) const
 Slow. And no check on idx in range. More...
 
SPos add (const IdxPair &, const float *vs=0)
 Either pass sufficient data or pass null. More...
 
SPos add (const DataRow &)
 Wrong-sized will be handled correctly. More...
 
void set (SPos, const float *vs=0)
 
int nrVals () const
 
int nrFirst () const
 
int nrSecond (IdxType firstidx) const
 
bool isEmpty () const
 
bool includes (const IdxPair &ip) const
 
bool hasFirst (IdxType) const
 
bool hasSecond (IdxType) const
 
IdxPair firstIdxPair () const
 if empty, returns IdxPair::udf() More...
 
od_int64 totalSize () const
 
Interval< IdxTypefirstRange () const
 
Interval< IdxTypesecondRange (IdxType firsidx=-1) const
 
Interval< float > valRange (int valnr) const
 
void remove (const SPos &)
 afterwards, SPos may be invalid More...
 
void remove (const TypeSet< SPos > &)
 
void removeVal (int)
 Will remove entire 'column'. More...
 
bool insertVal (int)
 
bool setNrVals (int, bool kp_data=true)
 
int nrDuplicateIdxPairs () const
 
void sortDuplicateIdxPairs (int value_nr, bool ascending=true)
 
void removeDuplicateIdxPairs ()
 
void randomSubselect (od_int64 maxnr)
 
void extend (const IdxPairDelta &stepout, const IdxPairStep &)
 Adds only IdxPair postions not yet in set. More...
 
void removeRange (int valnr, const Interval< float > &, bool inside=true)
 
void remove (const TrcKeySampling &hrg, bool inside)
 
SPos add (const PairVal &)
 
SPos add (const IdxPair &, float)
 
SPos add (const IdxPair &, double)
 
SPos add (const IdxPair &, float, float)
 
SPos add (const IdxPair &, const TypeSet< float > &)
 
void add (const PosInfo::CubeData &)
 
void get (const SPos &, DataRow &) const
 
void get (const SPos &, PairVal &) const
 
void get (const SPos &, IdxPair &, float &) const
 
void get (const SPos &, IdxPair &, float &, float &) const
 
void get (const SPos &, IdxPair &, TypeSet< float > &, int maxnrvals=-1) const
 max == -1 => all More...
 
void set (const SPos &, float)
 
void set (const SPos &, float, float)
 
void set (const SPos &, const TypeSet< float > &)
 
void getColumn (int valnr, TypeSet< float > &, bool incudf) const
 
void fillPar (IOPar &, const char *key) const
 
void usePar (const IOPar &, const char *key)
 
bool getFrom (od_istream &, Pos::GeomID=mUdf(Pos::GeomID))
 detects/converts coords if geomid passed More...
 
bool putTo (od_ostream &) const
 
bool includes (const DataRow &) const
 
int nrPos (int lineidx) const
 nth line in the set More...
 
float * getVals (const SPos &pos)
 Direct access to value arrays. More...
 
const float * getVals (const SPos &pos) const
 Direct access to value arrays. More...
 
float getVal (const SPos &pos, int valnr) const
 < Direct access to value arrays. More...
 
bool hasDuplicateIdxPairs () const
 
bool haveDataRow (const DataRow &) const
 
int nrInls () const
 
int nrCrls (IdxType inl) const
 
int nrRows () const
 
int nrCols (IdxType row) const
 
bool hasInl (IdxType inl) const
 
bool hasCrl (IdxType crl) const
 
bool hasRow (IdxType row) const
 
bool hasCol (IdxType col) const
 
Interval< int > inlRange () const
 
Interval< int > rowRange () const
 
Interval< int > crlRange (IdxType inl=-1) const
 
Interval< int > colRange (IdxType row=-1) const
 

Static Protected Member Functions

static BinID mkBinID (const Pos::IdxPair &ip)
 

Friends

class DataPointSet
 
class PosVecDataSet
 

Additional Inherited Members

- Public Types inherited from Pos::IdxPairValueSet
typedef IdxPair::IdxType IdxType
 
typedef ValueIdxPair< IdxPair, float > PairVal
 
typedef IdxPairValues< IdxPair, float > DataRow
 
- Protected Member Functions inherited from Pos::IdxPairValueSet
void addNew (SPos &, IdxType, const float *)
 
void sortPart (TypeSet< IdxType > &, TypeSet< float > &, int, int, int, bool)
 
void removeLine (int idx)
 
IdxType getFrst (const SPos &pos) const
 
IdxType getScnd (const SPos &pos) const
 
TypeSet< IdxType > & getScndSet (const SPos &pos)
 
const TypeSet< IdxType > & getScndSet (const SPos &pos) const
 
TypeSet< float > & getValSet (const SPos &pos)
 
const TypeSet< float > & getValSet (const SPos &pos) const
 
TypeSet< IdxType > & getScndSet (int idx)
 
const TypeSet< IdxType > & getScndSet (int idx) const
 
TypeSet< float > & getValSet (int idx)
 
const TypeSet< float > & getValSet (int idx) const
 
- Protected Attributes inherited from Pos::IdxPairValueSet
const int nrvals_
 
TypeSet< IdxTypefrsts_
 
ObjectSet< TypeSet< IdxType > > scndsets_
 
ObjectSet< TypeSet< float > > valsets_
 
bool allowdup_
 

Detailed Description

A Pos::IdxPairValueSet with BinIDs.

Constructor & Destructor Documentation

BinIDValueSet::BinIDValueSet ( int  nrvals,
bool  allowdup 
)
inline
BinIDValueSet::BinIDValueSet ( const BinIDValueSet bvs)
inline

Member Function Documentation

void BinIDValueSet::allowDuplicateBinIDs ( bool  yn)
inline
BinID BinIDValueSet::firstBinID ( ) const
inline
BinID BinIDValueSet::getBinID ( const SPos spos) const
inline
bool BinIDValueSet::hasDuplicateBinIDs ( ) const
inline
static BinID BinIDValueSet::mkBinID ( const Pos::IdxPair ip)
inlinestaticprotected
bool BinIDValueSet::nrDuplicateBinIDs ( ) const
inline
BinIDValueSet& BinIDValueSet::operator= ( const BinIDValueSet oth)
inline

Friends And Related Function Documentation

friend class DataPointSet
friend
friend class PosVecDataSet
friend

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