xrpld
Loading...
Searching...
No Matches
xrpl::AssetCache::AccountKey Struct Referencefinal
Inheritance diagram for xrpl::AssetCache::AccountKey:
Collaboration diagram for xrpl::AssetCache::AccountKey:

Classes

struct  Hash

Public Member Functions

 AccountKey (AccountID const &account, LineDirection direction, std::size_t hash)
 AccountKey (AccountKey const &other)=default
AccountKeyoperator= (AccountKey const &other)=default
bool operator== (AccountKey const &lhs) const
std::size_t getHash () const

Public Attributes

AccountID account
LineDirection direction
std::size_t hashValue
friend Object

Static Private Member Functions

static auto & getCounter () noexcept

Detailed Description

Definition at line 55 of file AssetCache.h.

Constructor & Destructor Documentation

◆ AccountKey() [1/2]

xrpl::AssetCache::AccountKey::AccountKey ( AccountID const & account,
LineDirection direction,
std::size_t hash )

Definition at line 61 of file AssetCache.h.

◆ AccountKey() [2/2]

xrpl::AssetCache::AccountKey::AccountKey ( AccountKey const & other)
default

Member Function Documentation

◆ operator=()

AccountKey & xrpl::AssetCache::AccountKey::operator= ( AccountKey const & other)
default

◆ operator==()

bool xrpl::AssetCache::AccountKey::operator== ( AccountKey const & lhs) const

Definition at line 72 of file AssetCache.h.

◆ getHash()

std::size_t xrpl::AssetCache::AccountKey::getHash ( ) const
nodiscard

Definition at line 79 of file AssetCache.h.

◆ getCounter()

auto & xrpl::CountedObject< AccountKey >::getCounter ( )
staticprivatenoexceptinherited

Definition at line 109 of file CountedObject.h.

Member Data Documentation

◆ account

AccountID xrpl::AssetCache::AccountKey::account

Definition at line 57 of file AssetCache.h.

◆ direction

LineDirection xrpl::AssetCache::AccountKey::direction

Definition at line 58 of file AssetCache.h.

◆ hashValue

std::size_t xrpl::AssetCache::AccountKey::hashValue

Definition at line 59 of file AssetCache.h.

◆ Object

Definition at line 134 of file CountedObject.h.