载入中...
搜索中...
未找到
AttributeSet.cpp 文件参考
#include "attributes/AttributeSet.h"
#include "attributes/StateAccessAdapter.h"
#include "common/Capability.h"
#include "common/StateAccess.h"
#include <algorithm>
#include <cmath>
#include <utility>

浏览源代码.

命名空间

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

函数

const char * eve::attributes::attributeOperationName (AttributeOperation operation) noexcept
 Stable spelling of a built-in attribute operation. @ownership The returned string is a borrowed, process-static literal; the caller must not free or retain it as mutable storage. @nullable Never null for a valid enum value; the unknown-value spelling is also a process-static literal for an invalid value. @lifetime Valid for the process lifetime. @thread Thread-safe because the function reads no mutable state. @reentrancy Reentrant; it performs no callbacks.
 
eve::Result< ParsedAttributeOperation > eve::attributes::parseAttributeOperation (std::string_view operation, double value)
 Parse a built-in operation spelling used by existing data and APIs.
 
double eve::attributes::computeAttributeValue (const AttributeValue &attribute, const AttributeOperationRegistry *customOperations=nullptr)
 Compute one attribute using the canonical operation order.