|
Krita Source Code Documentation
|
#include <KisLazySharedCacheStorage.h>
Classes | |
| struct | SharedStorage |
Public Types | |
| using | ConstType = std::add_const_t<T> |
| using | FactoryType = T*(Args...) |
Public Member Functions | |
| DataWrapperShared () | |
| DataWrapperShared (const DataWrapperShared &rhs)=default | |
| DataWrapperShared (T *value) | |
| bool | hasValue () const |
| ConstType * | lazyInitialize (const std::function< FactoryType > &factory, Args... args) |
| DataWrapperShared & | operator= (const DataWrapperShared &rhs)=default |
| void | reset () |
Private Attributes | |
| QSharedPointer< SharedStorage > | m_sharedStorage |
A policy-like class for sharing DataStorage object between the two different objects. It just ads one more level of locking to ensure thread-safety.
Definition at line 67 of file KisLazySharedCacheStorage.h.
| using KisLazySharedCacheStorageDetail::DataWrapperShared< T, Args >::ConstType = std::add_const_t<T> |
Definition at line 69 of file KisLazySharedCacheStorage.h.
| using KisLazySharedCacheStorageDetail::DataWrapperShared< T, Args >::FactoryType = T*(Args...) |
Definition at line 70 of file KisLazySharedCacheStorage.h.
|
inline |
Definition at line 87 of file KisLazySharedCacheStorage.h.
|
inline |
Definition at line 88 of file KisLazySharedCacheStorage.h.
|
default |
|
inline |
Definition at line 97 of file KisLazySharedCacheStorage.h.
References KisLazySharedCacheStorageDetail::DataWrapperShared< T, Args >::m_sharedStorage.
|
inline |
Definition at line 92 of file KisLazySharedCacheStorage.h.
References KisLazySharedCacheStorageDetail::DataWrapperShared< T, Args >::m_sharedStorage.
|
default |
|
inline |
Definition at line 102 of file KisLazySharedCacheStorage.h.
References KisLazySharedCacheStorageDetail::DataWrapperShared< T, Args >::m_sharedStorage.
|
private |
Definition at line 107 of file KisLazySharedCacheStorage.h.