|
ACF $AcfVersion:0$
|
Help wrapper class supporting of cached parts. More...
#include <TCachedUpdateManagerWrap.h>
Public Types | |
| typedef Base | BaseClass |
Public Member Functions | |
| TCachedUpdateManagerWrap () | |
| virtual void | BeginChanges (const IChangeable::ChangeSet &changeSet) override |
| virtual void | EndChanges (const IChangeable::ChangeSet &changeSet) override |
Protected Member Functions | |
| bool | EnsureCacheValid () const |
| Ensures cache is valid. | |
| void | InvalidateCache (const IChangeable::ChangeSet &changeSet) |
| Make cache invalid. | |
| void | SetCacheValid () |
| Say that cache is valid. | |
| virtual bool | CalculateCache (const IChangeable::ChangeSet &changeSet) |
| Calculate cache. | |
Help wrapper class supporting of cached parts.
Definition at line 16 of file TCachedUpdateManagerWrap.h.
| typedef Base istd::TCachedUpdateManagerWrap< Base >::BaseClass |
Definition at line 19 of file TCachedUpdateManagerWrap.h.
| istd::TCachedUpdateManagerWrap< Base >::TCachedUpdateManagerWrap | ( | ) |
Definition at line 129 of file TCachedUpdateManagerWrap.h.
|
overridevirtual |
Definition at line 62 of file TCachedUpdateManagerWrap.h.
|
inlineprotectedvirtual |
Calculate cache.
It will be called, if cache was not valid and EnsureCacheValid() is called. Default implementation does nothing and is provided to ensure that base class for all derived classes implement this method.
Reimplemented in iimg::CReflectedBitmapBase, and imath::TFulcrumGridFunctionBase< Argument, Result, Fulcrums >.
Definition at line 120 of file TCachedUpdateManagerWrap.h.
|
overridevirtual |
Definition at line 75 of file TCachedUpdateManagerWrap.h.
|
inlineprotected |
Ensures cache is valid.
If cache is not valid method CalculateCache will be called to update it.
Definition at line 87 of file TCachedUpdateManagerWrap.h.
|
protected |
Make cache invalid.
This is automatically done when model/observer mechanism is used.
Definition at line 102 of file TCachedUpdateManagerWrap.h.
|
inlineprotected |
Say that cache is valid.
Definition at line 111 of file TCachedUpdateManagerWrap.h.
References istd::IChangeable::ChangeSet::Reset().