Struct AgentID#
Defined in File AgentAttributes.h
Struct Documentation#
-
struct AgentID#
The unique identifier for each Agent instance.
It is formed by combining the global index of the Place instance the Agent instance is spawned on and the number of Agent instances already spawned there. For the latter, it is maintained by each Place instances with the SPAWNED_AGENTS pre-defined attribute, which will be increased by 1 every time a new Agent instance is spawned there
Public Functions
-
__universal__ __forceinline__ inline AgentID(const Index bornPlaceGlobalIndex, const Index32 bornIndex)#
-
__universal__ __forceinline__ inline Index bornPlaceGlobalIndex() const#
Retrieve the global index of the Place instance this Agent instance is spawned on, which is the first 8 bytes of the raw storage
Public Members
-
__universal__ __forceinline__ inline AgentID(const Index bornPlaceGlobalIndex, const Index32 bornIndex)#