载入中...
搜索中...
未找到
eve::attributes::AttributeOperationRegistry类 参考

Registry for explicitly named custom attribute policies. 更多...

#include <AttributeSet.h>

Public 类型

using Function = std::function< double(double current, double value)>
 

Public 成员函数

void registerOperation (const std::string &policyId, Function function)
 Register or replace a named policy; calls execute on the caller thread.
 
void unregisterOperation (const std::string &policyId)
 Remove a named policy.
 
bool has (const std::string &policyId) const
 Return whether a policy is registered.
 
double apply (const std::string &policyId, double current, double value) const
 Apply a policy, returning current unchanged when it is absent.
 
void registerOp (const std::string &policyId, Function function)
 Compatibility spelling for RPG's former custom-op facade.
 
void unregisterOp (const std::string &policyId)
 Compatibility spelling for RPG's former custom-op facade.
 

详细描述

Registry for explicitly named custom attribute policies.

在文件 AttributeSet.h 第 67 行定义.

成员类型定义说明

◆ Function

using eve::attributes::AttributeOperationRegistry::Function = std::function<double(double current, double value)>

在文件 AttributeSet.h 第 69 行定义.

成员函数说明

◆ apply()

double eve::attributes::AttributeOperationRegistry::apply ( const std::string &  policyId,
double  current,
double  value 
) const

Apply a policy, returning current unchanged when it is absent.

在文件 AttributeSet.cpp 第 69 行定义.

引用了 current, policyId , 以及 value.

被这些函数引用 eve::attributes::computeAttributeValue().

◆ has()

bool eve::attributes::AttributeOperationRegistry::has ( const std::string &  policyId) const

Return whether a policy is registered.

在文件 AttributeSet.cpp 第 65 行定义.

引用了 policyId.

被这些函数引用 eve::attributes::computeAttributeValue().

◆ registerOp()

void eve::attributes::AttributeOperationRegistry::registerOp ( const std::string &  policyId,
Function  function 
)

Compatibility spelling for RPG's former custom-op facade.

在文件 AttributeSet.cpp 第 74 行定义.

引用了 function, policyId , 以及 registerOperation().

◆ registerOperation()

void eve::attributes::AttributeOperationRegistry::registerOperation ( const std::string &  policyId,
Function  function 
)

Register or replace a named policy; calls execute on the caller thread.

在文件 AttributeSet.cpp 第 59 行定义.

引用了 function , 以及 policyId.

被这些函数引用 registerOp().

◆ unregisterOp()

void eve::attributes::AttributeOperationRegistry::unregisterOp ( const std::string &  policyId)

Compatibility spelling for RPG's former custom-op facade.

在文件 AttributeSet.cpp 第 78 行定义.

引用了 policyId , 以及 unregisterOperation().

◆ unregisterOperation()

void eve::attributes::AttributeOperationRegistry::unregisterOperation ( const std::string &  policyId)

Remove a named policy.

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

引用了 policyId.

被这些函数引用 unregisterOp().


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