83 std::string
json()
const;
92 void undef(
bool val =
true);
119 static const std::string &
unit_symbol(
unsigned int idx);
std::string format(OutputFormat form) const
Generic output formating method.
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.
static UnitSI & one()
Returns dimensionless unit.
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.
static UnitSI & W()
Returns Watt.
static UnitSI & J()
Returns Joule.
friend UnitSI operator*(const UnitSI &a, const UnitSI &b)
Product of two units.
static const std::string & unit_symbol(unsigned int idx)
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)
The dimension dependent meter: md^y = m^(yd), where 'd' is dimension.
static UnitSI & dimensionless()
Returns dimensionless unit.
void undef(bool val=true)