21 #include "prt/Object.h" 22 #include "prt/ContentType.h" 92 virtual const void* insertAndGetTransientBlob(
ContentType type,
const wchar_t* key,
const void* ptr) = 0;
102 virtual const void* getTransientBlob(
ContentType type,
const wchar_t* key)
const = 0;
110 virtual void releaseTransientBlob(
ContentType type,
const wchar_t* key) = 0;
121 virtual bool tryLockPersistentBlobs(
ContentType type,
const wchar_t* key) = 0;
131 virtual void insertPersistentBlobAndLock(PersistentBlobType type,
const wchar_t* key,
const void* data,
size_t size) = 0;
145 virtual const void* getPersistentBlob(PersistentBlobType type,
const wchar_t* key,
size_t* size)
const = 0;
154 virtual void releasePersistentBlob(PersistentBlobType type,
const wchar_t* key) = 0;
163 virtual void unlockPersistentBlob(PersistentBlobType type,
const wchar_t* key) = 0;
173 virtual void flushAll() = 0;
186 virtual void flushContentType(
ContentType type) = 0;
199 virtual void flushEntry(
ContentType type,
const wchar_t* key) = 0;
208 static void deleteTransientBlob(
const void *ptr);
CacheType
Definition: Cache.h:223
A straight-forward cache implementation.
Definition: Cache.h:224
ContentType
Definition: ContentType.h:28
The Procedural Runtime API namespace. The prt namespace contains the top level entry points into the ...
Definition: Annotation.h:24
PersistentBlobType
Definition: Cache.h:58
Detects identical permanent blobs (i.e. textures) and removes that redundancy.
Definition: Cache.h:225