![]() |
OpendTect
6.3
|
builds an index of a list of positions, making it easy to find a specific position. More...
Public Types | |
| typedef Index_Type | KeyIdxType |
| typedef TypeSet< KeyIdxType > | KeyIdxSet |
| typedef KeyIdxSet::size_type | SetIdxType |
| typedef PosKeyList::FileIdxType | FileIdxType |
| typedef TypeSet< FileIdxType > | FileIdxSet |
| typedef od_stream_Pos | FileOffsType |
| typedef TypeSet< FileOffsType > | FileOffsSet |
| typedef DataInterpreter< int > | Int32Interpreter |
| typedef DataInterpreter< od_int64 > | Int64Interpreter |
| typedef DataInterpreter< float > | FloatInterpreter |
Public Member Functions | |
| PosIndexer (const PosKeyList &, bool doindex, bool exclude_unreasonable_traces) | |
| unreasonable == far outside survey More... | |
| virtual | ~PosIndexer () |
| void | setEmpty () |
| bool | ioCompressed () const |
| void | setIOCompressed (bool yn=true) |
| void | add (const PosKey &, FileIdxType) |
| void | reIndex () |
| Calls add() multiple times. More... | |
| GeomType | geomType () const |
| const Interval< KeyIdxType > & | inlRange () const |
| const KeyIdxSet & | getInls () const |
| const Interval< KeyIdxType > & | crlRange () const |
| const Interval< KeyIdxType > & | trcNrRange () const |
| void | getCrls (KeyIdxType, KeyIdxSet &) const |
| const Interval< float > & | offsetRange () const |
| FileIdxType | nrRejected () const |
| bool | validFileIdx (FileIdxType idx) const |
| FileIdxType | maxFileIdx () const |
| FileIdxType | findFirst (const BinID &) const |
| FileIdxType | findFirst (KeyIdxType trcnr) const |
| FileIdxType | findFirst (const PosKey &, bool chckoffs=true) const |
| -3 offs not found More... | |
| FileIdxType | findOcc (const PosKey &, int occ) const |
| ignores offset More... | |
| FileIdxSet | findAll (const PosKey &) const |
| ignores offset More... | |
| bool | dumpTo (od_ostream &) const |
| bool | readFrom (const char *fnm, FileIdxType, bool all, Int32Interpreter *=0, Int64Interpreter *=0, FloatInterpreter *=0) |
Protected Member Functions | |
| bool | readHeader (Int32Interpreter *, Int64Interpreter *, FloatInterpreter *) |
| bool | readLine (KeyIdxSet &crls, FileIdxSet &, Int32Interpreter *, Int64Interpreter *) const |
| bool | isReasonable (const BinID &) const |
| int | getFirstIdxs (const BinID &, int &, int &) const |
| void | dumpLineCompressed (od_ostream &, const KeyIdxSet &, const FileIdxSet &) const |
| bool | readLineCompressed (KeyIdxSet &, FileIdxSet &) const |
Protected Attributes | |
| od_istream * | strm_ |
| Int32Interpreter * | int32interp_ |
| Int64Interpreter * | int64interp_ |
| FileOffsSet | inlfileoffsets_ |
| Threads::Lock | lock_ |
| FileIdxSet | curfileidxs_ |
| KeyIdxSet | curcrlset_ |
| KeyIdxType | curinl_ |
| const PosKeyList & | pkl_ |
| const bool | is2d_ |
| const bool | isps_ |
| bool | iocompressed_ |
| bool | excludeunreasonable_ |
| KeyIdxSet | inls_ |
| ObjectSet< KeyIdxSet > | crlsets_ |
| ObjectSet< FileIdxSet > | fileidxsets_ |
| FileIdxType | maxfileidx_ |
| Interval< KeyIdxType > | inlrg_ |
| Interval< KeyIdxType > | crlrg_ |
| Interval< float > | offsrg_ |
| Interval< KeyIdxType > | goodinlrg_ |
| Interval< KeyIdxType > | goodcrlrg_ |
| FileIdxType | nrrejected_ |
builds an index of a list of positions, making it easy to find a specific position.
In principle, no sorting is required. While at it, in/xline and offset ranges are determined.
| typedef DataInterpreter<float> Seis::PosIndexer::FloatInterpreter |
| typedef DataInterpreter<int> Seis::PosIndexer::Int32Interpreter |
| typedef TypeSet<KeyIdxType> Seis::PosIndexer::KeyIdxSet |
| Seis::PosIndexer::PosIndexer | ( | const PosKeyList & | , |
| bool | doindex, | ||
| bool | exclude_unreasonable_traces | ||
| ) |
unreasonable == far outside survey
|
virtual |
| void Seis::PosIndexer::add | ( | const PosKey & | , |
| FileIdxType | |||
| ) |
|
inline |
|
protected |
| bool Seis::PosIndexer::dumpTo | ( | od_ostream & | ) | const |
| FileIdxSet Seis::PosIndexer::findAll | ( | const PosKey & | ) | const |
ignores offset
| FileIdxType Seis::PosIndexer::findFirst | ( | const BinID & | ) | const |
| FileIdxType Seis::PosIndexer::findFirst | ( | KeyIdxType | trcnr | ) | const |
| FileIdxType Seis::PosIndexer::findFirst | ( | const PosKey & | , |
| bool | chckoffs = true |
||
| ) | const |
-3 offs not found
| FileIdxType Seis::PosIndexer::findOcc | ( | const PosKey & | , |
| int | occ | ||
| ) | const |
ignores offset
|
inline |
| void Seis::PosIndexer::getCrls | ( | KeyIdxType | , |
| KeyIdxSet & | |||
| ) | const |
|
protected |
|
inline |
|
inline |
|
inline |
|
protected |
|
inline |
|
inline |
|
inline |
| bool Seis::PosIndexer::readFrom | ( | const char * | fnm, |
| FileIdxType | , | ||
| bool | all, | ||
| Int32Interpreter * | = 0, |
||
| Int64Interpreter * | = 0, |
||
| FloatInterpreter * | = 0 |
||
| ) |
|
protected |
|
protected |
|
protected |
| void Seis::PosIndexer::reIndex | ( | ) |
Calls add() multiple times.
| void Seis::PosIndexer::setEmpty | ( | ) |
|
inline |
|
inline |
|
inline |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2017