64 std::string
format()
const;
73 void undef(
bool val =
true);
bool is_def() const
Return true if the unit is defined.
std::vector< int > exponents_
static UnitSI & Pa()
Returns Pascal.
UnitSI operator*(const UnitSI &a, const UnitSI &b)
Product of two units.
UnitOrder
Values determine positions of exponents in exponents_ vector.
std::string format() const
friend 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 operator/(const UnitSI &a, const UnitSI &b)
Proportion 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)