All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RE_CachedObject Class Reference

Cached object implementation for RE_TextureCache. More...

#include <RE_CachedObject.h>

+ Inheritance diagram for RE_CachedObject:

Public Member Functions

 RE_CachedObject ()
 ~RE_CachedObject () override
void setInUse (bool inc)
virtual bool inUse ()
int getUsage () const
void incRef ()
void decRef ()
int getRefCount () const
void setCached (bool cached, const char *mapname)
bool isCached () const
const char * getName () const
bool setRemovalCallback (bool(*relCB)(void *, void *), void *relObject)
bool clearRemovalCallback (void *relObject)
int64 getMemoryUsage (bool inclusive) const override
- Public Member Functions inherited from RE_CachedObjectBase
 RE_CachedObjectBase ()
virtual ~RE_CachedObjectBase ()
void setVersion (RE_CacheVersion v)
RE_CacheVersion getVersion () const
void setExtraData (RE_CachedExtraData *data)
const RE_CachedExtraDataHandlegetExtraData () const
void setCacheTag (RE_CacheTagHandle h)
void resetCacheTag ()
void setInCache (bool c)
bool isInCache () const

Additional Inherited Members

- Public Attributes inherited from RE_CachedObjectBase
RE_CacheVersion myVersion
RE_CacheTagHandle myCacheTagHandle
bool myCachedFlag
RE_CachedExtraDataHandle myExtraData

Detailed Description

Cached object implementation for RE_TextureCache.

Definition at line 252 of file RE_CachedObject.h.

Constructor & Destructor Documentation

RE_CachedObject::RE_CachedObject ( )
RE_CachedObject::~RE_CachedObject ( )

Member Function Documentation

bool RE_CachedObject::clearRemovalCallback ( void relObject)
void RE_CachedObject::decRef ( )

Definition at line 267 of file RE_CachedObject.h.

int64 RE_CachedObject::getMemoryUsage ( bool  inclusive) const

Returns the amount of main memory (NOT graphics memory!) owned by this RE_CachedObject.

Reimplemented from RE_CachedObjectBase.

Reimplemented in RE_OGLTexture.

const char* RE_CachedObject::getName ( ) const

Definition at line 273 of file RE_CachedObject.h.

int RE_CachedObject::getRefCount ( ) const

Definition at line 268 of file RE_CachedObject.h.

int RE_CachedObject::getUsage ( ) const

Definition at line 261 of file RE_CachedObject.h.

void RE_CachedObject::incRef ( )

Definition at line 266 of file RE_CachedObject.h.

virtual bool RE_CachedObject::inUse ( )

Definition at line 260 of file RE_CachedObject.h.

bool RE_CachedObject::isCached ( ) const

Definition at line 271 of file RE_CachedObject.h.

void RE_CachedObject::setCached ( bool  cached,
const char *  mapname 
void RE_CachedObject::setInUse ( bool  inc)

Definition at line 314 of file RE_CachedObject.h.

bool RE_CachedObject::setRemovalCallback ( bool(*)(void *, void *)  relCB,
void relObject 

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