载入中...
搜索中...
未找到
Container.h 文件参考

Low-level container membership, zone and atomic transfer contracts. 更多...

#include "common/Export.h"
#include "common/Generation.h"
#include "common/Identity.h"
#include "common/Result.h"
#include "common/Revision.h"
#include <cmath>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <type_traits>
#include <utility>
#include <variant>
#include <vector>

浏览源代码.

类

class  eve::container::ContainerId
 Strong identity of one runtime or persistent container. 更多...
 
class  eve::container::MembershipId
 Strong identity of an object which can have one container membership. 更多...
 
class  eve::container::Capacity
 Non-negative capacity measured in membership slots. 更多...
 
class  eve::container::SlotIndex
 Explicit slot number; it never implicitly converts to an integer. 更多...
 
class  eve::container::Filter
 Extensible filter result used by container and zone acceptance rules. 更多...
 
struct  eve::container::ContainerObjectPayload
 Opaque, owning payload supplied by a domain adapter during transfer. 更多...
 
struct  eve::container::ContainerObject
 Generic object facts used by filters and transfer diagnostics. 更多...
 
struct  eve::container::Membership
 One object-to-slot relationship, including the observed generation. 更多...
 
struct  eve::container::MembershipEntry
 Complete adapter-owned state used to build a candidate replacement. 更多...
 
struct  eve::container::ContainerSnapshot
 Lossless snapshot of one container at one revision. 更多...
 
struct  eve::container::ContainerDescriptor
 Static metadata and acceptance policy of a container. 更多...
 
class  eve::container::IContainer
 Borrowed container implementation owned by a domain adapter. 更多...
 
class  eve::container::IContainer::PreparedState
 Detached state prepared for an atomic container replacement. 更多...
 
struct  eve::container::TransferEvent
 Strong event payload emitted only after a transfer is fully committed. 更多...
 
struct  eve::container::TransferRequest
 Requested optimistic-concurrency transfer. All pointers are borrowed. 更多...
 
struct  eve::container::TransferReceipt
 Observable receipt for one committed or explicit no-op transfer. 更多...
 
class  eve::container::TransferService
 Atomic preflight/prepare/commit coordinator for one or two adapters. 更多...
 
struct  eve::container::ScreenSpace
 Coordinate-space tags; distinct types prevent accidental mixing. 更多...
 
struct  eve::container::World2DSpace
 World2DSpace public API. 更多...
 
struct  eve::container::World3DSpace
 World3DSpace public API. 更多...
 
struct  eve::container::GridSpace
 GridSpace public API. 更多...
 
struct  eve::container::Coordinate< Space >
 Coordinate public API. 更多...
 
struct  eve::container::Coordinate< World3DSpace >
 Three-dimensional coordinate; z is intentionally mandatory. 更多...
 
struct  eve::container::Rectangle< Space >
 Rectangle public API. 更多...
 
struct  eve::container::Circle< Space >
 Circle public API. 更多...
 
struct  eve::container::Box3D
 Axis-aligned 3D box for World3DSpace zones. 更多...
 
struct  eve::container::Sphere3D
 Spherical 3D shape for World3DSpace zones. 更多...
 
struct  eve::container::ZoneShapeTraits< Space >
 ZoneShapeTraits public API. 更多...
 
struct  eve::container::ZoneShapeTraits< World3DSpace >
 ZoneShapeTraits public API. 更多...
 
class  eve::container::Zone< Space >
 Shape-bounded, capacity-limited zone in one compile-time coordinate space. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::game_event
 
namespace  eve::container
 
namespace  std
 

类型定义

using eve::container::GameEventSink = std::function< void(const game_event::GameEvent &)>
 Callback receiving a canonical game_event envelope.
 
using eve::container::TransferEventSink = std::function< void(const TransferEvent &)>
 Synchronous callback receiving a committed transfer payload.
 
template<class Space >
using eve::container::ZoneShape = typename ZoneShapeTraits< Space >::type
 
using eve::container::AcceptedCondition = Filter
 Accepted-condition callback for a zone, shared with container filters.
 

枚举

enum class  eve::container::Ordering : std::uint8_t {
  eve::container::Unordered , eve::container::Insertion , eve::container::Stack , eve::container::Queue ,
  eve::container::ExplicitSlots
}
 Stable order semantics owned by a container adapter. 更多...
 
enum class  eve::container::ContainerEventKind : std::uint8_t { eve::container::Enter , eve::container::Exit , eve::container::Accepted , eve::container::Rejected }
 Lifecycle outcome represented by every container-domain event. 更多...
 

函数

const char * eve::container::containerEventTypeName (ContainerEventKind kind) noexcept
 Stable event type spelling shared by all container adapters.
 
EventId eve::container::deterministicContainerEventId (const ContainerId &container, const MembershipId &object, ContainerEventKind kind, std::uint64_t serial) noexcept
 Derives a deterministic event identity for an adapter lifecycle event.
 

变量

constexpr std::string_view eve::container::containerEventSchemaName = "container:event"
 Canonical schema name for container lifecycle envelopes.
 

详细描述

Low-level container membership, zone and atomic transfer contracts.

This layer deliberately knows nothing about cards, inventory, UI, ECS or rendering. Domain adapters own their objects and implement the small borrowed-container interface below. TransferService performs a complete preflight followed by one observable commit; adapters must fully construct candidate state before exposing a staged, non-throwing commit.

在文件 Container.h 中定义.