game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
LRUCache< Key, Value >::Stats Struct Reference

#include <lru_cache.h>

Public Member Functions

float hitRate () const

Public Attributes

size_t currentSize = 0
size_t evictions = 0
size_t expirations = 0
size_t hits = 0
size_t maxSize = 0
size_t misses = 0

Detailed Description

template<typename Key, typename Value>
struct LRUCache< Key, Value >::Stats

Definition at line 248 of file lru_cache.h.

Member Function Documentation

◆ hitRate()

template<typename Key, typename Value>
float LRUCache< Key, Value >::Stats::hitRate ( ) const
inline

Definition at line 257 of file lru_cache.h.

References hits, and misses.

Member Data Documentation

◆ currentSize

template<typename Key, typename Value>
size_t LRUCache< Key, Value >::Stats::currentSize = 0

Definition at line 254 of file lru_cache.h.

◆ evictions

template<typename Key, typename Value>
size_t LRUCache< Key, Value >::Stats::evictions = 0

Definition at line 252 of file lru_cache.h.

◆ expirations

template<typename Key, typename Value>
size_t LRUCache< Key, Value >::Stats::expirations = 0

Definition at line 253 of file lru_cache.h.

◆ hits

template<typename Key, typename Value>
size_t LRUCache< Key, Value >::Stats::hits = 0

Definition at line 250 of file lru_cache.h.

Referenced by hitRate().

◆ maxSize

template<typename Key, typename Value>
size_t LRUCache< Key, Value >::Stats::maxSize = 0

Definition at line 255 of file lru_cache.h.

◆ misses

template<typename Key, typename Value>
size_t LRUCache< Key, Value >::Stats::misses = 0

Definition at line 251 of file lru_cache.h.

Referenced by hitRate().


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