载入中...
搜索中...
未找到
eve::container::Zone< Space > 模板类 参考

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.
 

详细描述

template<class Space>
class eve::container::Zone< Space >

Shape-bounded, capacity-limited zone in one compile-time coordinate space.

模板参数
SpaceScreenSpace, World2DSpace, World3DSpace or GridSpace.

Zone public API.

在文件 Container.h 第 473 行定义.

成员函数说明

◆ acceptedCondition()

template<class Space >
const AcceptedCondition & eve::container::Zone< Space >::acceptedCondition ( ) const
inlinenoexcept

Return the side-effect-free accepted condition.

在文件 Container.h 第 556 行定义.

◆ accepts()

template<class Space >
Result< void > eve::container::Zone< Space >::accepts ( const ContainerObject &  object) const
inline

Test the zone's accepted-condition without mutating membership.

在文件 Container.h 第 554 行定义.

◆ capacity()

template<class Space >
Capacity eve::container::Zone< Space >::capacity ( ) const
inlinenoexcept

Return the maximum number of memberships accepted by this zone.

在文件 Container.h 第 558 行定义.

◆ contains()

template<class Space >
bool eve::container::Zone< Space >::contains ( Coordinate< Space >  point) const
inlinenoexcept

Test a point from exactly this zone's coordinate space.

Constexpr.

Constexpr.

在文件 Container.h 第 524 行定义.

引用了 dx, dy, dz, point , 以及 shape.

◆ create() [1/2]

template<class Space >
static Result< Zone > eve::container::Zone< Space >::create ( ContainerId  id,
ZoneShape< Space >  shape,
Capacity  capacity = Capacity::unlimited(),
AcceptedCondition  accepted = {} 
)
inlinestatic

Validate and construct a named zone.

参数
idStable zone/container identity; it must not be empty.
shapeShape expressed in exactly Space.
capacityMaximum number of memberships.
acceptedSide-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]

template<class Space >
static Result< Zone > eve::container::Zone< Space >::create ( ZoneShape< Space >  shape,
Capacity  capacity = Capacity::unlimited(),
AcceptedCondition  accepted = {} 
)
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()

template<class Space >
bool eve::container::Zone< Space >::hasIdentity ( ) const
inlinenoexcept

Return whether this zone has a usable stable identity.

在文件 Container.h 第 521 行定义.

◆ id()

template<class Space >
const ContainerId & eve::container::Zone< Space >::id ( ) const
inlinenoexcept

Return the stable identity supplied at construction.

在文件 Container.h 第 518 行定义.

◆ isValid()

template<class Space >
bool eve::container::Zone< Space >::isValid ( ) const
inlinenoexcept

Return whether this factory-created zone contains valid geometry.

在文件 Container.h 第 515 行定义.

◆ shape()

template<class Space >
const ZoneShape< Space > & eve::container::Zone< Space >::shape ( ) const
inlinenoexcept

Return the immutable shape in this zone's coordinate space.

在文件 Container.h 第 560 行定义.


该类的文档由以下文件生成: