OpendTect  6.6
Public Member Functions | Static Public Member Functions | List of all members
Interval< T > Class Template Reference

Interval of values. More...

Inheritance diagram for Interval< T >:
[legend]

Public Member Functions

 Interval ()
 
 Interval (const BasicInterval< T > &b)
 
 Interval (const T &start, const T &stop)
 
virtual ~Interval ()
 
virtual Interval< T > * clone () const
 
virtual bool hasStep () const
 
virtual bool isUdf () const
 
virtual void scale (const T &)
 
virtual void setUdf ()
 
virtual void sort (bool asc=true)
 
- Public Member Functions inherited from BasicInterval< T >
 BasicInterval ()
 
 BasicInterval (const T &start, const T &stop)
 
atIndex (int, const T &step) const
 
center () const
 
float getfCenter () const
 
template<class X >
float getfIndex (const X &, const T &step) const
 
template<class X >
int getIndex (const X &, const T &step) const
 
void include (const BasicInterval< T > &, bool allowrev=true)
 
void include (const T &, bool allowrev=true)
 
template<class X >
bool includes (const BasicInterval< X > &, bool allowrev=true) const
 
template<class X >
bool includes (const Interval< X > &, bool allowrev=true) const
 
template<class X >
bool includes (const X &, bool allowrev) const
 
template<class X >
int indexOnOrAfter (X x, const T &step, float eps=1e-5) const
 
bool isEqual (const BasicInterval< T > &i, const T &eps) const
 
bool isRev () const
 
template<class X >
void limitTo (const BasicInterval< X > &i)
 
template<class X >
limitValue (const X &) const
 
template<class X >
int nearestIndex (const X &x, const T &step) const
 
bool operator!= (const BasicInterval< T > &) const
 
BasicInterval< T > operator+ (const BasicInterval< T > &) const
 
BasicInterval< T > & operator+= (const BasicInterval< T > &)
 
BasicInterval< T > & operator= (const BasicInterval< T > &)
 
bool operator== (const BasicInterval< T > &) const
 
template<class X >
bool overlaps (const BasicInterval< X > &, bool allrev=true) const
 
template<class X >
float pos (X val, bool limit=true, bool allowrev=true) const
 
void set (const T &start, const T &stop)
 
template<class X >
const BasicInterval< T > & setFrom (const BasicInterval< X > &)
 
void shift (const T &len)
 
void widen (const T &len, bool allowrev=true)
 
width (bool allowrev=true) const
 

Static Public Member Functions

static Interval< T > udf ()
 
- Static Public Member Functions inherited from BasicInterval< T >
static BasicInterval< T > udf ()
 

Additional Inherited Members

- Public Attributes inherited from BasicInterval< T >
start
 
stop
 

Detailed Description

template<class T>
class Interval< T >

Interval of values.

Note that start does not need to be lower than stop. That's why there is a sort() method.

<>

Constructor & Destructor Documentation

◆ Interval() [1/3]

template<class T >
Interval< T >::Interval ( )
inline

◆ ~Interval()

template<class T >
virtual Interval< T >::~Interval ( )
inlinevirtual

◆ Interval() [2/3]

template<class T >
Interval< T >::Interval ( const T &  start,
const T &  stop 
)
inline

◆ Interval() [3/3]

template<class T >
Interval< T >::Interval ( const BasicInterval< T > &  b)
inline

Member Function Documentation

◆ clone()

template<class T >
Interval< T > * Interval< T >::clone
inlinevirtual

◆ hasStep()

template<class T >
virtual bool Interval< T >::hasStep ( ) const
inlinevirtual

◆ isUdf()

template<class T >
bool Interval< T >::isUdf
inlinevirtual

◆ scale()

template<class T >
void Interval< T >::scale ( const T &  factor)
inlinevirtual

◆ setUdf()

template<class T >
void Interval< T >::setUdf
inlinevirtual

◆ sort()

template<class T >
void Interval< T >::sort ( bool  asc = true)
inlinevirtual

◆ udf()

template<class T >
static Interval<T> Interval< T >::udf ( )
inlinestatic

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