OpendTect  6.6
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)
 
bool doInterpolate () const
 
float getDx () const
 
float getX0 () const
 
bool hasUdfs () const
 
RT operator[] (od_int64 idx) const
 
float period () const
 
void setHasUdfs (bool yn)
 
void setInterpolate (bool yn)
 
void setPeriod (float np)
 
int size () const
 
- Public Member Functions inherited from SampledFunction< RT, T >
 SampledFunction (bool periodic_=false)
 
float getIndex (float x) const
 
int getNearestIndex (float x) const
 
RT getValue (const RT *x) const
 
RT getValue (RT x) const
 
void setPeriodic (bool np)
 
- 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, PT >
virtual ~MathFunctionND ()
 
virtual RT getNDValue (const PT *) const =0
 

Protected Attributes

float dx_
 
int firstidx_
 
bool hasudfs_
 
const T & idxabl_
 
bool interpolate_
 
float period_
 
int sz_
 
float x0_
 
- 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

◆ SampledFunctionImpl()

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

Member Function Documentation

◆ doInterpolate()

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

Reimplemented from SampledFunction< RT, T >.

◆ getDx()

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

◆ getX0()

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

◆ hasUdfs()

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

Reimplemented from SampledFunction< RT, T >.

◆ operator[]()

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

◆ period()

template<class RT , class T >
float SampledFunctionImpl< RT, T >::period ( ) const
inlinevirtual

Reimplemented from SampledFunction< RT, T >.

◆ setHasUdfs()

template<class RT , class T >
void SampledFunctionImpl< RT, T >::setHasUdfs ( bool  yn)
inline

◆ setInterpolate()

template<class RT , class T >
void SampledFunctionImpl< RT, T >::setInterpolate ( bool  yn)
inline

◆ setPeriod()

template<class RT , class T >
void SampledFunctionImpl< RT, T >::setPeriod ( float  np)
inline

◆ size()

template<class RT , class T >
int SampledFunctionImpl< RT, T >::size ( ) const
inlinevirtual

Member Data Documentation

◆ dx_

template<class RT , class T >
float SampledFunctionImpl< RT, T >::dx_
protected

◆ firstidx_

template<class RT , class T >
int SampledFunctionImpl< RT, T >::firstidx_
protected

◆ hasudfs_

template<class RT , class T >
bool SampledFunctionImpl< RT, T >::hasudfs_
protected

◆ idxabl_

template<class RT , class T >
const T& SampledFunctionImpl< RT, T >::idxabl_
protected

◆ interpolate_

template<class RT , class T >
bool SampledFunctionImpl< RT, T >::interpolate_
protected

◆ period_

template<class RT , class T >
float SampledFunctionImpl< RT, T >::period_
protected

◆ sz_

template<class RT , class T >
int SampledFunctionImpl< RT, T >::sz_
protected

◆ x0_

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. 1995-2022