#include <SkirtUnitDef.hpp>
Public Member Functions | |
SkirtUnitDef () | |
![]() | |
UnitDef () | |
UnitDef (const UnitDef &UnitDef)=default | |
std::tuple< double, double, double > | def (string qty, string unit) const |
bool | has (string qty) const |
bool | has (string qty, string unit) const |
double | in (string qty, string unit, double value) const |
UnitDef & | operator= (const UnitDef &)=default |
double | out (string qty, string unit, double value) const |
string | unit (string qty, string unitSystem, string unitStyle=string()) const |
Additional Inherited Members | |
![]() | |
void | addDefaultUnit (string unitSystem, string quantity, string unit) |
void | addUnit (string quantity, string unit, double factor, double power=1., double offset=0.) |
The SkirtUnitDef class defines the units and unit systems used by SKIRT for input/output purposes (internally, all quantities in SKIRT are represented in SI units).
SkirtUnitDef::SkirtUnitDef | ( | ) |
The default constructor loads the unit and unit system definitions.