Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JMATH::JCalculator< T, N > Struct Template Reference

Auxiliary class for arithmetic operations on objects. More...

#include <JCalculator.hh>

Inheritance diagram for JMATH::JCalculator< T, N >:

Public Member Functions

JCalculatorset (const T &value)
 Set calculator value.
 

Static Public Attributes

static JCalculator calculator
 Calculator.
 

Detailed Description

template<class T, int N = 0>
struct JMATH::JCalculator< T, N >

Auxiliary class for arithmetic operations on objects.

Definition at line 18 of file JCalculator.hh.

Member Function Documentation

◆ set()

template<class T , int N = 0>
JCalculator & JMATH::JCalculator< T, N >::set ( const T & value)
inline

Set calculator value.

Parameters
valuevalue
Returns
this calculator

Definition at line 27 of file JCalculator.hh.

28 {
29 static_cast<T&>(*this) = value;
30
31 return *this;
32 }

Member Data Documentation

◆ calculator

template<class T , int N>
JCalculator< T, N > JMATH::JCalculator< T, N >::calculator
static

Calculator.

Definition at line 34 of file JCalculator.hh.


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