Jpp
Public Types | Public Member Functions | Protected Attributes | List of all members
JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t > Struct Template Reference

2D Element for spline interpolations. More...

#include <JElement.hh>

Inheritance diagram for JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >:
JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t > JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >

Public Types

typedef JSplineElement2D< JAbscissa_t, JOrdinate_t > element_type
 
typedef element_type::abscissa_type abscissa_type
 
typedef element_type::ordinate_type ordinate_type
 

Public Member Functions

 JSplineElement2S ()
 Default constructor. More...
 
 JSplineElement2S (typename JLANG::JClass< abscissa_type >::argument_type x, typename JLANG::JClass< ordinate_type >::argument_type y)
 Constructor. More...
 
ordinate_type getIntegral () const
 Get integral. More...
 
void setIntegral (typename JLANG::JClass< ordinate_type >::argument_type v)
 Set integral. More...
 
ordinate_type getU () const
 Get derivative. More...
 
void setU (typename JLANG::JClass< ordinate_type >::argument_type u)
 Set derivative. More...
 
abscissa_type getX () const
 Get abscissa value. More...
 
const ordinate_typegetY () const
 Get ordinate value. More...
 
ordinate_typegetY ()
 Get ordinate value. More...
 

Protected Attributes

ordinate_type __v
 
ordinate_type __u
 
abscissa_type __x
 
ordinate_type __y
 

Detailed Description

template<class JAbscissa_t, class JOrdinate_t>
struct JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >

2D Element for spline interpolations.

Note that the internal data members needed for the calculation of the integral values are not subject to I/O, i.e. the I/O of this class is identical to that of the JElement2D class.

Definition at line 217 of file JElement.hh.

Member Typedef Documentation

◆ element_type

template<class JAbscissa_t , class JOrdinate_t >
typedef JSplineElement2D<JAbscissa_t, JOrdinate_t> JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::element_type

Definition at line 221 of file JElement.hh.

◆ abscissa_type

template<class JAbscissa_t , class JOrdinate_t >
typedef element_type::abscissa_type JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::abscissa_type

Definition at line 222 of file JElement.hh.

◆ ordinate_type

template<class JAbscissa_t , class JOrdinate_t >
typedef element_type::ordinate_type JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::ordinate_type

Definition at line 223 of file JElement.hh.

Constructor & Destructor Documentation

◆ JSplineElement2S() [1/2]

template<class JAbscissa_t , class JOrdinate_t >
JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::JSplineElement2S ( )
inline

Default constructor.

Definition at line 229 of file JElement.hh.

229  :
230  element_type(),
231  __v(getZero<ordinate_type>())
232  {}

◆ JSplineElement2S() [2/2]

template<class JAbscissa_t , class JOrdinate_t >
JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::JSplineElement2S ( typename JLANG::JClass< abscissa_type >::argument_type  x,
typename JLANG::JClass< ordinate_type >::argument_type  y 
)
inline

Constructor.

Parameters
xabscissa value
yordinate value

Definition at line 241 of file JElement.hh.

242  :
243  element_type(x, y),
244  __v(getZero<ordinate_type>())
245  {}

Member Function Documentation

◆ getIntegral()

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::getIntegral ( ) const
inline

Get integral.

Returns
integral

Definition at line 253 of file JElement.hh.

254  {
255  return __v;
256  }

◆ setIntegral()

template<class JAbscissa_t , class JOrdinate_t >
void JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::setIntegral ( typename JLANG::JClass< ordinate_type >::argument_type  v)
inline

Set integral.

Parameters
vintegral

Definition at line 264 of file JElement.hh.

265  {
266  __v = v;
267  }

◆ getU()

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::getU ( ) const
inlineinherited

Get derivative.

Returns
derivative

Definition at line 187 of file JElement.hh.

188  {
189  return __u;
190  }

◆ setU()

template<class JAbscissa_t , class JOrdinate_t >
void JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::setU ( typename JLANG::JClass< ordinate_type >::argument_type  u)
inlineinherited

Set derivative.

Parameters
uderivative

Definition at line 198 of file JElement.hh.

199  {
200  __u= u;
201  }

◆ getX()

template<class JAbscissa_t , class JOrdinate_t >
abscissa_type JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::getX ( ) const
inlineinherited

Get abscissa value.

Returns
abscissa value

Definition at line 77 of file JElement.hh.

78  {
79  return __x;
80  }

◆ getY() [1/2]

template<class JAbscissa_t , class JOrdinate_t >
const ordinate_type& JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::getY ( ) const
inlineinherited

Get ordinate value.

Returns
ordinate value

Definition at line 88 of file JElement.hh.

89  {
90  return __y;
91  }

◆ getY() [2/2]

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type& JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::getY ( )
inlineinherited

Get ordinate value.

Returns
ordinate value

Definition at line 99 of file JElement.hh.

100  {
101  return __y;
102  }

Member Data Documentation

◆ __v

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JSplineElement2S< JAbscissa_t, JOrdinate_t >::__v
protected

Definition at line 271 of file JElement.hh.

◆ __u

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::__u
protectedinherited

Definition at line 205 of file JElement.hh.

◆ __x

template<class JAbscissa_t , class JOrdinate_t >
abscissa_type JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::__x
protectedinherited

Definition at line 138 of file JElement.hh.

◆ __y

template<class JAbscissa_t , class JOrdinate_t >
ordinate_type JTOOLS::JElement2D< JAbscissa_t, JOrdinate_t >::__y
protectedinherited

Definition at line 139 of file JElement.hh.


The documentation for this struct was generated from the following file:
JTOOLS::JSplineElement2S::element_type
JSplineElement2D< JAbscissa_t, JOrdinate_t > element_type
Definition: JElement.hh:221
JTOOLS::JSplineElement2S::__v
ordinate_type __v
Definition: JElement.hh:271
JTOOLS::u
double u[N+1]
Definition: JPolint.hh:706
JTOOLS::JSplineElement2D::__u
ordinate_type __u
Definition: JElement.hh:205
JTOOLS::JElement2D::__x
abscissa_type __x
Definition: JElement.hh:138
JTOOLS::JElement2D::__y
ordinate_type __y
Definition: JElement.hh:139
JTOOLS::v
data_type v[N+1][M+1]
Definition: JPolint.hh:707