Class AgentsMeta#
Defined in File EntityMeta.h
Class Documentation#
-
class AgentsMeta#
Metadata of Agents
Public Functions
-
inline AgentsMeta(const EntityHandle handle, const EntityHandle associatedPlacesHandle, const Count globalAgentSlotCount)#
-
inline EntityHandle handle() const#
Get the unique handle assigned to this Agents
-
inline EntityHandle associatedPlacesHandle() const#
-
inline const std::vector<AttributeMeta> &attributeMetas() const#
Get the list of metadata of all the defined attributes
-
inline bool hasAttribute(const AttrTag tag) const#
Check whether an attribute with the given tag exists
-
inline const AttributeMeta &getAttribute(const AttrTag tag) const#
Get the metadata of the attribute specified with the tag
Check whether an attribute with the given tag exists
Get the metadata of the attribute specified with the tag
Record a newly defined attribute into the metadata
- Parameters:
tag – the unique tag of the attribute
typeSize – the size in byte of the type of the attribute value
elementCount – the number of elements of the attribute
initialValue – the initial value of the attribute, represented as a type erased void pointer
Record a newly defined shared attribute into the metadata
- Parameters:
tag – the unique tag of the shared attribute
typeSize – the size in byte of the type of the attribute value
elementCount – the number of elements of the attribute
-
inline AgentsMeta(const EntityHandle handle, const EntityHandle associatedPlacesHandle, const Count globalAgentSlotCount)#