BioDynaMo
v1.05.120-25dc9790
|
Go to the documentation of this file.
15 #ifndef CORE_AGENT_NEW_AGENT_EVENT_H_
16 #define CORE_AGENT_NEW_AGENT_EVENT_H_
45 std::lock_guard<std::recursive_mutex> lock(
mutex_);
46 constexpr uint64_t kOne = 1;
49 "BioDynaMo only supports 64 unique NewAgentEventUids."
50 " You requested a 65th one.");
87 #endif // CORE_AGENT_NEW_AGENT_EVENT_H_
Behavior * existing_behavior
Contains code required by all agents.
NewAgentEventUid GenerateUid()
InlineVector< Behavior *, 3 > new_behaviors
uint64_t NewAgentEventUid
InlineVector< Agent *, 3 > new_agents
static void Fatal(const std::string &location, const Args &... parts)
Prints fatal error message.
static NewAgentEventUidGenerator * GetInstance()
virtual ~NewAgentEvent()=default
std::recursive_mutex mutex_
virtual NewAgentEventUid GetUid() const =0
NewAgentEventUidGenerator & operator=(const NewAgentEventUidGenerator &)=delete
NewAgentEventUidGenerator()=default