|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Thread-safe LRU cache for scaled images. More...
#include <async_image_loader.h>
Public Member Functions | |
| ImageCache (size_t maxSize=300) | |
| void | clear () |
| bool | contains (const QString &key) const |
| QPixmap | get (const QString &key) |
| size_t | hitCount () const |
| void | insert (const QString &key, const QPixmap &pixmap) |
| size_t | missCount () const |
| size_t | size () const |
Thread-safe LRU cache for scaled images.
Provides O(1) lookup and bounded memory usage with LRU eviction.
Definition at line 51 of file async_image_loader.h.
|
explicit |
Definition at line 20 of file async_image_loader.cpp.
| void ImageCache::clear | ( | ) |
Definition at line 69 of file async_image_loader.cpp.
| bool ImageCache::contains | ( | const QString & | key | ) | const |
Definition at line 22 of file async_image_loader.cpp.
| QPixmap ImageCache::get | ( | const QString & | key | ) |
Definition at line 28 of file async_image_loader.cpp.
|
inline |
Definition at line 64 of file async_image_loader.h.
| void ImageCache::insert | ( | const QString & | key, |
| const QPixmap & | pixmap ) |
Definition at line 45 of file async_image_loader.cpp.
|
inline |
Definition at line 68 of file async_image_loader.h.
| size_t ImageCache::size | ( | ) | const |
Definition at line 76 of file async_image_loader.cpp.