TCachedAttribute Class Reference

class TCachedAttribute
Public Member Functions
TCachedAttribute ()
TCacheAbility CacheAbility ()
TCacheStatus CacheStatus ()
TBool IsCacheValid ()
void SetCacheClean ()
void SetCacheDirty ()
void SetCacheDisabled ()
void SetCacheEnabled ()
void SetValue (const T &)
const T & Value ()
Protected Attributes
TCacheAbility iCacheAbility
TCacheStatus iCacheStatus
T iValue

Constructor & Destructor Documentation

TCachedAttribute()

TCachedAttribute ( ) [inline]

Constuctor : set the cache as Dirty

Member Functions Documentation

CacheAbility()

TCacheAbility CacheAbility ( ) const [inline]

Getter

CacheStatus()

TCacheStatus CacheStatus ( ) const [inline]

Getter

IsCacheValid()

TBool IsCacheValid ( ) const [inline]

Check if the cache is up to date

SetCacheClean()

void SetCacheClean ( ) [inline]

Mark the cache status as clean

SetCacheDirty()

void SetCacheDirty ( ) [inline]

Mark the cache status as dirty

SetCacheDisabled()

void SetCacheDisabled ( ) [inline]

Mark the cache status as disabled.

SetCacheEnabled()

void SetCacheEnabled ( ) [inline]

Mark the cache status as enabled.

SetValue(const T &)

void SetValue ( const T & aValue ) [inline]

Setter: set the attribute value, mark the cache clean if it was enable

Parameters

const T & aValue the attribute value

Value()

const T & Value ( ) [inline]

Getter

Member Data Documentation

TCacheAbility iCacheAbility

TCacheAbility iCacheAbility [protected]

TCacheStatus iCacheStatus

TCacheStatus iCacheStatus [protected]

T iValue

T iValue [protected]