SI
2.5.4
A header only c++ library that provides type safety and user defined literals for handling physical values defined in the International System of Units.
SI
angular_frequency.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
angle.h
"
15
#include "
detail/operator_helpers.h
"
16
#include "
detail/unit.h
"
17
#include "
frequency.h
"
18
#include "
time.h
"
19
20
namespace
SI
{
21
23
template
<
typename
_type,
typename
_ratio>
24
using
angular_frequency_t
=
detail::unit_t<'w', std::ratio<1>
, _type, _ratio>;
25
26
namespace
detail {
27
BUILD_UNIT_FROM_MULTIPLICATION
(
angular_frequency_t
,
angle_t
,
frequency_t
)
28
BUILD_UNIT_FROM_DIVISION
(
angular_frequency_t
,
angle_t
,
time_t
)
29
}
// namespace detail
30
}
// namespace SI
angle.h
frequency.h
SI::detail::BUILD_UNIT_FROM_DIVISION
BUILD_UNIT_FROM_DIVISION(electric_conductance_t, electric_current_t, electric_potential_t) template< typename _type
SI
Definition:
absorbed_dose.h:18
operator_helpers.h
BUILD_UNIT_FROM_MULTIPLICATION
#define BUILD_UNIT_FROM_MULTIPLICATION(RESULTING_UNIT, UNIT_LHS, UNIT_RHS)
Definition:
operator_helpers.h:54
SI::detail::unit_t
base template class for holding values of type _type to be multiplied with a ratio _ratio
Definition:
unit.h:51
time.h
unit.h
Generated by
1.9.1