TCachedAttribute Class Reference

class TCachedAttribute

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()

voidSetCacheClean()[inline]

Mark the cache status as clean

SetCacheDirty()

voidSetCacheDirty()[inline]

Mark the cache status as dirty

SetCacheDisabled()

voidSetCacheDisabled()[inline]

Mark the cache status as disabled.

SetCacheEnabled()

voidSetCacheEnabled()[inline]

Mark the cache status as enabled.

SetValue(const T &)

voidSetValue(const T &aValue)[inline]

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

Parameters

const T & aValuethe attribute value

Value()

const T &Value()[inline]

Getter

Member Data Documentation

TCacheAbility iCacheAbility

TCacheAbility iCacheAbility[protected]

TCacheStatus iCacheStatus

TCacheStatus iCacheStatus[protected]

T iValue

TiValue[protected]