Parses a shared format spec used by UnitVector, UnitMap, ConstUnitMap.
More...
#include <valkyrie/util/eigenunit/Common.h>
|
| template<typename ParseContext> |
| constexpr auto | parse (ParseContext &ctx) |
| | Parses the format specifier string.
|
| std::string | format_value (double v) const |
| | Formats a single double value according to the spec.
|
|
|
int | precision = -1 |
| | Desired decimal precision. -1 for default.
|
|
bool | values_only = false |
| | If true, only values are printed (no unit abbreviations).
|
Parses a shared format spec used by UnitVector, UnitMap, ConstUnitMap.
◆ format_value()
| std::string valor::EigenUnit::detail::UnitFormatSpec::format_value |
( |
double | v | ) |
const |
|
inline |
Formats a single double value according to the spec.
- Parameters
-
- Returns
- The formatted string.
◆ parse()
template<typename ParseContext>
| auto valor::EigenUnit::detail::UnitFormatSpec::parse |
( |
ParseContext & | ctx | ) |
|
|
inlineconstexpr |
Parses the format specifier string.
- Parameters
-
- Returns
- Iterator to the end of the format spec.
The documentation for this struct was generated from the following file:
- src/main/include/valkyrie/util/eigenunit/Common.h