载入中...
搜索中...
未找到
eve::condition::EvaluationContext类 参考abstract

Read-only state boundary used by every condition evaluation. 更多...

#include <Condition.h>

类 eve::condition::EvaluationContext 继承关系图:
eve::card::CardPlayConditionContext eve::dialogue::StateEvaluationContext eve::emergence::FactStore eve::rpg::SkillConditionContext

Public 成员函数

virtual ~EvaluationContext ()=default
 Releases EvaluationContext resources.
 
virtual std::optional< Value > value (std::string_view key) const =0
 Query a named scalar or structured value for Compare nodes.
 
virtual std::optional< ConditionResult > policy (std::string_view name, const Value &arguments) const =0
 Evaluate a named read-only policy with owned arguments.
 

详细描述

Read-only state boundary used by every condition evaluation.

Implementations must not mutate domain state. Methods are synchronous and called on the caller's thread; implementations must not retain the caller's query keys or invoke unknown callbacks while holding a lock. nullopt means the requested capability/value is unavailable, which is distinct from a known false value. Domain axes (tag/attr/resource/state) are addressed as prefixed keys through value; authority uses PolicyCall authority.allow.

在文件 Condition.h 第 175 行定义.

构造及析构函数说明

◆ ~EvaluationContext()

virtual eve::condition::EvaluationContext::~EvaluationContext ( )
virtualdefault

Releases EvaluationContext resources.

成员函数说明

◆ policy()

virtual std::optional< ConditionResult > eve::condition::EvaluationContext::policy ( std::string_view  name,
const Value &  arguments 
) const
pure virtual

Evaluate a named read-only policy with owned arguments.

在 eve::card::CardPlayConditionContext, eve::dialogue::StateEvaluationContext, eve::emergence::FactStore , 以及 eve::rpg::SkillConditionContext 内被实现.

◆ value()

virtual std::optional< Value > eve::condition::EvaluationContext::value ( std::string_view  key) const
pure virtual

Query a named scalar or structured value for Compare nodes.

Canonical keys may use domain prefixes from ConditionKeys.h (tag:, attr:, resource:, state:). Bare keys are domain-defined.

在 eve::card::CardPlayConditionContext, eve::dialogue::StateEvaluationContext, eve::emergence::FactStore , 以及 eve::rpg::SkillConditionContext 内被实现.


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