OGLplus  (0.59.0) a C++ wrapper for rendering APIs

identifier_t.hpp
Go to the documentation of this file.
1 
9 #ifndef EAGINE_IDENTIFIER_T_HPP
10 #define EAGINE_IDENTIFIER_T_HPP
11 
12 #include <cstdint>
13 
14 namespace eagine {
15 //------------------------------------------------------------------------------
19 using identifier_t = std::uint64_t;
20 
22 using process_instance_id_t = std::uint32_t;
23 
25 using host_id_t = std::uint32_t;
26 //------------------------------------------------------------------------------
27 #if __SIZEOF_INT128__
28 using long_identifier_t = __uint128_t;
32 //------------------------------------------------------------------------------
33 #define EAGINE_HAS_LONG_ID 1
34 #else
35 #define EAGINE_HAS_LONG_ID 0
36 #endif
37 //------------------------------------------------------------------------------
38 } // namespace eagine
39 
40 #endif // EAGINE_IDENTIFIER_T_HPP
Common code is placed in this namespace.
Definition: eagine.hpp:21
std::uint32_t host_id_t
Unique host identifier type.
Definition: identifier_t.hpp:25
std::uint32_t process_instance_id_t
Unique process identifier type (does not necessarily match to OS PID).
Definition: identifier_t.hpp:22
std::uint64_t identifier_t
The underlying integer type for eagine::identifier.
Definition: identifier_t.hpp:19
__uint128_t long_identifier_t
The underlying integer type for eagine::long_identifier.
Definition: identifier_t.hpp:31

Copyright © 2015-2021 Matúš Chochlík.
<chochlik -at -gmail.com>
Documentation generated on Tue Apr 13 2021 by Doxygen (version 1.8.17).