Shape-bounded, capacity-limited zone in one compile-time coordinate space. 更多...
#include <Container.h>
Public 成员函数 | |
| bool | isValid () const noexcept |
| Return whether this factory-created zone contains valid geometry. | |
| const ContainerId & | id () const noexcept |
| Return the stable identity supplied at construction. | |
| bool | hasIdentity () const noexcept |
| Return whether this zone has a usable stable identity. | |
| bool | contains (Coordinate< Space > point) const noexcept |
| Test a point from exactly this zone's coordinate space. | |
| Result< void > | accepts (const ContainerObject &object) const |
| Test the zone's accepted-condition without mutating membership. | |
| const AcceptedCondition & | acceptedCondition () const noexcept |
| Return the side-effect-free accepted condition. | |
| Capacity | capacity () const noexcept |
| Return the maximum number of memberships accepted by this zone. | |
| const ZoneShape< Space > & | shape () const noexcept |
| Return the immutable shape in this zone's coordinate space. | |
静态 Public 成员函数 | |
| static Result< Zone > | create (ContainerId id, ZoneShape< Space > shape, Capacity capacity=Capacity::unlimited(), AcceptedCondition accepted={}) |
| Validate and construct a named zone. | |
| static Result< Zone > | create (ZoneShape< Space > shape, Capacity capacity=Capacity::unlimited(), AcceptedCondition accepted={}) |
| Validate and construct an anonymous compatibility zone. | |
详细描述
class eve::container::Zone< Space >
Shape-bounded, capacity-limited zone in one compile-time coordinate space.
- 模板参数
-
Space ScreenSpace, World2DSpace, World3DSpace or GridSpace.
Zone public API.
在文件 Container.h 第 473 行定义.
成员函数说明
◆ acceptedCondition()
|
inlinenoexcept |
Return the side-effect-free accepted condition.
在文件 Container.h 第 556 行定义.
◆ accepts()
|
inline |
Test the zone's accepted-condition without mutating membership.
在文件 Container.h 第 554 行定义.
◆ capacity()
|
inlinenoexcept |
Return the maximum number of memberships accepted by this zone.
在文件 Container.h 第 558 行定义.
◆ contains()
|
inlinenoexcept |
◆ create() [1/2]
|
inlinestatic |
Validate and construct a named zone.
- 参数
-
id Stable zone/container identity; it must not be empty. shape Shape expressed in exactly Space.capacity Maximum number of memberships. accepted Side-effect-free condition evaluated before entry.
- 返回
- A valid zone or a structured validation failure.
Failure.
Error.
Failure.
Error.
Success.
在文件 Container.h 第 483 行定义.
◆ create() [2/2]
|
inlinestatic |
Validate and construct an anonymous compatibility zone.
- 备注
- New persisted or cross-module zones should use the named overload. The compatibility identity is local to this value and must not be used as a registry key.
Creates .
在文件 Container.h 第 508 行定义.
◆ hasIdentity()
|
inlinenoexcept |
Return whether this zone has a usable stable identity.
在文件 Container.h 第 521 行定义.
◆ id()
|
inlinenoexcept |
Return the stable identity supplied at construction.
在文件 Container.h 第 518 行定义.
◆ isValid()
|
inlinenoexcept |
Return whether this factory-created zone contains valid geometry.
在文件 Container.h 第 515 行定义.
◆ shape()
|
inlinenoexcept |
Return the immutable shape in this zone's coordinate space.
在文件 Container.h 第 560 行定义.
该类的文档由以下文件生成:
- src/engine/common/Container.h