The Unit class is used to perform unit conversions.
- Note
- Unit conversion factors depend on the fundamental physical constants, hence each Unit object refers to a particular constants system. To ensure consistent use of Unit objects they can only be created using an object of UnitFactory class.
- See also
- UnitFactory
◆ ~Unit()
◆ from()
double mpqc::Unit::from |
( |
const Unit & |
u | ) |
const |
The conversion factor from u
to this.
◆ from_atomic_units()
double mpqc::Unit::from_atomic_units |
( |
| ) |
const |
The conversion factor from the corresponding atomic unit to this.
◆ to()
double mpqc::Unit::to |
( |
const Unit & |
u | ) |
const |
The conversion factor from this to u
.
◆ to_atomic_units()
double mpqc::Unit::to_atomic_units |
( |
| ) |
const |
The conversion factor from this to the corresponding atomic unit.
◆ to_string
std::string to_string |
( |
const Unit & |
unit | ) |
|
|
friend |
◆ UnitFactory
The documentation for this class was generated from the following files: