载入中...
搜索中...
未找到
eve::resource::AccountNonce类 参考

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()

constexpr eve::resource::AccountNonce::AccountNonce ( )
constexprdefaultnoexcept

Construct the invalid zero nonce.

成员函数说明

◆ isZero()

◆ value()

constexpr std::uint64_t eve::resource::AccountNonce::value ( ) const
inlineconstexprnoexcept

Return the opaque numeric value for diagnostics and comparisons.

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

被这些函数引用 eve::resource::Reservation::isValid() , 以及 eve::resource::Receipt::isValid().

友元及相关函数文档

◆ allocateAccountNonce

EVENGINE_API_FOUNDATION eve::Result< AccountNonce > 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<=>

constexpr auto operator<=> ( const AccountNonce &  ,
const AccountNonce &   
)
friend

Operator <=>.

◆ operator==

constexpr bool operator== ( const AccountNonce &  ,
const AccountNonce &   
)
friend

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