1 #ifndef SUBORDINATION_KERNEL_MOBILE_KERNEL_HH 2 #define SUBORDINATION_KERNEL_MOBILE_KERNEL_HH 4 #include <subordination/kernel/kernel_base.hh> 5 #include <subordination/kernel/kernel_header.hh> 12 typedef uint64_t id_type;
15 id_type _id = no_id();
19 read(sys::pstream& in);
22 write(sys::pstream& out)
const;
30 id(id_type rhs) noexcept {
35 has_id()
const noexcept {
36 return this->_id != no_id();
40 set_id(id_type rhs) noexcept {
46 return this == &rhs || (
47 this->id() == rhs.id()
55 return !this->operator==(rhs);
58 static constexpr id_type
64 unique_id()
const noexcept {
65 return this->has_id() ? this->id() : uint64_t(
this);
73 #endif // vim:filetype=cpp Definition: kernel_base.hh:17
Definition: mobile_kernel.hh:9