Public Member Functions | |
bool | in_cache (const locator &item) const |
const T * | locate_in_cache (const locator &item) const |
Returns a pointer to the cached value, or nullptr if not found. More... | |
T & | access_in_cache (const locator &item) |
Returns a reference to the cache item associated with the given key. More... | |
void | add_to_cache (const locator &item, T data) |
void | flush () |
Private Attributes | |
std::unordered_map< locator, T > | content_ |
Definition at line 77 of file picture.cpp.
|
inline |
Returns a reference to the cache item associated with the given key.
If no corresponding value is found, a default instance will be created.
Definition at line 99 of file picture.cpp.
References image::cache_type< T >::content_.
|
inline |
Definition at line 104 of file picture.cpp.
References image::cache_type< T >::content_, and data.
|
inline |
Definition at line 109 of file picture.cpp.
References image::cache_type< T >::content_.
|
inline |
Definition at line 80 of file picture.cpp.
References image::cache_type< T >::content_.
|
inline |
Returns a pointer to the cached value, or nullptr if not found.
Definition at line 86 of file picture.cpp.
References image::cache_type< T >::content_.
|
private |
Definition at line 115 of file picture.cpp.
Referenced by image::cache_type< T >::access_in_cache(), image::cache_type< T >::add_to_cache(), image::cache_type< T >::flush(), image::cache_type< T >::in_cache(), and image::cache_type< T >::locate_in_cache().