OGLplus
(0.59.0)
a C++ wrapper for rendering APIs
eagine
units
unit
si
radioactivity.hpp
Go to the documentation of this file.
1
9
#ifndef EAGINE_UNITS_UNIT_SI_RADIOACTIVITY_HPP
10
#define EAGINE_UNITS_UNIT_SI_RADIOACTIVITY_HPP
11
12
#include "../../dim/radioactivity.hpp"
13
#include "
common.hpp
"
14
15
namespace
eagine::units {
16
namespace
base {
17
18
struct
count_of_decays : unit<number_of_decays, count_of_decays> {};
19
20
}
// namespace base
21
22
// si::base_unit<angle>
23
template
<>
24
struct
si::base_unit<base::number_of_decays> : base::count_of_decays {};
25
26
// count of decays
27
using
count_of_decays = unit<number_of_decays, si>;
28
29
// becquerel
30
using
becquerel = unit<radioactivity, si>;
31
32
template
<>
33
struct
name_of<becquerel> {
34
static
constexpr
const
char
mp_str[] =
"becquerel"
;
35
};
36
37
template
<>
38
struct
symbol_of<becquerel> {
39
static
constexpr
const
char
mp_str[] =
"Bq"
;
40
};
41
42
// derived
43
using
kilobecquerel = make_scaled_unit_t<scales::kilo, becquerel>;
44
using
megabecquerel = make_scaled_unit_t<scales::mega, becquerel>;
45
using
gigabecquerel = make_scaled_unit_t<scales::giga, becquerel>;
46
// TODO
47
48
}
// namespace eagine::units
49
50
#endif // EAGINE_UNITS_UNIT_SI_RADIOACTIVITY_HPP
common.hpp
Copyright © 2015-2021
Matúš Chochlík
.
<
chochlik -at -gmail.com
>
Documentation generated on Tue Apr 13 2021 by
Doxygen
(version 1.8.17).