xrpld
Loading...
Searching...
No Matches
xrpl::detail::AccountIdCache Class Reference

Caches the base58 representations of AccountIDs. More...

Collaboration diagram for xrpl::detail::AccountIdCache:

Classes

struct  CachedAccountID

Public Member Functions

 AccountIdCache (std::size_t count)
std::string toBase58 (AccountID const &id)

Private Attributes

std::vector< CachedAccountIDcache_
HardenedHash hasher_
std::atomic< std::uint64_tlocks_ = 0

Detailed Description

Caches the base58 representations of AccountIDs.

Definition at line 25 of file AccountID.cpp.

Constructor & Destructor Documentation

◆ AccountIdCache()

xrpl::detail::AccountIdCache::AccountIdCache ( std::size_t count)

Definition at line 44 of file AccountID.cpp.

Member Function Documentation

◆ toBase58()

std::string xrpl::detail::AccountIdCache::toBase58 ( AccountID const & id)

Definition at line 52 of file AccountID.cpp.

Member Data Documentation

◆ cache_

std::vector<CachedAccountID> xrpl::detail::AccountIdCache::cache_
private

Definition at line 35 of file AccountID.cpp.

◆ hasher_

HardenedHash xrpl::detail::AccountIdCache::hasher_
private

Definition at line 38 of file AccountID.cpp.

◆ locks_

std::atomic<std::uint64_t> xrpl::detail::AccountIdCache::locks_ = 0
private

Definition at line 41 of file AccountID.cpp.