|
BioDynaMo
v1.05.125-2619fe54
|
#include <agent_uid.h>
Public Types | |
| using | Index_t = uint32_t |
| using | Reused_t = uint32_t |
Public Member Functions | |
| constexpr | AgentUid () noexcept |
| AgentUid (Index_t index) | |
| AgentUid (Index_t idx, Reused_t reused) | |
| Reused_t | GetReused () const |
| Index_t | GetIndex () const |
| void | operator++ () |
| void | operator-- () |
| bool | operator== (const AgentUid &other) const |
| bool | operator!= (const AgentUid &other) const |
| bool | operator< (const AgentUid &other) const |
| bool | operator< (size_t other) const |
| AgentUid | operator+ (int i) const |
| AgentUid | operator+ (uint64_t i) const |
| AgentUid | operator- (int i) const |
| AgentUid | operator- (uint64_t i) const |
| AgentUid & | operator+= (const AgentUid &uid) |
| operator uint64_t () const | |
Static Public Attributes | |
| static constexpr Reused_t | kReusedMax = std::numeric_limits<Reused_t>::max() |
Private Member Functions | |
| BDM_CLASS_DEF_NV (AgentUid, 1) | |
Private Attributes | |
| Index_t | index_ |
| Reused_t | reused_ |
| Determines how often index_ has been resused. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const AgentUid &handle) |
AgentUid is a unique id for agents that remains unchanged throughout the whole simulation.
Definition at line 25 of file agent_uid.h.
| using bdm::AgentUid::Index_t = uint32_t |
Definition at line 27 of file agent_uid.h.
| using bdm::AgentUid::Reused_t = uint32_t |
Definition at line 28 of file agent_uid.h.
|
inlineconstexprnoexcept |
Definition at line 33 of file agent_uid.h.
|
inlineexplicit |
Definition at line 37 of file agent_uid.h.
Definition at line 39 of file agent_uid.h.
|
private |
|
inline |
Definition at line 42 of file agent_uid.h.
|
inline |
Definition at line 41 of file agent_uid.h.
|
inline |
Definition at line 93 of file agent_uid.h.
|
inline |
Definition at line 52 of file agent_uid.h.
|
inline |
Definition at line 64 of file agent_uid.h.
|
inline |
Definition at line 70 of file agent_uid.h.
|
inline |
Definition at line 45 of file agent_uid.h.
Definition at line 88 of file agent_uid.h.
|
inline |
Definition at line 76 of file agent_uid.h.
|
inline |
Definition at line 82 of file agent_uid.h.
|
inline |
Definition at line 46 of file agent_uid.h.
|
inline |
Definition at line 54 of file agent_uid.h.
|
inline |
Definition at line 62 of file agent_uid.h.
|
inline |
Definition at line 48 of file agent_uid.h.
|
friend |
Definition at line 98 of file agent_uid.h.
|
private |
Consistent with AgentHandle::Index_t -> max element_idx: 4.294.967.296
Definition at line 107 of file agent_uid.h.
|
staticconstexpr |
Definition at line 31 of file agent_uid.h.
|
private |
Determines how often index_ has been resused.
Definition at line 110 of file agent_uid.h.
1.8.17