Public Types | Public Member Functions | Protected Member Functions | List of all members
istd::TCachedUpdateManagerWrap< Base > Class Template Reference

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

#include <TCachedUpdateManagerWrap.h>

Inheritance 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. More...
 
void InvalidateCache (const IChangeable::ChangeSet &changeSet)
 Make cache invalid. More...
 
void SetCacheValid ()
 Say that cache is valid. More...
 
virtual bool CalculateCache (const IChangeable::ChangeSet &changeSet)
 Calculate cache. More...
 

Detailed Description

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

Help wrapper class supporting of cached parts.

Definition at line 16 of file TCachedUpdateManagerWrap.h.

Member Typedef Documentation

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

Definition at line 19 of file TCachedUpdateManagerWrap.h.

Constructor & Destructor Documentation

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

Definition at line 129 of file TCachedUpdateManagerWrap.h.

Member Function Documentation

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

Definition at line 62 of file TCachedUpdateManagerWrap.h.

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 imath::TFulcrumGridFunctionBase< Argument, Result, Fulcrums >, and iimg::CReflectedBitmapBase.

Definition at line 120 of file TCachedUpdateManagerWrap.h.

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

Definition at line 75 of file TCachedUpdateManagerWrap.h.

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 87 of file TCachedUpdateManagerWrap.h.

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 102 of file TCachedUpdateManagerWrap.h.

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

Say that cache is valid.

Definition at line 111 of file TCachedUpdateManagerWrap.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy