Public Member Functions | Protected Attributes

SampledFunctionImpl< RT, T > Class Template Reference

implementation for array-type of SampledFunction More...

Inheritance diagram for SampledFunctionImpl< RT, T >:
SampledFunction< RT, T > MathFunction< RT, RT > MathFunctionND< RT, RT >

List of all members.

Public Member Functions

 SampledFunctionImpl (const T &idxabl, int sz, float x0=0, float dx=1)
RT operator[] (int 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)

Protected Attributes

const T & idxabl_
int sz_
int firstidx_
float dx_
float x0_
float period_
bool hasudfs_
bool interpolate_

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 [inline, virtual]

Reimplemented from SampledFunction< RT, T >.

template<class RT , class T >
float SampledFunctionImpl< RT, T >::getDx (  )  const [inline, virtual]
template<class RT , class T >
float SampledFunctionImpl< RT, T >::getX0 (  )  const [inline, virtual]
template<class RT , class T >
bool SampledFunctionImpl< RT, T >::hasUdfs (  )  const [inline, virtual]

Reimplemented from SampledFunction< RT, T >.

template<class RT , class T >
RT SampledFunctionImpl< RT, T >::operator[] ( int  idx  )  const [inline, virtual]
template<class RT , class T >
float SampledFunctionImpl< RT, T >::period (  )  const [inline, virtual]

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 [inline, virtual]

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]