Helper type to parse quantities with SI-style suffixes.
More...
#include <settings_utils.h>
|
constexpr | metric_quantity ()=default |
|
constexpr | metric_quantity (std::size_t n) |
|
constexpr auto | n () const |
|
constexpr auto | kilo () const |
|
constexpr auto | mega () const |
|
constexpr auto | giga () const |
|
constexpr auto | tera () const |
|
constexpr auto | peta () const |
|
constexpr auto | exa () const |
|
Helper type to parse quantities with SI-style suffixes.
Intended usage:
- use boost to parse values as quantity
- access values with
q.mega()
Definition at line 123 of file settings_utils.h.
◆ metric_quantity() [1/2]
constexpr carl::settings::metric_quantity::metric_quantity |
( |
| ) |
|
|
constexprdefault |
◆ metric_quantity() [2/2]
constexpr carl::settings::metric_quantity::metric_quantity |
( |
std::size_t |
n | ) |
|
|
inlineexplicitconstexpr |
◆ exa()
constexpr auto carl::settings::metric_quantity::exa |
( |
| ) |
const |
|
inlineconstexpr |
◆ giga()
constexpr auto carl::settings::metric_quantity::giga |
( |
| ) |
const |
|
inlineconstexpr |
◆ kilo()
constexpr auto carl::settings::metric_quantity::kilo |
( |
| ) |
const |
|
inlineconstexpr |
◆ mega()
constexpr auto carl::settings::metric_quantity::mega |
( |
| ) |
const |
|
inlineconstexpr |
◆ n()
constexpr auto carl::settings::metric_quantity::n |
( |
| ) |
const |
|
inlineconstexpr |
◆ peta()
constexpr auto carl::settings::metric_quantity::peta |
( |
| ) |
const |
|
inlineconstexpr |
◆ tera()
constexpr auto carl::settings::metric_quantity::tera |
( |
| ) |
const |
|
inlineconstexpr |
◆ mN
std::size_t carl::settings::metric_quantity::mN = 0 |
|
private |
The documentation for this struct was generated from the following file: