Jpp  16.0.2
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
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_type
const_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}. More...
 
virtual argument_type getXn (const_array_type &buffer, const argument_type xn) const =0
 Evaluate xn value as a function of {x0, ..., xn-1}. More...
 
virtual double getWeight (const_array_type &buffer) const =0
 Weight function. More...
 
template<class... Args>
double getWeight (const argument_type x, const Args &...args) const
 Weight function. More...
 
virtual clone_type clone () const override
 Get clone of this object. More...
 
virtual JReaderread (JReader &in)=0
 Read from input. More...
 
virtual JWriterwrite (JWriter &out) const =0
 Write to output. More...
 

Static Public Member Functions

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

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

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

Definition at line 39 of file JMultiMapTransformer.hh.

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

Definition at line 41 of file JMultiMapTransformer.hh.

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

Definition at line 42 of file JMultiMapTransformer.hh.

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

Definition at line 43 of file JMultiMapTransformer.hh.

template<unsigned int N, class JArgument_t>
typedef 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

template<unsigned int N, class JArgument_t>
virtual argument_type JTOOLS::JMultiMapTransformer< N, JArgument_t >::putXn ( const_array_type buffer,
const argument_type  xn 
) const
pure virtual
template<unsigned int N, class JArgument_t>
virtual argument_type JTOOLS::JMultiMapTransformer< N, JArgument_t >::getXn ( const_array_type buffer,
const argument_type  xn 
) const
pure virtual
template<unsigned int N, class JArgument_t>
virtual double JTOOLS::JMultiMapTransformer< N, JArgument_t >::getWeight ( const_array_type buffer) const
pure virtual
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  }
JArray< N, argument_type > array_type
virtual double getWeight(const_array_type &buffer) const =0
Weight function.
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  }
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  }
template<class JClonable_t, class JDerived_t = JNullType>
virtual clone_type JLANG::JClonable< JClonable_t, JDerived_t >::clone ( ) const
inlineoverridevirtualinherited
virtual JReader& JIO::JSerialisable::read ( JReader in)
pure virtualinherited
virtual JWriter& JIO::JSerialisable::write ( JWriter out) const
pure virtualinherited

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