载入中...
搜索中...
未找到
eve::resource::ResourceCost结构体 参考

One positive resource and quantity pair in a canonical cost. 更多...

#include <ResourceAccount.h>

静态 Public 成员函数

static eve::Result< ResourceCost > create (std::string_view resourceId, std::int64_t amountValue)
 Construct and validate one cost item.
 

Public 属性

ResourceId resource
 
Amount amount
 

友元

bool operator== (const ResourceCost &, const ResourceCost &) noexcept=default
 Operator ==.
 

详细描述

One positive resource and quantity pair in a canonical cost.

在文件 ResourceAccount.h 第 118 行定义.

成员函数说明

◆ create()

eve::Result< ResourceCost > eve::resource::ResourceCost::create ( std::string_view  resourceId,
std::int64_t  amountValue 
)
static

友元及相关函数文档

◆ operator==

bool operator== ( const ResourceCost &  ,
const ResourceCost &   
)
friend

Operator ==.

类成员变量说明

◆ amount

Amount eve::resource::ResourceCost::amount

在文件 ResourceAccount.h 第 120 行定义.

被这些函数引用 create() , 以及 eve::transaction::AtomicBatch::protect().

◆ resource

ResourceId eve::resource::ResourceCost::resource

在文件 ResourceAccount.h 第 119 行定义.

被这些函数引用 create() , 以及 eve::transaction::AtomicBatch::protect().


该结构体的文档由以下文件生成: