Agent identity qualified by the Crowd instance that owns its registry. @ownership Value only; it neither owns nor keeps the Crowd alive. @lifetime Survives swap-pop of other agents; invalid after removal, clear, restore or owner destruction. @thread Resolve on the simulation owner thread. @reentrancy No callbacks. 更多...
#include <CrowdTypes.h>
Public 成员函数 | |
| bool | isValid () const noexcept |
| Whether the value contains an owner and usable coordinates; does not prove liveness. | |
Public 属性 | |
| AgentHandle | handle |
| std::uint64_t | owner = 0 |
友元 | |
| bool | operator== (const AgentRef &, const AgentRef &) noexcept=default |
| Compare exact owner, slot and generation identity. | |
详细描述
Agent identity qualified by the Crowd instance that owns its registry. @ownership Value only; it neither owns nor keeps the Crowd alive. @lifetime Survives swap-pop of other agents; invalid after removal, clear, restore or owner destruction. @thread Resolve on the simulation owner thread. @reentrancy No callbacks.
在文件 CrowdTypes.h 第 90 行定义.
成员函数说明
◆ isValid()
|
inlinenoexcept |
Whether the value contains an owner and usable coordinates; does not prove liveness.
在文件 CrowdTypes.h 第 95 行定义.
引用了 handle, eve::RuntimeHandle< Tag >::isValid() , 以及 owner.
友元及相关函数文档
◆ operator==
Compare exact owner, slot and generation identity.
类成员变量说明
◆ handle
| AgentHandle eve::crowd::AgentRef::handle |
在文件 CrowdTypes.h 第 91 行定义.
被这些函数引用 isValid().
◆ owner
| std::uint64_t eve::crowd::AgentRef::owner = 0 |
在文件 CrowdTypes.h 第 92 行定义.
被这些函数引用 isValid().
该结构体的文档由以下文件生成:
- src/modules/crowd/CrowdTypes.h