|
Krita Source Code Documentation
|
#include <KisValueCache.h>
Inheritance diagram for KisValueCache< Initializer >:Public Types | |
| using | value_type = decltype(std::declval<Initializer>().initialize()) |
Public Member Functions | |
| void | clear () |
| bool | isValid () const |
| template<typename ... Args> | |
| KisValueCache (Args... args) | |
| operator const value_type & () const | |
| const value_type & | value () |
Private Attributes | |
| std::optional< value_type > | m_value |
A simple class for cache-like structures. It should be parametrized with a policy-class that has value_type initialize() method, which would be used for initializing the cache.
Definition at line 18 of file KisValueCache.h.
| using KisValueCache< Initializer >::value_type = decltype(std::declval<Initializer>().initialize()) |
Definition at line 20 of file KisValueCache.h.
|
inline |
Definition at line 23 of file KisValueCache.h.
|
inline |
Definition at line 44 of file KisValueCache.h.
References KisValueCache< Initializer >::m_value.
|
inline |
Definition at line 40 of file KisValueCache.h.
References KisValueCache< Initializer >::m_value.
|
inline |
Definition at line 36 of file KisValueCache.h.
References KisValueCache< Initializer >::value().
|
inline |
Definition at line 28 of file KisValueCache.h.
References KisValueCache< Initializer >::m_value.
|
private |
Definition at line 49 of file KisValueCache.h.