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>
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 | |
GSLHelper & | operator= (const GSLHelper &)=delete |
The assignment operator is private and must never be called. More... | |
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.
|
privatedelete |
The assignment operator is private and must never be called.
In fact, it should not even be implemented.