 |
OpendTect
6.6
|
Go to the documentation of this file.
29 template <
class X,
class Y>
32 template <
class X,
class Y>
38 template <
class X,
class Y>
40 template <
class X,
class Y>
50 template <
class T>
inline
59 {
inundef_ = val != arr[0];
return; }
60 const bool isrev = arr[0] > arr[sz-1];
61 if ( (isrev && val >= arr[0]) || (!isrev && val<=arr[0]) )
63 if ( (!isrev && val >= arr[sz-1]) || (isrev && val<=arr[sz-1]) )
86 template <
class X,
class Y>
inline
89 const bool isrev = intv.
step < 0;
90 const Y hstep = intv.
step * 0.5;
92 if ( (isrev && y>intv.start+hstep) || (!isrev && y<intv.start-hstep) )
94 else if ( (isrev && y< intv.stop-hstep) || (!isrev && y>intv.stop+hstep) )
105 template <
class X,
class Y>
inline
IndexInfo(const SamplingData< X > &s, Y y, int len)
Definition: indexinfo.h:33
int nrSteps() const
Definition: ranges.h:791
IndexInfo(const StepInterval< X > &s, Y y)
Definition: indexinfo.h:30
#define mExpClass(module)
Definition: commondefs.h:177
T atIndex(int) const
Definition: ranges.h:695
Info on (floating-point) position in an array or StepInterval.
Definition: indexinfo.h:23
int getIndex(const X &) const
Definition: ranges.h:700
void set(const StepInterval< X > &, Y)
Definition: indexinfo.h:87
Interval with step.
Definition: commontypes.h:32
T atIndex(IT) const
Definition: samplingdata.h:164
Holds the fundamental sampling info: start and interval.
Definition: samplingdata.h:22
bool inundef_
Definition: indexinfo.h:46
T start
Definition: samplingdata.h:49
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
IndexInfo(int i, bool r=true, bool u=false)
Definition: indexinfo.h:25
int nearest_
Definition: indexinfo.h:44
bool roundedtolow_
Definition: indexinfo.h:45
FixedString Y()
Definition: keystrs.h:193
T step
Definition: samplingdata.h:50
T step
Definition: ranges.h:200
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021