Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JTOOLS::JMultiMapTransformer< N, JArgument_t > Class Template Referenceabstract

Interface for weight application and coordinate transformation of function. More...

#include <JMultiMapTransformer.hh>

Inheritance diagram for JTOOLS::JMultiMapTransformer< N, JArgument_t >:
JLANG::JClonable< JClonable_t, JDerived_t > JIO::JSerialisable JPHYSICS::JPD0Transformer_t< JArgument_t > JPHYSICS::JPDFTransformer< 2, JArgument_t > JPHYSICS::JPDFTransformer< 3, JArgument_t > JPHYSICS::JPDFTransformer< 4, JArgument_t > JPHYSICS::JPDFTransformer< 5, JArgument_t > JPHYSICS::JPDFTransformer_t< JArgument_t > JPHYSICS::JPDGTransformer_t< JArgument_t > JTOOLS::JMultiMapTransformer< N, JArgument_t >::JMultiMapDefaultTransformer

Classes

class  JMultiMapDefaultTransformer
 Default implementation of weight application and coordinate transformation of function. More...
 

Public Types

typedef JMultiMapTransformer< N, JArgument_t > multimaptransformer_type
 
typedef JClonable< multimaptransformer_type >::clone_type clone_type
 
typedef JArgument_t argument_type
 
typedef JArray< N, argument_typearray_type
 
typedef const JArray< N, const argument_typeconst_array_type
 

Public Member Functions

virtual argument_type putXn (const_array_type &buffer, const argument_type xn) const =0
 Evaluate xn value as a function of {x0, ..., xn-1}.
 
virtual argument_type getXn (const_array_type &buffer, const argument_type xn) const =0
 Evaluate xn value as a function of {x0, ..., xn-1}.
 
virtual double getWeight (const_array_type &buffer) const =0
 Weight function.
 
template<class ... Args>
double getWeight (const argument_type x, const Args &...args) const
 Weight function.
 
virtual clone_type clone () const override
 Get clone of this object.
 
virtual JReaderread (JReader &in)=0
 Read from input.
 
virtual JWriterwrite (JWriter &out) const =0
 Write to output.
 

Static Public Member Functions

static const JMultiMapTransformergetDefaultTransformer ()
 Get default transformer.
 
static JMultiMapTransformergetClone ()
 Get clone of default transformer.
 

Detailed Description

template<unsigned int N, class JArgument_t>
class JTOOLS::JMultiMapTransformer< N, JArgument_t >

Interface for weight application and coordinate transformation of function.

The template parameters refer to the dimension of the map and the data type of the argument, respectively.

This class extends the JClonable and JSerialisable interfaces.

Definition at line 33 of file JMultiMapTransformer.hh.

Member Typedef Documentation

◆ multimaptransformer_type

template<unsigned int N, class JArgument_t >
JMultiMapTransformer<N, JArgument_t> JTOOLS::JMultiMapTransformer< N, JArgument_t >::multimaptransformer_type

Definition at line 39 of file JMultiMapTransformer.hh.

◆ clone_type

template<unsigned int N, class JArgument_t >
JClonable<multimaptransformer_type>::clone_type JTOOLS::JMultiMapTransformer< N, JArgument_t >::clone_type

Definition at line 41 of file JMultiMapTransformer.hh.

◆ argument_type

template<unsigned int N, class JArgument_t >
JArgument_t JTOOLS::JMultiMapTransformer< N, JArgument_t >::argument_type

Definition at line 42 of file JMultiMapTransformer.hh.

◆ array_type

template<unsigned int N, class JArgument_t >
JArray<N, argument_type> JTOOLS::JMultiMapTransformer< N, JArgument_t >::array_type

Definition at line 43 of file JMultiMapTransformer.hh.

◆ const_array_type

template<unsigned int N, class JArgument_t >
const JArray<N, const argument_type> JTOOLS::JMultiMapTransformer< N, JArgument_t >::const_array_type

Definition at line 44 of file JMultiMapTransformer.hh.

Member Function Documentation

◆ putXn()

◆ getXn()

◆ getWeight() [1/2]

◆ getWeight() [2/2]

template<unsigned int N, class JArgument_t >
template<class ... Args>
double JTOOLS::JMultiMapTransformer< N, JArgument_t >::getWeight ( const argument_type x,
const Args &... args ) const
inline

Weight function.

Parameters
xfirst abscissa values
argscomma seperated list of remaining abscissa values
Returns
weight

Definition at line 84 of file JMultiMapTransformer.hh.

85 {
86 return getWeight(array_type(x, args...));
87 }
virtual double getWeight(const_array_type &buffer) const =0
Weight function.
JArray< N, argument_type > array_type

◆ getDefaultTransformer()

template<unsigned int N, class JArgument_t >
static const JMultiMapTransformer & JTOOLS::JMultiMapTransformer< N, JArgument_t >::getDefaultTransformer ( )
inlinestatic

Get default transformer.

Returns
default transformer

Definition at line 101 of file JMultiMapTransformer.hh.

102 {
103 static const JMultiMapDefaultTransformer transformer;
104
105 return transformer;
106 }

◆ getClone()

template<unsigned int N, class JArgument_t >
static JMultiMapTransformer * JTOOLS::JMultiMapTransformer< N, JArgument_t >::getClone ( )
inlinestatic

Get clone of default transformer.

Returns
pointer to newly created transformer

Definition at line 114 of file JMultiMapTransformer.hh.

115 {
116 return new JMultiMapDefaultTransformer();
117 }

◆ clone()

template<class JClonable_t , class JDerived_t >
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited

◆ read()

◆ write()


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