Jpp test-rotations-old
the software that should make you happy
Loading...
Searching...
No Matches
JTOOLS::JSplineFunctionalMap< JKey_t, JValue_t, JDistance_t > Struct Template Reference

Type definition of a spline interpolation based on a JMap implementation. More...

#include <JFunctionalMap_t.hh>

Inheritance diagram for JTOOLS::JSplineFunctionalMap< JKey_t, JValue_t, JDistance_t >:
JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t > JTOOLS::JFunction< JKey_t, JResult_t > JTOOLS::JFunctional< JKey_t, JResult_t >

Public Types

typedef JMap_t< JKey_t, JValue_t, JDistance_t > collection_type
 
typedef JFunction< JKey_t, JResult_t > function_type
 
typedef collection_type::abscissa_type abscissa_type
 
typedef collection_type::ordinate_type ordinate_type
 
typedef collection_type::value_type value_type
 
typedef collection_type::distance_type distance_type
 
typedef collection_type::const_iterator const_iterator
 
typedef collection_type::const_reverse_iterator const_reverse_iterator
 
typedef collection_type::iterator iterator
 
typedef collection_type::reverse_iterator reverse_iterator
 
typedef function_type::argument_type argument_type
 
typedef function_type::result_type result_type
 
typedef function_type::JExceptionHandler exceptionhandler_type
 
typedef JResultType< ordinate_type >::result_type data_type
 
typedef JSplineFunction1D< JSplineElement2D< argument_type, data_type >, JMapCollection< JMap_t >::template collection_type, result_typeJSplineFunction1D_t
 
typedef JFunctional< JKey_t, JResult_t > functional_type
 
typedef functional_type::JExceptionHandler JExceptionHandler
 
typedef JSupervisor supervisor_type
 

Public Member Functions

virtual result_type evaluate (const argument_type *pX) const override
 Recursive interpolation method implementation.
 
const JSupervisor & getSupervisor () const
 Get supervisor.
 
const JExceptionHandler & getExceptionHandler () const override
 Get exception handler.
 
void setExceptionHandler (const JSupervisor &supervisor)
 Set the supervisor for handling of exceptions.
 

Static Public Member Functions

static result_type getValue (const JFunctional &function, const argument_type *pX)
 Recursive function value evaluation.
 
static JClass< result_type >::argument_type getValue (typename JClass< result_type >::argument_type value, const argument_type *pX)
 Termination of recursive function value evaluation.
 

Protected Attributes

JSupervisor __supervisor
 

Private Member Functions

virtual void do_compile () override
 Function compilation.
 

Private Attributes

JSplineFunction1D_t buffer
 

Detailed Description

template<class JKey_t, class JValue_t, class JDistance_t = JDistance<JKey_t>>
struct JTOOLS::JSplineFunctionalMap< JKey_t, JValue_t, JDistance_t >

Type definition of a spline interpolation based on a JMap implementation.

Definition at line 28 of file JFunctionalMap_t.hh.

Member Typedef Documentation

◆ collection_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
JMap_t<JKey_t, JValue_t, JDistance_t> JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::collection_type
inherited

Definition at line 790 of file JSpline.hh.

◆ function_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
JFunction<JKey_t, JResult_t> JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::function_type
inherited

Definition at line 791 of file JSpline.hh.

◆ abscissa_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::abscissa_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::abscissa_type
inherited

Definition at line 793 of file JSpline.hh.

◆ ordinate_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::ordinate_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::ordinate_type
inherited

Definition at line 794 of file JSpline.hh.

◆ value_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::value_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::value_type
inherited

Definition at line 795 of file JSpline.hh.

◆ distance_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::distance_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::distance_type
inherited

Definition at line 796 of file JSpline.hh.

◆ const_iterator

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::const_iterator JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::const_iterator
inherited

Definition at line 798 of file JSpline.hh.

◆ const_reverse_iterator

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::const_reverse_iterator JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::const_reverse_iterator
inherited

Definition at line 799 of file JSpline.hh.

◆ iterator

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::iterator JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::iterator
inherited

Definition at line 800 of file JSpline.hh.

◆ reverse_iterator

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
collection_type::reverse_iterator JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::reverse_iterator
inherited

Definition at line 801 of file JSpline.hh.

◆ argument_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
function_type::argument_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::argument_type
inherited

Definition at line 803 of file JSpline.hh.

◆ result_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
function_type::result_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::result_type
inherited

Definition at line 804 of file JSpline.hh.

◆ exceptionhandler_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
function_type::JExceptionHandler JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::exceptionhandler_type
inherited

Definition at line 805 of file JSpline.hh.

◆ data_type

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
JResultType<ordinate_type>::result_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::data_type
inherited

Definition at line 807 of file JSpline.hh.

◆ JSplineFunction1D_t

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
JSplineFunction1D<JSplineElement2D<argument_type, data_type>, JMapCollection<JMap_t>::template collection_type, result_type> JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::JSplineFunction1D_t
inherited

Definition at line 810 of file JSpline.hh.

◆ functional_type

JFunctional<JKey_t, JResult_t> JTOOLS::JFunction< JKey_t, JResult_t >::functional_type
inherited

Definition at line 232 of file JFunctional.hh.

◆ JExceptionHandler

functional_type::JExceptionHandler JTOOLS::JFunction< JKey_t, JResult_t >::JExceptionHandler
inherited

Definition at line 235 of file JFunctional.hh.

◆ supervisor_type

JSupervisor JTOOLS::JFunction< JKey_t, JResult_t >::supervisor_type
inherited

Definition at line 237 of file JFunctional.hh.

Member Function Documentation

◆ evaluate()

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
virtual result_type JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::evaluate ( const argument_type * pX) const
inlineoverridevirtualinherited

Recursive interpolation method implementation.

Parameters
pXpointer to abscissa values
Returns
function value

Implements JTOOLS::JFunctional< JKey_t, JResult_t >.

Definition at line 826 of file JSpline.hh.

827 {
828 const argument_type x = *pX;
829
830 ++pX; // next argument value
831
832 const_iterator p = this->begin();
833
834 for (typename JSplineFunction1D_t::iterator q = buffer.begin(); q != buffer.end(); ++q, ++p) {
836 }
837
838 buffer.compile();
839
840 return buffer(x);
841 }
static result_type getValue(const JFunctional &function, const argument_type *pX)
Recursive function value evaluation.
collection_type::iterator iterator
Definition JSpline.hh:746
function_type::argument_type argument_type
Definition JSpline.hh:803
JSplineFunction1D_t buffer
Definition JSpline.hh:858
collection_type::const_iterator const_iterator
Definition JSpline.hh:798

◆ do_compile()

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
virtual void JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::do_compile ( )
inlineoverrideprivatevirtualinherited

Function compilation.

Definition at line 848 of file JSpline.hh.

849 {
850 buffer.clear();
851
852 for (iterator i = this->begin(); i != this->end(); ++i) {
853 buffer.put(i->getX(), data_type());
854 }
855 }
JResultType< ordinate_type >::result_type data_type
Definition JSpline.hh:807
collection_type::iterator iterator
Definition JSpline.hh:800

◆ getSupervisor()

const JSupervisor & JTOOLS::JFunction< JKey_t, JResult_t >::getSupervisor ( ) const
inlineinherited

Get supervisor.

Returns
supervisor

Definition at line 290 of file JFunctional.hh.

291 {
292 return __supervisor;
293 }

◆ getExceptionHandler()

const JExceptionHandler & JTOOLS::JFunction< JKey_t, JResult_t >::getExceptionHandler ( ) const
inlineoverridevirtualinherited

Get exception handler.

Returns
exception handler

Implements JTOOLS::JFunctional< JKey_t, JResult_t >.

Definition at line 301 of file JFunctional.hh.

302 {
303 return *__supervisor.handler;
304 }

◆ setExceptionHandler()

void JTOOLS::JFunction< JKey_t, JResult_t >::setExceptionHandler ( const JSupervisor & supervisor)
inlineinherited

Set the supervisor for handling of exceptions.

Parameters
supervisorsupervisor

Definition at line 312 of file JFunctional.hh.

313 {
314 this->__supervisor = supervisor;
315 }

◆ getValue() [1/2]

static result_type JTOOLS::JFunctional< JKey_t, JResult_t >::getValue ( const JFunctional< JKey_t, JResult_t > & function,
const argument_type * pX )
inlinestaticinherited

Recursive function value evaluation.

Parameters
functionfunction
pXpointer to abscissa values

Definition at line 103 of file JFunctional.hh.

105 {
106 return function.evaluate(pX);
107 }

◆ getValue() [2/2]

static JClass< result_type >::argument_type JTOOLS::JFunctional< JKey_t, JResult_t >::getValue ( typename JClass< result_type >::argument_type value,
const argument_type * pX )
inlinestaticinherited

Termination of recursive function value evaluation.

Parameters
valueresult
pXpointer to abscissa values

Definition at line 117 of file JFunctional.hh.

119 {
120 return value;
121 }

Member Data Documentation

◆ buffer

template<class JKey_t , class JValue_t , template< class, class, class > class JMap_t, class JResult_t , class JDistance_t = JDistance<JKey_t>>
JSplineFunction1D_t JTOOLS::JSplineMap< JKey_t, JValue_t, JMap_t, JResult_t, JDistance_t >::buffer
mutableprivateinherited

Definition at line 858 of file JSpline.hh.

◆ __supervisor

JSupervisor JTOOLS::JFunction< JKey_t, JResult_t >::__supervisor
protectedinherited

Definition at line 318 of file JFunctional.hh.


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