Class hierarchy   Compound list   File list   Compound Members  

Cache Class Reference

Generic cache. More...

List of all members.

Public Members


Detailed Description

Generic cache.

Each data object has a name which is its load key. The pure virtual loadNew() method must be overridden to provide specific object loading behaviour.


Member Function Documentation

Cache::Cache(ResourceStream& Resources)

Construct a cache, and attach a resource stream that will be used to load new objects from.

virtual T* Cache::load(char* name) [virtual]

Load an object from the cache.

ResourceStream& Cache::getResourceStream()

Returns the resource stream associated with this cache.


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