Opaque process-local identity of the account that issued a credential. 更多...
#include <ResourceAccount.h>
Public 成员函数 | |
| constexpr | AccountNonce () noexcept=default |
| Construct the invalid zero nonce. | |
| constexpr std::uint64_t | value () const noexcept |
| Return the opaque numeric value for diagnostics and comparisons. | |
| constexpr bool | isZero () const noexcept |
| Whether this nonce is invalid/zero. | |
友元 | |
| constexpr bool | operator== (const AccountNonce &, const AccountNonce &) noexcept=default |
| constexpr auto | operator<=> (const AccountNonce &, const AccountNonce &) noexcept=default |
| Operator <=>. | |
| EVENGINE_API_FOUNDATION eve::Result< AccountNonce > | allocateAccountNonce () |
| Allocate a process-local account identity for a credential issuer. | |
详细描述
Opaque process-local identity of the account that issued a credential.
The non-zero constructor is private: callers can copy an issued nonce as part of a credential, but cannot manufacture an account identity from an integer. The common allocator is the sole issuer and never stores a raw object pointer.
在文件 ResourceAccount.h 第 237 行定义.
构造及析构函数说明
◆ AccountNonce()
|
constexprdefaultnoexcept |
Construct the invalid zero nonce.
成员函数说明
◆ isZero()
|
inlineconstexprnoexcept |
Whether this nonce is invalid/zero.
在文件 ResourceAccount.h 第 246 行定义.
被这些函数引用 eve::attributes::AttributeSetResourceAccount::canAfford(), eve::economy::EconomyLedgerResourceAccount::canAfford(), eve::inventory::InventoryResourceAccount::canAfford(), eve::attributes::AttributeSetResourceAccount::commit(), eve::economy::EconomyLedgerResourceAccount::commit(), eve::inventory::InventoryResourceAccount::commit(), eve::attributes::AttributeSetResourceAccount::credit(), eve::economy::EconomyLedgerResourceAccount::credit(), eve::inventory::InventoryResourceAccount::credit(), eve::inventory::InventoryResourceAccount::debit(), eve::inventory::InventoryResourceAccount::reserve(), eve::attributes::AttributeSetResourceAccount::rollback(), eve::economy::EconomyLedgerResourceAccount::rollback() , 以及 eve::inventory::InventoryResourceAccount::rollback().
◆ value()
|
inlineconstexprnoexcept |
Return the opaque numeric value for diagnostics and comparisons.
在文件 ResourceAccount.h 第 243 行定义.
被这些函数引用 eve::resource::Reservation::isValid() , 以及 eve::resource::Receipt::isValid().
友元及相关函数文档
◆ allocateAccountNonce
|
friend |
Allocate a process-local account identity for a credential issuer.
- 返回
- A non-zero nonce, or a failed Result after exhaustion.
- 备注
- The nonce is an opaque value and is not a pointer or persistent object identity. Each adapter instance must retain its own nonce.
在文件 ResourceAccount.cpp 第 27 行定义.
◆ operator<=>
|
friend |
Operator <=>.
◆ operator==
|
friend |
该类的文档由以下文件生成:
- src/engine/common/ResourceAccount.h