A base class for quantities, defining operations that do not depend on the dimension.
More...
#include <quantity.h>
Inherited by sydevs::quantity< seconds >, sydevs::quantity< U >, and sydevs::quantity< no_units >.
|
constexpr bool | valid () const |
| Returns true if the quantity value is valid. More...
|
|
constexpr bool | finite () const |
| Returns true if the quantity value is finite. More...
|
|
constexpr int64 | multiplier () const |
| Returns the number that multiples the length precision. More...
|
|
constexpr scale | precision () const |
| Returns the length precision. More...
|
|
constexpr bool | fixed () const |
| Returns true if the quantity value has a fixed length precision. More...
|
|
A base class for quantities, defining operations that do not depend on the dimension.
◆ quantity_base() [1/7]
constexpr sydevs::quantity_base::quantity_base |
( |
| ) |
|
|
constexprprotected |
◆ quantity_base() [2/7]
constexpr sydevs::quantity_base::quantity_base |
( |
int64 |
multiplier | ) |
|
|
explicitconstexprprotected |
◆ quantity_base() [3/7]
constexpr sydevs::quantity_base::quantity_base |
( |
int64 |
multiplier, |
|
|
scale |
precision |
|
) |
| |
|
constexprprotected |
◆ quantity_base() [4/7]
constexpr sydevs::quantity_base::quantity_base |
( |
int64 |
multiplier, |
|
|
scale |
precision, |
|
|
bool |
fixed |
|
) |
| |
|
constexprprotected |
◆ quantity_base() [5/7]
constexpr sydevs::quantity_base::quantity_base |
( |
scale |
precision, |
|
|
float64 |
multiplier, |
|
|
int8 |
fixed |
|
) |
| |
|
constexprprotected |
◆ quantity_base() [6/7]
constexpr sydevs::quantity_base::quantity_base |
( |
const quantity_base & |
| ) |
|
|
constexprprotecteddefault |
◆ quantity_base() [7/7]
◆ ~quantity_base()
sydevs::quantity_base::~quantity_base |
( |
| ) |
|
|
protecteddefault |
◆ constexpr_abs() [1/2]
◆ constexpr_abs() [2/2]
constexpr int64 sydevs::quantity_base::constexpr_abs |
( |
int64 |
n | ) |
|
|
staticconstexprprotected |
◆ convert_level()
constexpr int64 sydevs::quantity_base::convert_level |
( |
int64 |
multiplier, |
|
|
int64 |
level |
|
) |
| |
|
staticconstexprprotected |
◆ convert_multiplier()
constexpr float64 sydevs::quantity_base::convert_multiplier |
( |
int64 |
multiplier | ) |
|
|
staticconstexprprotected |
◆ finite()
constexpr bool sydevs::quantity_base::finite |
( |
| ) |
const |
|
constexpr |
Returns true
if the quantity
value is finite.
◆ fixed()
constexpr bool sydevs::quantity_base::fixed |
( |
| ) |
const |
|
constexpr |
Returns true
if the quantity
value has a fixed length precision.
◆ multiplier()
constexpr int64 sydevs::quantity_base::multiplier |
( |
| ) |
const |
|
constexpr |
Returns the number that multiples the length precision.
◆ offset_multiplier()
constexpr float64 sydevs::quantity_base::offset_multiplier |
( |
float64 |
multiplier | ) |
|
|
staticconstexprprotected |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ precision()
constexpr scale sydevs::quantity_base::precision |
( |
| ) |
const |
|
constexpr |
Returns the length precision.
◆ round_multiplier()
constexpr int64 sydevs::quantity_base::round_multiplier |
( |
float64 |
multiplier | ) |
|
|
staticconstexprprotected |
◆ scale_multiplier()
◆ truncate_multiplier()
constexpr int64 sydevs::quantity_base::truncate_multiplier |
( |
float64 |
multiplier | ) |
|
|
staticconstexprprotected |
◆ valid()
constexpr bool sydevs::quantity_base::valid |
( |
| ) |
const |
|
constexpr |
Returns true
if the quantity
value is valid.
◆ fixed_
int8 sydevs::quantity_base::fixed_ |
|
protected |
◆ inf_float64
constexpr float64 sydevs::quantity_base::inf_float64 = std::numeric_limits<float64>::infinity() |
|
staticconstexprprotected |
◆ inf_int64
constexpr int64 sydevs::quantity_base::inf_int64 = std::numeric_limits<int64>::max() |
|
staticconstexprprotected |
◆ multiplier_
float64 sydevs::quantity_base::multiplier_ |
|
protected |
◆ nan_float64
constexpr float64 sydevs::quantity_base::nan_float64 = std::numeric_limits<float64>::quiet_NaN() |
|
staticconstexprprotected |
◆ nan_int64
constexpr int64 sydevs::quantity_base::nan_int64 = std::numeric_limits<int64>::min() |
|
staticconstexprprotected |
◆ precision_
scale sydevs::quantity_base::precision_ |
|
protected |
The documentation for this class was generated from the following file: