OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BasicInterval< T > Class Template Reference

Base class for Interval. Has no virtual functions and can hence be used in places where no virtual functions are allowed (e.g. large memcpy operations. Does not have sort, clone and scale functions. If you need then, use the Interval<T> instead. More...

Inheritance diagram for BasicInterval< T >:
[legend]

Public Member Functions

 BasicInterval ()
 
 BasicInterval (const T &start, const T &stop)
 
BasicInterval< T > & operator= (const BasicInterval< T > &)
 
void set (const T &start, const T &stop)
 
bool isEqual (const BasicInterval< T > &i, const T &eps) const
 
bool operator== (const BasicInterval< T > &) const
 
bool operator!= (const BasicInterval< T > &) const
 
BasicInterval< T > operator+ (const BasicInterval< T > &) const
 
BasicInterval< T > & operator+= (const BasicInterval< T > &)
 
template<class X >
const BasicInterval< T > & setFrom (const BasicInterval< X > &)
 
width (bool allowrev=true) const
 
center () const
 
float getfCenter () const
 
void shift (const T &len)
 
void widen (const T &len, bool allowrev=true)
 
atIndex (int, const T &step) const
 
template<class X >
int getIndex (const X &, const T &step) const
 
template<class X >
float getfIndex (const X &, const T &step) const
 
template<class X >
int nearestIndex (const X &x, const T &step) const
 
template<class X >
int indexOnOrAfter (X x, const T &step, float eps=1e-5) const
 
template<class X >
void limitTo (const BasicInterval< X > &i)
 
template<class X >
limitValue (const X &) const
 
template<class X >
bool overlaps (const BasicInterval< X > &, bool allrev=true) const
 
template<class X >
bool includes (const X &, bool allowrev) const
 
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 >
float pos (X val, bool limit=true, bool allowrev=true) const
 
void include (const T &, bool allowrev=true)
 
void include (const BasicInterval< T > &, bool allowrev=true)
 
bool isRev () 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. Has no virtual functions and can hence be used in places where no virtual functions are allowed (e.g. large memcpy operations. Does not have sort, clone and scale functions. If you need then, use the Interval<T> instead.

Constructor & Destructor Documentation

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

Member Function Documentation

template<class T>
T BasicInterval< T >::atIndex ( int  idx,
const T &  step 
) const
inline
template<class T >
T BasicInterval< T >::center ( ) const
inline
template<class T >
float BasicInterval< T >::getfCenter ( ) const
inline
template<class T>
template<class X >
float BasicInterval< T >::getfIndex ( const X &  t,
const T &  step 
) const
inline
template<class T>
template<class X >
int BasicInterval< T >::getIndex ( const X &  t,
const T &  step 
) const
inline
template<class T>
void BasicInterval< T >::include ( const T &  i,
bool  allowrev = true 
)
inline
template<class T>
void BasicInterval< T >::include ( const BasicInterval< T > &  i,
bool  allowrev = true 
)
inline
template<class T >
template<class X >
bool BasicInterval< T >::includes ( const X &  t,
bool  allowrev 
) const
inline
template<class T >
template<class X >
bool BasicInterval< T >::includes ( const BasicInterval< X > &  t,
bool  allowrev = true 
) const
inline
template<class T >
template<class X >
bool BasicInterval< T >::includes ( const Interval< X > &  t,
bool  allowrev = true 
) const
inline
template<class T>
template<class X >
int BasicInterval< T >::indexOnOrAfter ( x,
const T &  step,
float  eps = 1e-5 
) const
inline
template<class T>
bool BasicInterval< T >::isEqual ( const BasicInterval< T > &  i,
const T &  eps 
) const
inline
template<class T>
bool BasicInterval< T >::isRev ( ) const
inline
template<class T>
template<class X >
void BasicInterval< T >::limitTo ( const BasicInterval< X > &  i)
inline
template<class T >
template<class X >
X BasicInterval< T >::limitValue ( const X &  t) const
inline
template<class T>
template<class X >
int BasicInterval< T >::nearestIndex ( const X &  x,
const T &  step 
) const
inline
template<class T>
bool BasicInterval< T >::operator!= ( const BasicInterval< T > &  i) const
inline
template<class T>
BasicInterval< T > BasicInterval< T >::operator+ ( const BasicInterval< T > &  i) const
inline
template<class T>
BasicInterval< T > & BasicInterval< T >::operator+= ( const BasicInterval< T > &  i)
inline
template<class T>
BasicInterval< T > & BasicInterval< T >::operator= ( const BasicInterval< T > &  intv)
inline
template<class T>
bool BasicInterval< T >::operator== ( const BasicInterval< T > &  i) const
inline
template<class T >
template<class X >
bool BasicInterval< T >::overlaps ( const BasicInterval< X > &  t,
bool  allrev = true 
) const
inline
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.
template<class T>
void BasicInterval< T >::set ( const T &  start,
const T &  stop 
)
inline
template<class T >
template<class X >
const BasicInterval< T > & BasicInterval< T >::setFrom ( const BasicInterval< X > &  i)
inline
template<class T>
void BasicInterval< T >::shift ( const T &  len)
inline
template<class T>
static BasicInterval<T> BasicInterval< T >::udf ( )
inlinestatic
template<class T>
void BasicInterval< T >::widen ( const T &  len,
bool  allowrev = true 
)
inline
template<class T >
T BasicInterval< T >::width ( bool  allowrev = true) const
inline

Member Data Documentation

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

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