26 #ifndef ANTIOCH_CONVERTER_H
27 #define ANTIOCH_CONVERTER_H
46 template <
typename T =
double>
60 template <
typename P = T>
61 const P
geta()
const {
return (P)
a;}
63 template <
typename P = T>
64 const P
getb()
const {
return (P)
b;}
69 friend std::ostream &operator<< (std::ostream &out, const Converter<T> & rhs)
71 out <<
"(" << rhs.geta() <<
"," << rhs.getb() <<
")";
106 template <
typename P>
118 template <
typename P>
121 template <
typename P>
124 template <
typename P>
127 template <
typename P>
130 template <
typename P>
133 template <
typename P>
136 template <
typename P>
T a
Two double for a multiplicative and translationnal part of a coefficient.
bool operator==(const Converter< P > &rhs) const
Comparison operator, equal if the two values are equal.
Converter operator/(const Converter< P > &rhs) const
Dividing operator, same operations as Converter &operator/=(const Converter&)
Converter & operator*=(const Converter< P > &rhs)
Multiplying operator.
Converter()
Default constructor, defaults values are (1.,0.)
const ANTIOCH_AUTO(StateType) EuckenThermalConductivity< ThermoEvaluator > return trans(s, mu_s)
const P geta() const
Multiplicative factor getter.
Converter operator*(const Converter< P > &rhs) const
Multiplying operator, same operations as Converter &operator*=(const Converter&)
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > constant_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex, const Scalar &value)
Converter & operator/=(const Converter< P > &rhs)
Dividing operator.
void set_zero(_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a)
Class to deal with the conversion between units.
const P getb() const
Translationnal factor getter.
Converter & operator+=(const Converter< P > &rhs)
Adding operator.
bool operator!=(const Converter< P > &rhs) const
Comparison operator, not equal is not "equal".
The parameters are reduced parameters.
Converter(const Converter< P > &rhs)
Copy constructor, uses Converter & operator=(const Converter&)
~Converter()
Default constructor.
Converter & operator=(const Converter< P > &rhs)
Assignement operator, equalize the two values.
void clear()
Set the values to (1.,0.)