OpendTect-6_4  6.4
Public Member Functions | Protected Attributes | List of all members
SampledFunctionImpl< RT, T > Class Template Reference

Implementation for array-type of SampledFunction. More...

Inheritance diagram for SampledFunctionImpl< RT, T >:
[legend]

Public Member Functions

 SampledFunctionImpl (const T &idxabl, int sz, float x0=0, float dx=1)
 
RT operator[] (od_int64 idx) const
 
float getDx () const
 
float getX0 () const
 
int size () const
 
float period () const
 
void setPeriod (float np)
 
bool hasUdfs () const
 
void setHasUdfs (bool yn)
 
bool doInterpolate () const
 
void setInterpolate (bool yn)
 
- Public Member Functions inherited from SampledFunction< RT, T >
 SampledFunction (bool periodic_=false)
 
void setPeriodic (bool np)
 
float getIndex (float x) const
 
int getNearestIndex (float x) const
 
RT getValue (RT x) const
 
RT getValue (const RT *x) const
 
- Public Member Functions inherited from MathFunction< RT, RT >
virtual RT getNDValue (const RT *pos) const
 
virtual int getNrDim () const
 
- Public Member Functions inherited from MathFunctionND< RT, RT >
virtual ~MathFunctionND ()
 

Protected Attributes

const T & idxabl_
 
int sz_
 
int firstidx_
 
float dx_
 
float x0_
 
float period_
 
bool hasudfs_
 
bool interpolate_
 
- Protected Attributes inherited from SampledFunction< RT, T >
bool periodic
 

Additional Inherited Members

- Protected Member Functions inherited from SampledFunction< RT, T >
virtual bool extrapolate () const
 

Detailed Description

template<class RT, class T>
class SampledFunctionImpl< RT, T >

Implementation for array-type of SampledFunction.

Constructor & Destructor Documentation

template<class RT , class T >
SampledFunctionImpl< RT, T >::SampledFunctionImpl ( const T &  idxabl,
int  sz,
float  x0 = 0,
float  dx = 1 
)
inline

Member Function Documentation

template<class RT , class T >
bool SampledFunctionImpl< RT, T >::doInterpolate ( ) const
inlinevirtual

Reimplemented from SampledFunction< RT, T >.

template<class RT , class T >
float SampledFunctionImpl< RT, T >::getDx ( ) const
inlinevirtual
template<class RT , class T >
float SampledFunctionImpl< RT, T >::getX0 ( ) const
inlinevirtual
template<class RT , class T >
bool SampledFunctionImpl< RT, T >::hasUdfs ( ) const
inlinevirtual

Reimplemented from SampledFunction< RT, T >.

template<class RT , class T >
RT SampledFunctionImpl< RT, T >::operator[] ( od_int64  idx) const
inlinevirtual
template<class RT , class T >
float SampledFunctionImpl< RT, T >::period ( ) const
inlinevirtual

Reimplemented from SampledFunction< RT, T >.

template<class RT , class T >
void SampledFunctionImpl< RT, T >::setHasUdfs ( bool  yn)
inline
template<class RT , class T >
void SampledFunctionImpl< RT, T >::setInterpolate ( bool  yn)
inline
template<class RT , class T >
void SampledFunctionImpl< RT, T >::setPeriod ( float  np)
inline
template<class RT , class T >
int SampledFunctionImpl< RT, T >::size ( ) const
inlinevirtual

Member Data Documentation

template<class RT , class T >
float SampledFunctionImpl< RT, T >::dx_
protected
template<class RT , class T >
int SampledFunctionImpl< RT, T >::firstidx_
protected
template<class RT , class T >
bool SampledFunctionImpl< RT, T >::hasudfs_
protected
template<class RT , class T >
const T& SampledFunctionImpl< RT, T >::idxabl_
protected
template<class RT , class T >
bool SampledFunctionImpl< RT, T >::interpolate_
protected
template<class RT , class T >
float SampledFunctionImpl< RT, T >::period_
protected
template<class RT , class T >
int SampledFunctionImpl< RT, T >::sz_
protected
template<class RT , class T >
float SampledFunctionImpl< RT, T >::x0_
protected

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