载入中...
搜索中...
未找到
eve::statepatch::StatePatchStateAdapter类 参考final

Adapts one persistent Store to state queries and transactional writes. 更多...

#include <StateAccessAdapter.h>

类 eve::statepatch::StatePatchStateAdapter 继承关系图:
eve::state::IStateQuery eve::state::IStateMutation

Public 成员函数

 StatePatchStateAdapter (Store &store) noexcept
 Bind a borrowed authoritative persistent store.
 
std::optional< eve::Value > value (std::string_view subject, std::string_view key) const override
 Query a generic world value.
 
std::optional< bool > hasTag (std::string_view subject, std::string_view tag) const override
 Query exact tag membership.
 
std::optional< eve::Value > attribute (std::string_view, std::string_view) const override
 Query a numeric or structured attribute.
 
std::optional< eve::Value > resource (std::string_view, std::string_view) const override
 Query a resource value or marker.
 
std::optional< eve::Value > state (std::string_view subject, std::string_view key) const override
 Query a persistent/world state value.
 
std::optional< bool > authority (std::string_view, std::string_view) const override
 Query read-only authority for a scope.
 
eve::Result< eve::MutationReceipt > apply (std::span< const eve::StateMutation > mutations, const eve::MutationContext &context) override
 Apply a complete mutation set atomically.
 
- Public 成员函数 继承自 eve::state::IStateQuery
virtual ~IStateQuery ()=default
 I state query.
 
- Public 成员函数 继承自 eve::state::IStateMutation
virtual ~IStateMutation ()=default
 I state mutation.
 
virtual eve::Result< MutationReceipt > apply (std::span< const StateMutation > mutations, const MutationContext &context)=0
 Apply a complete mutation set atomically.
 

额外继承的成员函数

- 静态 Public 属性 继承自 eve::state::IStateQuery
static constexpr const char * capabilityName = "eve.state.IStateQuery"
 
- 静态 Public 属性 继承自 eve::state::IStateMutation
static constexpr const char * capabilityName = "eve.state.IStateMutation"
 

详细描述

Adapts one persistent Store to state queries and transactional writes.

Every mutation is staged into a StoreTransactionParticipant and committed by the transaction Coordinator. A failed request therefore leaves the Store, revision, dirty set, and change events unchanged.

在文件 StateAccessAdapter.h 第 22 行定义.

构造及析构函数说明

◆ StatePatchStateAdapter()

eve::statepatch::StatePatchStateAdapter::StatePatchStateAdapter ( Store &  store)
inlineexplicitnoexcept

Bind a borrowed authoritative persistent store.

在文件 StateAccessAdapter.h 第 25 行定义.

成员函数说明

◆ apply()

◆ attribute()

std::optional< eve::Value > eve::statepatch::StatePatchStateAdapter::attribute ( std::string_view  ,
std::string_view   
) const
inlineoverridevirtual

Query a numeric or structured attribute.

Attribute.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.h 第 35 行定义.

◆ authority()

std::optional< bool > eve::statepatch::StatePatchStateAdapter::authority ( std::string_view  ,
std::string_view   
) const
inlineoverridevirtual

Query read-only authority for a scope.

Authority.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.h 第 48 行定义.

◆ hasTag()

std::optional< bool > eve::statepatch::StatePatchStateAdapter::hasTag ( std::string_view  subject,
std::string_view  tag 
) const
overridevirtual

Query exact tag membership.

True when tag.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.cpp 第 52 行定义.

引用了 eve::Value::asBool(), eve::statepatch::Store::has(), eve::Value::isBool(), key, subject, tag , 以及 value.

◆ resource()

std::optional< eve::Value > eve::statepatch::StatePatchStateAdapter::resource ( std::string_view  ,
std::string_view   
) const
inlineoverridevirtual

Query a resource value or marker.

Resource.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.h 第 40 行定义.

◆ state()

std::optional< eve::Value > eve::statepatch::StatePatchStateAdapter::state ( std::string_view  subject,
std::string_view  key 
) const
overridevirtual

Query a persistent/world state value.

State.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.cpp 第 63 行定义.

引用了 key, subject , 以及 value.

◆ value()

std::optional< eve::Value > eve::statepatch::StatePatchStateAdapter::value ( std::string_view  subject,
std::string_view  key 
) const
overridevirtual

Query a generic world value.

Value.

实现了 eve::state::IStateQuery.

在文件 StateAccessAdapter.cpp 第 46 行定义.

引用了 key , 以及 subject.


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