OpendTect  7.0
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 override
 
float getDx () const override
 
float getX0 () const override
 
bool hasUdfs () const override
 
RT operator[] (od_int64 idx) const override
 
float period () const override
 
void setHasUdfs (bool yn)
 
void setInterpolate (bool yn)
 
void setPeriod (float np)
 
int size () const override
 
- 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 override
 
void setPeriodic (bool np)
 
- Public Member Functions inherited from MathFunction< RT, RT >
RT getNDValue (const RT *pos) const override
 
int getNrDim () const override
 
- 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
inlineoverridevirtual

Reimplemented from SampledFunction< RT, T >.

◆ getDx()

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

◆ getX0()

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

◆ hasUdfs()

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

Reimplemented from SampledFunction< RT, T >.

◆ operator[]()

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

◆ period()

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

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
inlineoverridevirtual

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-2024