|
Krita Source Code Documentation
|
#include <KisLazySharedCacheStorage.h>
Public Types | |
| using | ConstType = std::add_const_t<T> |
| using | FactoryType = T*(Args...) |
Public Member Functions | |
| DataStorage () | |
| DataStorage (const DataStorage &rhs)=default | |
| DataStorage (T *value) | |
| bool | hasValue () const |
| ConstType * | lazyInitialize (const std::function< FactoryType > &factory, Args... args) |
| DataStorage & | operator= (const DataStorage &rhs)=default |
| void | reset () |
Private Attributes | |
| StorageType | m_value |
A policy-like class for sharing the data between two objects
Definition at line 28 of file KisLazySharedCacheStorage.h.
| using KisLazySharedCacheStorageDetail::DataStorage< StorageType, T, Args >::ConstType = std::add_const_t<T> |
Definition at line 30 of file KisLazySharedCacheStorage.h.
| using KisLazySharedCacheStorageDetail::DataStorage< StorageType, T, Args >::FactoryType = T*(Args...) |
Definition at line 31 of file KisLazySharedCacheStorage.h.
|
inline |
Definition at line 33 of file KisLazySharedCacheStorage.h.
|
inline |
Definition at line 34 of file KisLazySharedCacheStorage.h.
|
default |
|
inline |
Definition at line 45 of file KisLazySharedCacheStorage.h.
References KisLazySharedCacheStorageDetail::DataStorage< StorageType, T, Args >::m_value.
|
inline |
Definition at line 38 of file KisLazySharedCacheStorage.h.
References KisLazySharedCacheStorageDetail::DataStorage< StorageType, T, Args >::m_value.
|
default |
|
inline |
Definition at line 49 of file KisLazySharedCacheStorage.h.
References KisLazySharedCacheStorageDetail::DataStorage< StorageType, T, Args >::m_value.
|
private |
Definition at line 54 of file KisLazySharedCacheStorage.h.