载入中...
搜索中...
未找到
StateAccessAdapter.h
浏览该文件的文档.
22class EVENGINE_API_FOUNDATION StatePatchStateAdapter final : public eve::IStateQuery, public eve::IStateMutation {
29 [[nodiscard]] std::optional<eve::Value> value(std::string_view subject, std::string_view key) const override;
32 [[nodiscard]] std::optional<bool> hasTag(std::string_view subject, std::string_view tag) const override;
45 [[nodiscard]] std::optional<eve::Value> state(std::string_view subject, std::string_view key) const override;
54 [[nodiscard]] eve::Result<eve::MutationReceipt> apply(std::span<const eve::StateMutation> mutations,
Consumer-owned query and mutation contracts for authoritative world state.
All-or-nothing mutation boundary owned by the consumer.
Definition StateAccess.h:107
Read-only world-state boundary owned by consumers such as Dialogue.
Definition StateAccess.h:79
Adapts one persistent Store to state queries and transactional writes.
Definition StateAccessAdapter.h:22
StatePatchStateAdapter(Store &store) noexcept
Bind a borrowed authoritative persistent store.
Definition StateAccessAdapter.h:25
std::optional< bool > authority(std::string_view, std::string_view) const override
Query read-only authority for a scope.
Definition StateAccessAdapter.h:48
std::optional< eve::Value > resource(std::string_view, std::string_view) const override
Query a resource value or marker.
Definition StateAccessAdapter.h:40
std::optional< eve::Value > attribute(std::string_view, std::string_view) const override
Query a numeric or structured attribute.
Definition StateAccessAdapter.h:35
Deterministic subject-and-key JSON value store with atomic patching.
Definition StatePatch.h:119
Definition StateAccessAdapter.cpp:13
Correlation metadata shared by a mutation transaction.
Definition StateAccess.h:57