Flecs: include/flecs/addons/cpp/mixins/units/decl.hpp Source File
Description: A fast entity component system (ECS) for C & C++

| Flecs v4.1 A fast entity component system (ECS) for C & C++

Loading...
Searching...
No Matches
decl.hpp
Go to the documentation of this file.
1
5
6#pragma once
7
8namespace flecs {
10 struct units {
11
19
21 struct Prefixes { };
22
30
32 struct Yocto { };
34 struct Zepto { };
36 struct Atto { };
38 struct Femto { };
40 struct Pico { };
42 struct Nano { };
44 struct Micro { };
46 struct Milli { };
48 struct Centi { };
50 struct Deci { };
52 struct Deca { };
54 struct Hecto { };
56 struct Kilo { };
58 struct Mega { };
60 struct Giga { };
62 struct Tera { };
64 struct Peta { };
66 struct Exa { };
68 struct Zetta { };
70 struct Yotta { };
72 struct Kibi { };
74 struct Mebi { };
76 struct Gibi { };
78 struct Tebi { };
80 struct Pebi { };
82 struct Exbi { };
84 struct Zebi { };
86 struct Yobi { };
87
89
97
99 struct Duration { };
101 struct Time { };
103 struct Mass { };
105 struct ElectricCurrent { };
107 struct LuminousIntensity { };
109 struct Force { };
111 struct Amount { };
113 struct Length { };
115 struct Pressure { };
117 struct Speed { };
119 struct Temperature { };
121 struct Data { };
123 struct DataRate { };
125 struct Angle { };
127 struct Frequency { };
129 struct Uri { };
131 struct Color { };
132
134
136 struct duration {
142
144 struct PicoSeconds { };
146 struct NanoSeconds { };
148 struct MicroSeconds { };
150 struct MilliSeconds { };
152 struct Seconds { };
154 struct Minutes { };
156 struct Hours { };
158 struct Days { };
159
161};
162
164 struct angle {
170
172 struct Radians { };
174 struct Degrees { };
175
177};
178
179
181 struct time {
187
189 struct Date { };
190
192};
193
194
196 struct mass {
202
204 struct Grams { };
206 struct KiloGrams { };
207
209};
210
211
213 struct electric_current {
219
221 struct Ampere { };
222
224};
225
226
228 struct amount {
234
236 struct Mole { };
237
239};
240
241
243 struct luminous_intensity {
249
251 struct Candela { };
252
254};
255
256
258 struct force {
264
266 struct Newton { };
267
269};
270
271
273 struct length {
279
281 struct Meters { };
283 struct PicoMeters { };
285 struct NanoMeters { };
287 struct MicroMeters { };
289 struct MilliMeters { };
291 struct CentiMeters { };
293 struct KiloMeters { };
295 struct Miles { };
297 struct Pixels { };
298
300};
301
302
304 struct pressure {
310
312 struct Pascal { };
314 struct Bar { };
315
317};
318
319
321 struct speed {
327
329 struct MetersPerSecond { };
331 struct KiloMetersPerSecond { };
333 struct KiloMetersPerHour { };
335 struct MilesPerHour { };
336
338};
339
340
342 struct temperature {
348
350 struct Kelvin { };
352 struct Celsius { };
354 struct Fahrenheit { };
355
357};
358
359
361 struct data {
367
369 struct Bits { };
371 struct KiloBits { };
373 struct MegaBits { };
375 struct GigaBits { };
377 struct Bytes { };
379 struct KiloBytes { };
381 struct MegaBytes { };
383 struct GigaBytes { };
385 struct KibiBytes { };
387 struct MebiBytes { };
389 struct GibiBytes { };
390
392};
393
395 struct datarate {
401
403 struct BitsPerSecond { };
405 struct KiloBitsPerSecond { };
407 struct MegaBitsPerSecond { };
409 struct GigaBitsPerSecond { };
411 struct BytesPerSecond { };
413 struct KiloBytesPerSecond { };
415 struct MegaBytesPerSecond { };
417 struct GigaBytesPerSecond { };
418
420};
421
422
424 struct frequency {
430
432 struct Hertz { };
434 struct KiloHertz { };
436 struct MegaHertz { };
438 struct GigaHertz { };
439
441};
442
443
445 struct uri {
451
453 struct Hyperlink { };
455 struct Image { };
457 struct File { };
458
460};
461
462
464 struct color {
470
472 struct Rgb { };
474 struct Hsl { };
476 struct Css { };
477
479};
480
482 struct Percentage { };
484 struct Bel { };
486 struct DeciBel { };
487
489 units(flecs::world& world);
490
492
493};
494}
flecs::units::units
units(flecs::world &world)
Construct the units module.
Definition impl.hpp:10
flecs::units::Amount
Amount quantity.
Definition decl.hpp:111
flecs::units::Angle
Angle quantity.
Definition decl.hpp:125
flecs::units::Atto
Atto prefix (10^-18).
Definition decl.hpp:36
flecs::units::Bel
Bel unit.
Definition decl.hpp:484
flecs::units::Centi
Centi prefix (10^-2).
Definition decl.hpp:48
flecs::units::Color
Color quantity.
Definition decl.hpp:131
flecs::units::DataRate
Data rate quantity.
Definition decl.hpp:123
flecs::units::Data
Data quantity.
Definition decl.hpp:121
flecs::units::Deca
Deca prefix (10^1).
Definition decl.hpp:52
flecs::units::DeciBel
DeciBel unit.
Definition decl.hpp:486
flecs::units::Deci
Deci prefix (10^-1).
Definition decl.hpp:50
flecs::units::Duration
Duration quantity.
Definition decl.hpp:99
flecs::units::ElectricCurrent
Electric current quantity.
Definition decl.hpp:105
flecs::units::Exa
Exa prefix (10^18).
Definition decl.hpp:66
flecs::units::Exbi
Exbi prefix (2^60).
Definition decl.hpp:82
flecs::units::Femto
Femto prefix (10^-15).
Definition decl.hpp:38
flecs::units::Force
Force quantity.
Definition decl.hpp:109
flecs::units::Frequency
Frequency quantity.
Definition decl.hpp:127
flecs::units::Gibi
Gibi prefix (2^30).
Definition decl.hpp:76
flecs::units::Giga
Giga prefix (10^9).
Definition decl.hpp:60
flecs::units::Hecto
Hecto prefix (10^2).
Definition decl.hpp:54
flecs::units::Kibi
Kibi prefix (2^10).
Definition decl.hpp:72
flecs::units::Kilo
Kilo prefix (10^3).
Definition decl.hpp:56
flecs::units::Length
Length quantity.
Definition decl.hpp:113
flecs::units::LuminousIntensity
Luminous intensity quantity.
Definition decl.hpp:107
flecs::units::Mass
Mass quantity.
Definition decl.hpp:103
flecs::units::Mebi
Mebi prefix (2^20).
Definition decl.hpp:74
flecs::units::Mega
Mega prefix (10^6).
Definition decl.hpp:58
flecs::units::Micro
Micro prefix (10^-6).
Definition decl.hpp:44
flecs::units::Milli
Milli prefix (10^-3).
Definition decl.hpp:46
flecs::units::Nano
Nano prefix (10^-9).
Definition decl.hpp:42
flecs::units::Pebi
Pebi prefix (2^50).
Definition decl.hpp:80
flecs::units::Percentage
Percentage unit.
Definition decl.hpp:482
flecs::units::Peta
Peta prefix (10^15).
Definition decl.hpp:64
flecs::units::Pico
Pico prefix (10^-12).
Definition decl.hpp:40
flecs::units::Prefixes
Prefixes scope.
Definition decl.hpp:21
flecs::units::Pressure
Pressure quantity.
Definition decl.hpp:115
flecs::units::Speed
Speed quantity.
Definition decl.hpp:117
flecs::units::Tebi
Tebi prefix (2^40).
Definition decl.hpp:78
flecs::units::Temperature
Temperature quantity.
Definition decl.hpp:119
flecs::units::Tera
Tera prefix (10^12).
Definition decl.hpp:62
flecs::units::Time
Time quantity.
Definition decl.hpp:101
flecs::units::Uri
URI quantity.
Definition decl.hpp:129
flecs::units::Yobi
Yobi prefix (2^80).
Definition decl.hpp:86
flecs::units::Yocto
Yocto prefix (10^-24).
Definition decl.hpp:32
flecs::units::Yotta
Yotta prefix (10^24).
Definition decl.hpp:70
flecs::units::Zebi
Zebi prefix (2^70).
Definition decl.hpp:84
flecs::units::Zepto
Zepto prefix (10^-21).
Definition decl.hpp:34
flecs::units::Zetta
Zetta prefix (10^21).
Definition decl.hpp:68
flecs::units::amount::Mole
Mole unit.
Definition decl.hpp:236
flecs::units::amount
Amount units.
Definition decl.hpp:228
flecs::units::angle::Degrees
Degrees unit.
Definition decl.hpp:174
flecs::units::angle::Radians
Radians unit.
Definition decl.hpp:172
flecs::units::angle
Angle units.
Definition decl.hpp:164
flecs::units::color::Css
CSS color unit.
Definition decl.hpp:476
flecs::units::color::Hsl
HSL color unit.
Definition decl.hpp:474
flecs::units::color::Rgb
RGB color unit.
Definition decl.hpp:472
flecs::units::color
Color units.
Definition decl.hpp:464
flecs::units::data::Bits
Bits unit.
Definition decl.hpp:369
flecs::units::data::Bytes
Bytes unit.
Definition decl.hpp:377
flecs::units::data::GibiBytes
GibiBytes unit.
Definition decl.hpp:389
flecs::units::data::GigaBits
GigaBits unit.
Definition decl.hpp:375
flecs::units::data::GigaBytes
GigaBytes unit.
Definition decl.hpp:383
flecs::units::data::KibiBytes
KibiBytes unit.
Definition decl.hpp:385
flecs::units::data::KiloBits
KiloBits unit.
Definition decl.hpp:371
flecs::units::data::KiloBytes
KiloBytes unit.
Definition decl.hpp:379
flecs::units::data::MebiBytes
MebiBytes unit.
Definition decl.hpp:387
flecs::units::data::MegaBits
MegaBits unit.
Definition decl.hpp:373
flecs::units::data::MegaBytes
MegaBytes unit.
Definition decl.hpp:381
flecs::units::data
Data units.
Definition decl.hpp:361
flecs::units::datarate::BitsPerSecond
BitsPerSecond unit.
Definition decl.hpp:403
flecs::units::datarate::BytesPerSecond
BytesPerSecond unit.
Definition decl.hpp:411
flecs::units::datarate::GigaBitsPerSecond
GigaBitsPerSecond unit.
Definition decl.hpp:409
flecs::units::datarate::GigaBytesPerSecond
GigaBytesPerSecond unit.
Definition decl.hpp:417
flecs::units::datarate::KiloBitsPerSecond
KiloBitsPerSecond unit.
Definition decl.hpp:405
flecs::units::datarate::KiloBytesPerSecond
KiloBytesPerSecond unit.
Definition decl.hpp:413
flecs::units::datarate::MegaBitsPerSecond
MegaBitsPerSecond unit.
Definition decl.hpp:407
flecs::units::datarate::MegaBytesPerSecond
MegaBytesPerSecond unit.
Definition decl.hpp:415
flecs::units::datarate
Data rate units.
Definition decl.hpp:395
flecs::units::duration::Days
Days unit.
Definition decl.hpp:158
flecs::units::duration::Hours
Hours unit.
Definition decl.hpp:156
flecs::units::duration::MicroSeconds
MicroSeconds unit.
Definition decl.hpp:148
flecs::units::duration::MilliSeconds
MilliSeconds unit.
Definition decl.hpp:150
flecs::units::duration::Minutes
Minutes unit.
Definition decl.hpp:154
flecs::units::duration::NanoSeconds
NanoSeconds unit.
Definition decl.hpp:146
flecs::units::duration::PicoSeconds
PicoSeconds unit.
Definition decl.hpp:144
flecs::units::duration::Seconds
Seconds unit.
Definition decl.hpp:152
flecs::units::duration
Duration units.
Definition decl.hpp:136
flecs::units::electric_current::Ampere
Ampere unit.
Definition decl.hpp:221
flecs::units::electric_current
Electric current units.
Definition decl.hpp:213
flecs::units::force::Newton
Newton unit.
Definition decl.hpp:266
flecs::units::force
Force units.
Definition decl.hpp:258
flecs::units::frequency::GigaHertz
GigaHertz unit.
Definition decl.hpp:438
flecs::units::frequency::Hertz
Hertz unit.
Definition decl.hpp:432
flecs::units::frequency::KiloHertz
KiloHertz unit.
Definition decl.hpp:434
flecs::units::frequency::MegaHertz
MegaHertz unit.
Definition decl.hpp:436
flecs::units::frequency
Frequency units.
Definition decl.hpp:424
flecs::units::length::CentiMeters
CentiMeters unit.
Definition decl.hpp:291
flecs::units::length::KiloMeters
KiloMeters unit.
Definition decl.hpp:293
flecs::units::length::Meters
Meters unit.
Definition decl.hpp:281
flecs::units::length::MicroMeters
MicroMeters unit.
Definition decl.hpp:287
flecs::units::length::Miles
Miles unit.
Definition decl.hpp:295
flecs::units::length::MilliMeters
MilliMeters unit.
Definition decl.hpp:289
flecs::units::length::NanoMeters
NanoMeters unit.
Definition decl.hpp:285
flecs::units::length::PicoMeters
PicoMeters unit.
Definition decl.hpp:283
flecs::units::length::Pixels
Pixels unit.
Definition decl.hpp:297
flecs::units::length
Length units.
Definition decl.hpp:273
flecs::units::luminous_intensity::Candela
Candela unit.
Definition decl.hpp:251
flecs::units::luminous_intensity
Luminous intensity units.
Definition decl.hpp:243
flecs::units::mass::Grams
Grams unit.
Definition decl.hpp:204
flecs::units::mass::KiloGrams
KiloGrams unit.
Definition decl.hpp:206
flecs::units::mass
Mass units.
Definition decl.hpp:196
flecs::units::pressure::Bar
Bar unit.
Definition decl.hpp:314
flecs::units::pressure::Pascal
Pascal unit.
Definition decl.hpp:312
flecs::units::pressure
Pressure units.
Definition decl.hpp:304
flecs::units::speed::KiloMetersPerHour
KiloMetersPerHour unit.
Definition decl.hpp:333
flecs::units::speed::KiloMetersPerSecond
KiloMetersPerSecond unit.
Definition decl.hpp:331
flecs::units::speed::MetersPerSecond
MetersPerSecond unit.
Definition decl.hpp:329
flecs::units::speed::MilesPerHour
MilesPerHour unit.
Definition decl.hpp:335
flecs::units::speed
Speed units.
Definition decl.hpp:321
flecs::units::temperature::Celsius
Celsius unit.
Definition decl.hpp:352
flecs::units::temperature::Fahrenheit
Fahrenheit unit.
Definition decl.hpp:354
flecs::units::temperature::Kelvin
Kelvin unit.
Definition decl.hpp:350
flecs::units::temperature
Temperature units.
Definition decl.hpp:342
flecs::units::time::Date
Date unit.
Definition decl.hpp:189
flecs::units::time
Time units.
Definition decl.hpp:181
flecs::units::uri::File
File unit.
Definition decl.hpp:457
flecs::units::uri::Hyperlink
Hyperlink unit.
Definition decl.hpp:453
flecs::units::uri::Image
Image unit.
Definition decl.hpp:455
flecs::units::uri
URI units.
Definition decl.hpp:445
flecs::world
The world.
Definition world.hpp:246