Class converts between different unit types.
More...
#include <unitconverter.h>
Class converts between different unit types.
Definition at line 88 of file unitconverter.h.
◆ convert() [1/9]
constexpr double votca::tools::UnitConverter::convert |
( |
const ChargeUnit & |
from, |
|
|
const ChargeUnit & |
to |
|
) |
| const |
|
inlineconstexprnoexcept |
◆ convert() [2/9]
◆ convert() [3/9]
constexpr double votca::tools::UnitConverter::convert |
( |
const EnergyUnit & |
from, |
|
|
const EnergyUnit & |
to |
|
) |
| const |
|
inlineconstexprnoexcept |
◆ convert() [4/9]
constexpr double votca::tools::UnitConverter::convert |
( |
const ForceUnit & |
from, |
|
|
const ForceUnit & |
to |
|
) |
| const |
|
inlineconstexprnoexcept |
◆ convert() [5/9]
constexpr double votca::tools::UnitConverter::convert |
( |
const MassUnit & |
from, |
|
|
const MassUnit & |
to |
|
) |
| const |
|
inlineconstexprnoexcept |
◆ convert() [6/9]
◆ convert() [7/9]
◆ convert() [8/9]
constexpr double votca::tools::UnitConverter::convert |
( |
const TimeUnit & |
from, |
|
|
const TimeUnit & |
to |
|
) |
| const |
|
inlineconstexprnoexcept |
◆ convert() [9/9]
◆ getChargeValue_()
constexpr double votca::tools::UnitConverter::getChargeValue_ |
( |
const ChargeUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
All charge in terms of elementary charge e.
Definition at line 181 of file unitconverter.h.
◆ getDistanceValue_()
constexpr double votca::tools::UnitConverter::getDistanceValue_ |
( |
const DistanceUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
◆ getEnergyValue_()
constexpr double votca::tools::UnitConverter::getEnergyValue_ |
( |
const EnergyUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
◆ getForceValue_()
constexpr double votca::tools::UnitConverter::getForceValue_ |
( |
const ForceUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
Default force unit is the kilojoules per nanometer.
Definition at line 207 of file unitconverter.h.
◆ getMassValue_()
constexpr double votca::tools::UnitConverter::getMassValue_ |
( |
const MassUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
All masses with respect to atomic mass units.
Definition at line 126 of file unitconverter.h.
◆ getMolarEnergyValue_()
constexpr double votca::tools::UnitConverter::getMolarEnergyValue_ |
( |
const MolarEnergyUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
◆ getMolarForceValue_()
constexpr double votca::tools::UnitConverter::getMolarForceValue_ |
( |
const MolarForceUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
Default force unit is the kilojoules per mole nanometer.
Definition at line 228 of file unitconverter.h.
◆ getTimeValue_()
constexpr double votca::tools::UnitConverter::getTimeValue_ |
( |
const TimeUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
◆ getVelocityValue_()
constexpr double votca::tools::UnitConverter::getVelocityValue_ |
( |
const VelocityUnit & |
enum_type | ) |
const |
|
inlineconstexprprivatenoexcept |
All velocities in terms of nanometers per picosecond.
Definition at line 192 of file unitconverter.h.
The documentation for this class was generated from the following file: