units
Use physical dimensions at compile-time or run-time.
|
Enumeration of offsets, one for each base dimension in class dim. More...
#include <dim-base-off.hpp>
Public Types | |
enum | off : T { length, mass, time, charge, temperature } |
C-style enumeration of offsets. More... | |
Public Member Functions | |
constexpr | operator off () const |
Automatically convert instance to type of enum. More... | |
constexpr | basic_dim_base_off (off os) |
Allow construction of constant-expression instance. More... | |
Public Attributes | |
off | offset |
Allow declaration of meaningful instance of dim_base_off. More... | |
Static Public Attributes | |
static constexpr T | num_offs = 5 |
Number of offsets. More... | |
static constexpr off const | array [num_offs] |
Array of enumerated offsets for iterating. More... | |
static constexpr char const *const | sym [num_offs] |
Array of basis-dimension symbols, one for each offset. More... | |
Enumeration of offsets, one for each base dimension in class dim.
Definition at line 18 of file dim-base-off.hpp.
enum vnix::units::basic_dim_base_off::off : T |
C-style enumeration of offsets.
Definition at line 20 of file dim-base-off.hpp.
|
inline |
Allow construction of constant-expression instance.
Definition at line 34 of file dim-base-off.hpp.
|
inline |
Automatically convert instance to type of enum.
Definition at line 31 of file dim-base-off.hpp.
|
static |
Array of enumerated offsets for iterating.
Definition at line 40 of file dim-base-off.hpp.
|
static |
Number of offsets.
Definition at line 37 of file dim-base-off.hpp.
off vnix::units::basic_dim_base_off< T >::offset |
Allow declaration of meaningful instance of dim_base_off.
Definition at line 28 of file dim-base-off.hpp.
|
static |
Array of basis-dimension symbols, one for each offset.
Definition at line 44 of file dim-base-off.hpp.