26 #ifndef ANTIOCH_SI_PREFIX_H
27 #define ANTIOCH_SI_PREFIX_H
51 template <
typename T =
double>
56 SIPrefixes(
const std::string &str,
const std::string & na,
const T &num):
62 template <
typename P = T>
93 if(
this == &rhs){
return *
this;}
bool operator!=(const SIPrefixes< P > &rhs) const
Comparison operator, not equal is not "equal".
const std::string name() const
Name getter.
bool operator==(const SIPrefixes< P > &rhs) const
Comparison operator, equal if values are equal.
std::string _symbol
Two std::strings for the symbol and the name.
const P value() const
Value getter.
void init_clone(T &output, const T &example)
T _value
A double for the value.
SIPrefixes & operator=(const SIPrefixes< P > &rhs)
Assignement operator, copy value and std::string.
~SIPrefixes()
Default destructor.
SIPrefixes()
Default constructor, never uninitialize this stuff.
SIPrefixes(const std::string &str, const std::string &na, const T &num)
Default constructor, a std::string and a value.
The parameters are reduced parameters.
const std::string symbol() const
Symbol getter.