rippled
Classes | Public Member Functions | Private Attributes | List of all members
ripple::detail::AccountIdCache Class Reference

Caches the base58 representations of AccountIDs. More...

Collaboration diagram for ripple::detail::AccountIdCache:
Collaboration graph
[legend]

Classes

struct  CachedAccountID
 

Public Member Functions

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

Private Attributes

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

Detailed Description

Caches the base58 representations of AccountIDs.

Definition at line 35 of file AccountID.cpp.

Constructor & Destructor Documentation

◆ AccountIdCache()

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

Definition at line 54 of file AccountID.cpp.

Member Function Documentation

◆ toBase58()

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

Definition at line 62 of file AccountID.cpp.

Member Data Documentation

◆ cache_

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

Definition at line 45 of file AccountID.cpp.

◆ hasher_

hardened_hash ripple::detail::AccountIdCache::hasher_
private

Definition at line 48 of file AccountID.cpp.

◆ locks_

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

Definition at line 51 of file AccountID.cpp.