24 #ifndef CubeCachingAlgorithm_h 25 #define CubeCachingAlgorithm_h 27 template <
typename T>
class QList;
94 const Buffer &justRequested) = 0;
Buffer for reading and writing cube data.
QList< RawCubeChunk * > * m_chunksToFree
If NULL, the algorithm did not succeed.
virtual ~CubeCachingAlgorithm()
Cleans up after a caching algorithm.
virtual ~CacheResult()
Free allocated memory.
virtual CacheResult recommendChunksToFree(QList< RawCubeChunk *> allocated, QList< RawCubeChunk *> justUsed, const Buffer &justRequested)=0
Call this to determine which chunks should be freed from memory.
QList< RawCubeChunk * > getChunksToFree() const
CubeCachingAlgorithm()
Construct a caching algorithm.
CacheResult & operator=(const CacheResult &other)
Assign one cache result to another.
This stores the results of the caching algorithm.
Namespace for ISIS/Bullet specific routines.
bool algorithmUnderstoodData() const
If this is true, then the results (be them empty or not) should be considered valid.
This is the parent of the caching algorithms
CacheResult()
Construct a cache algorithm result with the idea that the algorithm did not understand/was unable to ...