Strong identity of one runtime or persistent container. 更多...
#include <Container.h>
Public 成员函数 | |
| ContainerId ()=default | |
| Constructs a ContainerId. | |
| ContainerId (std::string value) | |
| Constructs a ContainerId. | |
| bool | isValid () const noexcept |
| Return whether this ID is usable by a transfer request. | |
| const std::string & | value () const noexcept |
| Return the owned stable spelling. | |
静态 Public 成员函数 | |
| static std::optional< ContainerId > | from (std::string_view value) |
| Construct a valid ID, rejecting an empty value. | |
友元 | |
| bool | operator== (const ContainerId &, const ContainerId &) noexcept=default |
详细描述
Strong identity of one runtime or persistent container.
在文件 Container.h 第 44 行定义.
构造及析构函数说明
◆ ContainerId() [1/2]
|
default |
Constructs a ContainerId.
被这些函数引用 from().
◆ ContainerId() [2/2]
|
inlineexplicit |
Constructs a ContainerId.
在文件 Container.h 第 49 行定义.
成员函数说明
◆ from()
|
inlinestatic |
Construct a valid ID, rejecting an empty value.
Constructs a ContainerId.
在文件 Container.h 第 52 行定义.
引用了 ContainerId() , 以及 value().
◆ isValid()
|
inlinenoexcept |
Return whether this ID is usable by a transfer request.
在文件 Container.h 第 58 行定义.
被这些函数引用 eve::building::BuildingGarrisonContainerAdapter::prepare(), eve::card::CardContainerAdapter::prepare(), eve::inventory::InventoryContainerAdapter::prepare(), eve::vehicle::VehicleSeatContainerAdapter::prepare(), eve::building::BuildingGarrisonContainerAdapter::snapshot(), eve::card::CardContainerAdapter::snapshot(), eve::inventory::InventoryContainerAdapter::snapshot(), eve::vehicle::VehicleSeatContainerAdapter::snapshot(), eve::building::BuildingGarrisonContainerAdapter::validateInsert(), eve::card::CardContainerAdapter::validateInsert() , 以及 eve::vehicle::VehicleSeatContainerAdapter::validateInsert().
◆ value()
|
inlinenoexcept |
友元及相关函数文档
◆ operator==
|
friend |
该类的文档由以下文件生成:
- src/engine/common/Container.h