ICF 3.0.5.47
Technical documentation of ICF Libraries
istd::TCachedUpdateManagerWrap< Base > Class Template Reference

Help wrapper class supporting of cached parts. More...

#include <TCachedUpdateManagerWrap.h>

Inherits Base.

Collaboration diagram for istd::TCachedUpdateManagerWrap< Base >:

Public Types

typedef Base BaseClass
 

Public Member Functions

 TCachedUpdateManagerWrap ()
 
virtual void BeginChanges (const IChangeable::ChangeSet &changeSet)
 
virtual void EndChanges (const IChangeable::ChangeSet &changeSet)
 

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.
 

Detailed Description

template<class Base>
class istd::TCachedUpdateManagerWrap< Base >

Help wrapper class supporting of cached parts.

Definition at line 20 of file TCachedUpdateManagerWrap.h.

Member Typedef Documentation

◆ BaseClass

template<class Base >
Base istd::TCachedUpdateManagerWrap< Base >::BaseClass

Definition at line 23 of file TCachedUpdateManagerWrap.h.

Constructor & Destructor Documentation

◆ TCachedUpdateManagerWrap()

template<class Base >
istd::TCachedUpdateManagerWrap< Base >::TCachedUpdateManagerWrap ( )

Definition at line 133 of file TCachedUpdateManagerWrap.h.

Member Function Documentation

◆ BeginChanges()

template<class Base >
void istd::TCachedUpdateManagerWrap< Base >::BeginChanges ( const IChangeable::ChangeSet & changeSet)
virtual

Definition at line 66 of file TCachedUpdateManagerWrap.h.

◆ CalculateCache()

template<class Base >
bool istd::TCachedUpdateManagerWrap< Base >::CalculateCache ( const IChangeable::ChangeSet & changeSet)
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 124 of file TCachedUpdateManagerWrap.h.

◆ EndChanges()

template<class Base >
void istd::TCachedUpdateManagerWrap< Base >::EndChanges ( const IChangeable::ChangeSet & changeSet)
virtual

Definition at line 79 of file TCachedUpdateManagerWrap.h.

◆ EnsureCacheValid()

template<class Base >
bool istd::TCachedUpdateManagerWrap< Base >::EnsureCacheValid ( ) const
inlineprotected

Ensures cache is valid.

If cache is not valid method CalculateCache will be called to update it.

Definition at line 91 of file TCachedUpdateManagerWrap.h.

◆ InvalidateCache()

template<class Base >
void istd::TCachedUpdateManagerWrap< Base >::InvalidateCache ( const IChangeable::ChangeSet & changeSet)
protected

Make cache invalid.

This is automatically done when model/observer mechanism is used.

Definition at line 106 of file TCachedUpdateManagerWrap.h.

◆ SetCacheValid()

template<class Base >
void istd::TCachedUpdateManagerWrap< Base >::SetCacheValid ( )
inlineprotected

Say that cache is valid.

Definition at line 115 of file TCachedUpdateManagerWrap.h.

References istd::IChangeable::ChangeSet::Reset().


The documentation for this class was generated from the following file:

© Witold Gantzke and Kirill Lepskiy