herwig is hosted by Hepforge, IPPP Durham
Herwig  7.2.1
Herwig::GSLHelper< V, T > Struct Template Reference

from, which can then be used by the GSL algorithms that need a pointer to a function and don't know about Units. More...

#include <GSLHelper.h>

Inheritance diagram for Herwig::GSLHelper< V, T >:

Public Types

typedef T ArgType
 Typedef for Agrument type.
 
typedef V ValType
 Typedef for Value type.
 

Public Member Functions

 GSLHelper ()
 Constructor.
 
virtual ~GSLHelper ()
 Destructor.
 
virtual V vUnit () const
 Value type.
 
virtual T aUnit () const
 Agrument type.
 

Private Member Functions

GSLHelperoperator= (const GSLHelper &)=delete
 The assignment operator is private and must never be called. More...
 

Detailed Description

template<typename V, typename T>
struct Herwig::GSLHelper< V, T >

from, which can then be used by the GSL algorithms that need a pointer to a function and don't know about Units.

This class defines the necessary typedefs and forces you to define the "()" operator. In addition it implements the vUnit and aUnit static methods which can be overwritten if the corresponding base unit is too far from the actual used unit. This removes the numerical problem that arises once the base unit is several orders of magnitude away from the used unit.

Definition at line 31 of file GSLHelper.h.

Member Function Documentation

◆ operator=()

template<typename V, typename T>
GSLHelper& Herwig::GSLHelper< V, T >::operator= ( const GSLHelper< V, T > &  )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.


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