ScummVM API documentation
Gnap::ResourceCacheTemplate< ResourceClass, ResourceType, FreeAfterLoad > Class Template Reference

Classes

struct  Resource
 

Public Member Functions

 ResourceCacheTemplate (DatManager *dat)
 
ResourceClass * get (int resourceId)
 
void release (int resourceId)
 
void purge (bool force=false)
 

Protected Types

typedef Common::HashMap< int, Resource * > CacheMap
 
typedef CacheMap::iterator CacheMapIterator
 

Protected Member Functions

Resourcefind (int resourceId)
 
ResourceClass * load (int resourceId)
 

Protected Attributes

DatManager_dat
 
CacheMap _cache
 

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