6#define DATATYPE(_name, _lengthExp, _massExp, _timeExp, _temperatureExp, _currentExp, _substanceExp, _intensityExp) \
7 namespace detail { using _name ## _dimension = dimension<_lengthExp, _massExp, _timeExp, _temperatureExp, \
8 _currentExp, _substanceExp, _intensityExp>; } \
9 template <class T> using _name ## _t = detail::quantity<detail:: _name ## _dimension, T>; \
10 using _name = _name ## _t<SIdouble>; \
11 using _name ## 2 = _name ## _t<detail::vec2<SIdouble>>; \
12 using _name ## 3 = _name ## _t<detail::vec3<SIdouble>>
28 DATATYPE(electric_current, 0, 0, 0, 0, 1, 0, 0);
29 DATATYPE(amount_of_substance, 0, 0, 0, 0, 0, 1, 0);
30 DATATYPE(luminous_intensity, 0, 0, 0, 0, 0, 0, 1);
45 DATATYPE(power_intensity, 0, 1,-3, 0, 0, 0, 0);
47 DATATYPE(electric_potential, 2, 1,-3, 0,-1, 0, 0);
48 DATATYPE(electric_charge, 0, 0, 1, 0, 1, 0, 0);
50 DATATYPE(mass_per_power, -2, 0, 3, 0, 0, 0, 0);
52 DATATYPE(specific_energy, 2, 0,-2, 0, 0, 0, 0);
54 DATATYPE(volume_per_time_squared,3, 0,-2, 0, 0, 0, 0);
58 DATATYPE(per_amount_of_substance,0, 0, 0, 0,-1, 0, 0);
#define DATATYPE(_name, _lengthExp, _massExp, _timeExp, _temperatureExp, _currentExp, _substanceExp, _intensityExp)
Definition datatypes.h:6
Internal header file (providing datatypes, classes, etc.).
Definition constants.h:12
double dimensionless
to hold a quantity without any unit, e.g. 42
Definition datatypes.h:18