BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CORE_AGENT_AGENT_UID_H_
16 #define CORE_AGENT_AGENT_UID_H_
29 friend std::hash<AgentUid>;
93 operator uint64_t()
const {
94 return (
static_cast<uint64_t
>(
reused_) << 32) |
95 static_cast<uint64_t
>(
index_);
120 struct hash<
bdm::AgentUid> {
132 #endif // CORE_AGENT_AGENT_UID_H_
std::size_t operator()(const bdm::AgentUid &uid) const noexcept
bool operator<(size_t other) const
friend std::ostream & operator<<(std::ostream &stream, const AgentUid &handle)
Reused_t GetReused() const
bool operator==(const AgentUid &other) const
AgentUid operator-(int i) const
AgentUid & operator+=(const AgentUid &uid)
AgentUid(Index_t idx, Reused_t reused)
BDM_CLASS_DEF_NV(AgentUid, 1)
bool operator<(const AgentUid &other) const
bool operator!=(const AgentUid &other) const
AgentUid operator+(uint64_t i) const
constexpr AgentUid() noexcept
Reused_t reused_
Determines how often index_ has been resused.
AgentUid operator-(uint64_t i) const
static constexpr Reused_t kReusedMax
AgentUid operator+(int i) const