Jpp 19.3.0-rc.3
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 157 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 158 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 159 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 165 of file JElement.hh.

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

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

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

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

190 {
191 return __u;
192 }

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

201 {
202 __u= u;
203 }

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

80 {
81 return __x;
82 }
abscissa_type __x
Definition JElement.hh:140

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

91 {
92 return __y;
93 }
ordinate_type __y
Definition JElement.hh:141

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

102 {
103 return __y;
104 }

Member Data Documentation

◆ __u

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

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


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