![]() |
MySQL 9.3.0
Source Code Documentation
|
#include <cache_manager.h>
Public Member Functions | |
CachedObject (CacheManager *parent=nullptr) | |
CachedObject (CachedObject &&other) | |
template<typename... Args> | |
CachedObject (CacheManager *parent, bool wait, Args &&...args) | |
~CachedObject () | |
CachedObject & | operator= (CachedObject &&other) |
bool | empty () const |
bool | operator== (const Object &obj) const |
Object | operator-> () |
Object | get () |
void | set_dirty () |
Mark that the object is dirty. More... | |
void | set_clean () |
Mark the the object is clean. More... | |
bool | is_dirty () const |
CacheManager * | get_parent () const |
Public Attributes | |
CacheManager * | parent_ |
bool | wait_ {false} |
Object | object_ |
Private Attributes | |
bool | dirty_ {false} |
|
inline |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Mark the the object is clean.
After marking object dirty, this method removes the dirty flag. It is useful after successful processing Obj
, and there is no need of rollback its state.
|
inline |
Mark that the object is dirty.
Dirty object means that it is release by the manager without trying to cache it. This functionality is useful, when the user code, can't rollback changed done at instance of Obj
thus releasing is the best option.
|
private |
Object collector::CacheManager< Obj >::CachedObject::object_ |
CacheManager* collector::CacheManager< Obj >::CachedObject::parent_ |
bool collector::CacheManager< Obj >::CachedObject::wait_ {false} |