|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <Unit.hpp>
Public 成员函数 | |
| Unit () | |
| AST_UTIL_API | Unit (StringView name) |
| Unit (StringView name, double scale, Dimension dimension) | |
| double | fromSI (double value) const |
| double | toSI (double value) const |
| double | convertTo (double value, const Unit &unit) const |
| double | convertFrom (double value, const Unit &unit) const |
| double | getScale () const |
| Dimension | dimension () const |
| const std::string & | name () const |
| EUnitKind | kind () const |
| bool | isValid () const |
| Unit | clone () const |
| Unit | invert () const |
| Unit | multiply (StringView newname, const Unit &other) const |
| Unit | divide (StringView newname, const Unit &other) const |
| Unit | pow (StringView newname, int exponent) const |
| Unit | pow (int exponent) const |
| bool | operator== (const Unit &other) const |
| bool | operator!= (const Unit &other) const |
| Unit | operator* (const Unit &other) const |
| Unit | operator/ (const Unit &other) const |
| Unit & | operator*= (const Unit &other) |
| Unit & | operator/= (const Unit &other) |
静态 Public 成员函数 | |
| static AST_UTIL_API Unit | MakeScale (StringView name, Dimension dim, double scale) |
| static AST_UTIL_API Unit | MakeAffine (StringView name, Dimension dim, double scale, double offset) |
| static AST_UTIL_API Unit | MakeLogarithmic (StringView name, Dimension dim, double reference, double factor) |
| static Unit | NaN () |
| static Unit | None () |
| static Unit | One () |
| static AST_UTIL_API Unit | Scale (double scale) |
| static Unit | Percent () |
| static Unit | Second () |
| static Unit | Minute () |
| static Unit | Hour () |
| static Unit | Day () |
| static Unit | MilliSecond () |
| static Unit | Meter () |
| static Unit | Kilometer () |
| static Unit | Centimeter () |
| static Unit | Decimeter () |
| static Unit | Millimeter () |
| static Unit | Inch () |
| static Unit | Foot () |
| static Unit | Yard () |
| static Unit | Mile () |
| static Unit | Kilogram () |
| static Unit | Gram () |
| static Unit | Milligram () |
| static Unit | Pound () |
| static Unit | Radian () |
| static Unit | Degree () |
| static Unit | ArcSecond () |
| static Unit | Newton () |
| static Unit | Ampere () |
| static Unit | Kelvin () |
| static Unit | Celsius () |
| static Unit | Fahrenheit () |
| static Unit | Rankine () |
| static Unit | Decibel () |
| static Unit | DecibelMilliwatt () |
| static Unit | DecibelWatt () |
| static Unit | Bel () |
| static Unit | CentimeterPerSecond () |
| static Unit | KilometerPerHour () |
| static Unit | MeterPerMinute () |
| static Unit | SquareMeter () |
| static Unit | SquareKilometer () |
| static Unit | SquareFoot () |
| static Unit | SquareYard () |
| static Unit | CubicMeter () |
| static Unit | Liter () |
| static Unit | Pascal () |
| static Unit | Tesla () |
| static Unit | NanoTesla () |
| static Unit | Gauss () |
Public 属性 | |
| UnitRepHandle | rep_ {} |
Protected 成员函数 | |
| Unit (double scale, Dimension dimension, const SubUnitListConst &subunits) | |
| Unit (UnitRepHandle rep) | |
单位
|
inlineprotected |
| rep | 单位表示 |
|
inlinestatic |
mole单位
厘米每秒单位
|
inline |
单位克隆
|
inline |
从指定单位下的值转换为此单位对应的值
| value | 指定单位下的值 |
| unit | 指定单位 |
|
inline |
转换为指定单位下的值
| value | 此单位对应的值 |
| unit | 指定单位 |
|
inline |
获取单位量纲
|
inline |
单位除法
| newname | 新单位名称 |
| other | 其他单位 |
|
inline |
从国际单位制转换为此单位对应的值
| value | 国际单位制下的值 |
|
inline |
获取单位缩放因子
|
inline |
是否有效单位
|
inline |
获取单位类型
|
static |
创建仿射型单位
| name | 名称 |
| dim | 量纲 |
| scale | 缩放因子 |
| offset | 偏移量 |
|
static |
创建对数型单位
| name | 名称 |
| dim | 量纲 |
| reference | 对数参考值 |
| factor | 对数因子 |
|
static |
创建乘法型单位
| name | 名称 |
| dim | 量纲 |
| scale | 缩放因子 |
|
inline |
单位乘法
| newname | 新单位名称 |
| other | 其他单位 |
|
inline |
获取单位名称
|
inline |
单位不相等运算符
| other | 其他单位 |
|
inline |
单位相等运算符
| other | 其他单位 |
|
inline |
单位幂运算
| exponent | 指数 |
|
inline |
单位幂运算
| newname | 新单位名称 |
| exponent | 指数 |
|
static |
新建无量纲单位
| scale | 缩放因子 |
|
inline |
从此单位对应的值转换为国际单位制下的值
| value | 此单位对应的值 |