载入中...
搜索中...
未找到
eve::container::MembershipId类 参考
Strong identity of an object which can have one container membership. 更多...
#include <Container.h>
Public 成员函数 | |
| MembershipId ()=default | |
| Constructs a MembershipId. | |
| MembershipId (std::string value) | |
| Constructs a MembershipId. | |
| bool | isValid () const noexcept |
| Return whether this identity is usable. | |
| const std::string & | value () const noexcept |
| Return the owned stable spelling. | |
静态 Public 成员函数 | |
| static std::optional< MembershipId > | from (std::string_view value) |
| Construct a valid membership ID, rejecting an empty value. | |
友元 | |
| bool | operator== (const MembershipId &, const MembershipId &) noexcept=default |
详细描述
Strong identity of an object which can have one container membership.
在文件 Container.h 第 68 行定义.
构造及析构函数说明
◆ MembershipId() [1/2]
|
default |
Constructs a MembershipId.
被这些函数引用 from().
◆ MembershipId() [2/2]
|
inlineexplicit |
Constructs a MembershipId.
在文件 Container.h 第 73 行定义.
成员函数说明
◆ from()
|
inlinestatic |
Construct a valid membership ID, rejecting an empty value.
Constructs a MembershipId.
在文件 Container.h 第 76 行定义.
引用了 MembershipId() , 以及 value().
被这些函数引用 eve::building::BuildingGarrisonContainerAdapter::snapshot().
◆ isValid()
|
inlinenoexcept |
Return whether this identity is usable.
在文件 Container.h 第 82 行定义.
◆ value()
|
inlinenoexcept |
友元及相关函数文档
◆ operator==
|
friend |
该类的文档由以下文件生成:
- src/engine/common/Container.h