Doxygen
Loading...
Searching...
No Matches
CacheStatsWrapper Struct Reference
Collaboration diagram for CacheStatsWrapper:

Public Member Functions

 CacheStatsWrapper (CacheStatistics &stats, size_t capacity)
 ~CacheStatsWrapper ()
LookupCachecache ()

Private Attributes

CacheStatisticsm_statistics
Cache< std::string, LookupInfom_cache

Detailed Description

Definition at line 64 of file symbolresolver.cpp.

Constructor & Destructor Documentation

◆ CacheStatsWrapper()

CacheStatsWrapper::CacheStatsWrapper ( CacheStatistics & stats,
size_t capacity )
inline

Definition at line 67 of file symbolresolver.cpp.

67: m_statistics(stats), m_cache(capacity) {}
CacheStatistics & m_statistics
Cache< std::string, LookupInfo > m_cache

References m_cache, and m_statistics.

◆ ~CacheStatsWrapper()

CacheStatsWrapper::~CacheStatsWrapper ( )
inline

Definition at line 68 of file symbolresolver.cpp.

69 {
70 // merge the cache statistics at the end of a worker thread's life
72 }
static void mergeStatistics(CacheStatistics &stats, LookupCache &cache)

References m_cache, m_statistics, and mergeStatistics().

Member Function Documentation

◆ cache()

LookupCache & CacheStatsWrapper::cache ( )
inline

Definition at line 73 of file symbolresolver.cpp.

73{ return m_cache; }

References m_cache.

Member Data Documentation

◆ m_cache

Cache<std::string,LookupInfo> CacheStatsWrapper::m_cache
private

Definition at line 76 of file symbolresolver.cpp.

Referenced by cache(), CacheStatsWrapper(), and ~CacheStatsWrapper().

◆ m_statistics

CacheStatistics& CacheStatsWrapper::m_statistics
private

Definition at line 75 of file symbolresolver.cpp.

Referenced by CacheStatsWrapper(), and ~CacheStatsWrapper().


The documentation for this struct was generated from the following file: