#include <id.hpp>
Public Member Functions | |
unit_id () | |
unit_id (std::size_t val) | |
bool | is_fake () const |
bool | is_empty () const |
Static Public Member Functions | |
static unit_id | create_real (std::size_t val) |
static unit_id | create_fake (std::size_t val) |
Public Attributes | |
std::size_t | value |
Static Public Attributes | |
static const std::size_t | highest_bit = static_cast<std::size_t>(1) << (sizeof(std::size_t) * 8 - 1) |
Friends | |
bool | operator< (unit_id a, unit_id b) |
bool | operator<= (unit_id a, unit_id b) |
bool | operator== (unit_id a, unit_id b) |
bool | operator>= (unit_id a, unit_id b) |
bool | operator> (unit_id a, unit_id b) |
|
inline |
Definition at line 24 of file id.hpp.
Referenced by create_fake(), and create_real().
|
inlinestatic |
Definition at line 33 of file id.hpp.
References highest_bit, and unit_id().
Referenced by n_unit::id_manager::next_fake_id().
|
inlinestatic |
Definition at line 32 of file id.hpp.
References unit_id().
Referenced by n_unit::id_manager::next_id().
|
inline |
|
inline |
Definition at line 29 of file id.hpp.
References highest_bit, and value.
Referenced by unit::is_visible_to_team().
|
static |
Definition at line 26 of file id.hpp.
Referenced by create_fake(), is_fake(), n_unit::id_manager::next_fake_id(), and n_unit::id_manager::next_id().
std::size_t n_unit::unit_id::value |
Definition at line 27 of file id.hpp.
Referenced by is_empty(), is_fake(), unit::set_underlying_id(), unit::underlying_id(), and unit::write().