OpendTect  7.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BasicInterval< T > Class Template Reference

base class for Interval<T> More...

Inheritance diagram for BasicInterval< T >:
[legend]

Public Member Functions

 BasicInterval ()
 
 BasicInterval (const BasicInterval< T > &)
 
 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 BasicInterval< T > udf ()
 

Public Attributes

start
 
stop
 

Detailed Description

template<class T>
class BasicInterval< T >

base class for Interval<T>

Has no virtual functions and can therefore be used in places where virtual functions are not a good idea (e.g. large memcpy operations). Does not have sort, clone and scale functions, these are in Interval<T>.

<>

Constructor & Destructor Documentation

◆ BasicInterval() [1/3]

template<class T >
BasicInterval< T >::BasicInterval
inline

◆ BasicInterval() [2/3]

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

◆ BasicInterval() [3/3]

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

Member Function Documentation

◆ atIndex()

template<class T >
T BasicInterval< T >::atIndex ( int  idx,
const T &  step 
) const
inline

◆ center()

template<class T >
T BasicInterval< T >::center
inline

◆ getfCenter()

template<class T >
float BasicInterval< T >::getfCenter
inline

◆ getfIndex()

template<class T >
template<class X >
float BasicInterval< T >::getfIndex ( const X &  t,
const T &  step 
) const
inline

◆ getIndex()

template<class T >
template<class X >
int BasicInterval< T >::getIndex ( const X &  t,
const T &  step 
) const
inline

◆ include() [1/2]

template<class T >
void BasicInterval< T >::include ( const BasicInterval< T > &  i,
bool  allowrev = true 
)
inline

◆ include() [2/2]

template<class T >
void BasicInterval< T >::include ( const T &  i,
bool  allowrev = true 
)
inline

◆ includes() [1/3]

template<class T >
template<class X >
bool BasicInterval< T >::includes ( const BasicInterval< X > &  t,
bool  allowrev = true 
) const
inline

◆ includes() [2/3]

template<class T >
template<class X >
bool BasicInterval< T >::includes ( const Interval< X > &  t,
bool  allowrev = true 
) const
inline

◆ includes() [3/3]

template<class T >
template<class X >
bool BasicInterval< T >::includes ( const X &  t,
bool  allowrev 
) const
inline

◆ indexOnOrAfter()

template<class T >
template<class X >
int BasicInterval< T >::indexOnOrAfter ( x,
const T &  step,
float  eps = 1e-5 
) const
inline

◆ isEqual()

template<class T >
bool BasicInterval< T >::isEqual ( const BasicInterval< T > &  i,
const T &  eps 
) const
inline

◆ isRev()

template<class T >
bool BasicInterval< T >::isRev ( ) const
inline

◆ limitTo_()

template<class T >
template<class X >
void BasicInterval< T >::limitTo_ ( const BasicInterval< X > &  i)
inline

◆ limitValue()

template<class T >
template<class X >
X BasicInterval< T >::limitValue ( const X &  t) const
inline

◆ nearestIndex()

template<class T >
template<class X >
int BasicInterval< T >::nearestIndex ( const X &  x,
const T &  step 
) const
inline

◆ operator!=()

template<class T >
bool BasicInterval< T >::operator!= ( const BasicInterval< T > &  i) const
inline

◆ operator+()

template<class T >
BasicInterval< T > BasicInterval< T >::operator+ ( const BasicInterval< T > &  i) const
inline

◆ operator+=()

template<class T >
BasicInterval< T > & BasicInterval< T >::operator+= ( const BasicInterval< T > &  i)
inline

◆ operator=()

template<class T >
BasicInterval< T > & BasicInterval< T >::operator= ( const BasicInterval< T > &  intv)
inline

◆ operator==()

template<class T >
bool BasicInterval< T >::operator== ( const BasicInterval< T > &  i) const
inline

◆ overlaps()

template<class T >
template<class X >
bool BasicInterval< T >::overlaps ( const BasicInterval< X > &  t,
bool  allrev = true 
) const
inline

◆ pos()

template<class T >
template<class X >
float BasicInterval< T >::pos ( val,
bool  limit = true,
bool  allowrev = true 
) const
inline
Returns
a value between 0 and 1 if val is between start and stop.

◆ set()

template<class T >
void BasicInterval< T >::set ( const T &  start,
const T &  stop 
)
inline

◆ setFrom()

template<class T >
template<class X >
const BasicInterval< T > & BasicInterval< T >::setFrom ( const BasicInterval< X > &  i)
inline

◆ shift()

template<class T >
void BasicInterval< T >::shift ( const T &  len)
inline

◆ udf()

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

◆ widen()

template<class T >
void BasicInterval< T >::widen ( const T &  len,
bool  allowrev = true 
)
inline

◆ width()

template<class T >
T BasicInterval< T >::width ( bool  allowrev = true) const
inline

Member Data Documentation

◆ start

template<class T >
T BasicInterval< T >::start

◆ stop

template<class T >
T BasicInterval< T >::stop

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