75 void undef(
bool val =
true);
std::string format(OutputFormat form) const
Generic output formating mtehod.
bool is_def() const
Return true if the unit is defined.
std::string format_text() const
std::vector< int > exponents_
static UnitSI & Pa()
Returns Pascal.
UnitOrder
Values determine positions of exponents in exponents_ vector.
std::string format_latex() const
friend UnitSI operator/(const UnitSI &a, const UnitSI &b)
Proportion of two units.
UnitSI operator*(const UnitSI &a, const UnitSI &b)
Product of two units.
UnitSI operator/(const UnitSI &a, const UnitSI &b)
Proportion of two units.
static UnitSI & W()
Returns Watt.
static UnitSI & J()
Returns Joule.
friend UnitSI operator*(const UnitSI &a, const UnitSI &b)
Product of two units.
UnitSI & m(int exp=1)
Methods set values of exponents for SI units with similar name.
Class for representation SI units of Fields.
UnitSI & md(int exp=-1)
Method sets value of exponent for m^{-d}, where d is dimension of region.
static UnitSI & dimensionless()
Returns dimensionless unit.
void undef(bool val=true)