Jpp 20.0.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t > Struct Template Reference

2D Element for spline interpolations. More...

#include <JElement.hh>

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

Public Types

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

Public Member Functions

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

Protected Attributes

ordinate_type __u
 
abscissa_type __x
 
ordinate_type __y
 

Detailed Description

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

2D Element for spline interpolations.

Note that the internal data members needed for the calculation of the 2nd derivatives 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 770 of file JSpline.hh.

Member Typedef Documentation

◆ element_type

template<class JAbscissa_t , class JOrdinate_t >
JElement2D<JAbscissa_t, JOrdinate_t> JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::element_type

Definition at line 158 of file JElement.hh.

◆ abscissa_type

template<class JAbscissa_t , class JOrdinate_t >
element_type::abscissa_type JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::abscissa_type

Definition at line 159 of file JElement.hh.

◆ ordinate_type

template<class JAbscissa_t , class JOrdinate_t >
element_type::ordinate_type JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::ordinate_type

Definition at line 160 of file JElement.hh.

Constructor & Destructor Documentation

◆ JSplineElement2D() [1/2]

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

Default constructor.

Definition at line 166 of file JElement.hh.

166 :
167 element_type(),
168 __u(getZero<ordinate_type>())
169 {}
JElement2D< JAbscissa_t, JOrdinate_t > element_type
Definition JElement.hh:158

◆ JSplineElement2D() [2/2]

template<class JAbscissa_t , class JOrdinate_t >
JTOOLS::JSplineElement2D< JAbscissa_t, JOrdinate_t >::JSplineElement2D ( 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 178 of file JElement.hh.

179 :
180 element_type(x, y),
181 __u(getZero<ordinate_type>())
182 {}

Member Function Documentation

◆ getU()

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

Get derivative.

Returns
derivative

Definition at line 190 of file JElement.hh.

191 {
192 return __u;
193 }

◆ setU()

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

Set derivative.

Parameters
uderivative

Definition at line 201 of file JElement.hh.

202 {
203 __u= u;
204 }

◆ 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 80 of file JElement.hh.

81 {
82 return __x;
83 }
abscissa_type __x
Definition JElement.hh:141

◆ 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 91 of file JElement.hh.

92 {
93 return __y;
94 }
ordinate_type __y
Definition JElement.hh:142

◆ 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 102 of file JElement.hh.

103 {
104 return __y;
105 }

Member Data Documentation

◆ __u

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

Definition at line 208 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 141 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 142 of file JElement.hh.


The documentation for this struct was generated from the following files: