BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CORE_CONTAINER_AGENT_UID_MAP_H_
16 #define CORE_CONTAINER_AGENT_UID_MAP_H_
30 template <
typename TValue>
44 data_.resize(initial_size);
49 data_.resize(new_size);
60 #pragma omp parallel for
61 for (uint64_t i = 0; i <
data_.size(); ++i) {
79 if (idx >=
data_.size()) {
106 #endif // CORE_CONTAINER_AGENT_UID_MAP_H_
AgentUidMap(uint64_t initial_size)
Reused_t GetReused() const
const TValue & operator[](const AgentUid &key) const
bool Contains(const AgentUid &uid) const
void resize(uint64_t new_size)
std::vector< typename AgentUid::Reused_t > agent_uid_reused_
std::vector< TValue > data_
AgentUidMap(const AgentUidMap &other)
void Remove(const AgentUid &key)
AgentUid::Reused_t GetReused(uint64_t index) const
static constexpr Reused_t kReusedMax
void Insert(const AgentUid &uid, const TValue &value)