8#ifndef CubeCachingAlgorithm_h
9#define CubeCachingAlgorithm_h
11template <
typename T>
class QList;
62 QList<RawCubeChunk *> *m_chunksToFree;
77 QList<RawCubeChunk *> allocated, QList<RawCubeChunk *> justUsed,
78 const Buffer &justRequested) = 0;
Buffer for reading and writing cube data.
Definition Buffer.h:53
This stores the results of the caching algorithm.
Definition CubeCachingAlgorithm.h:45
CacheResult & operator=(const CacheResult &other)
Assign one cache result to another.
Definition CubeCachingAlgorithm.cpp:111
QList< RawCubeChunk * > getChunksToFree() const
Definition CubeCachingAlgorithm.cpp:92
CacheResult()
Construct a cache algorithm result with the idea that the algorithm did not understand/was unable to ...
Definition CubeCachingAlgorithm.cpp:35
bool algorithmUnderstoodData() const
If this is true, then the results (be them empty or not) should be considered valid.
Definition CubeCachingAlgorithm.cpp:83
virtual ~CacheResult()
Free allocated memory.
Definition CubeCachingAlgorithm.cpp:68
This is the parent of the caching algorithms.
Definition CubeCachingAlgorithm.h:31
virtual CacheResult recommendChunksToFree(QList< RawCubeChunk * > allocated, QList< RawCubeChunk * > justUsed, const Buffer &justRequested)=0
Call this to determine which chunks should be freed from memory.
CubeCachingAlgorithm()
Construct a caching algorithm.
Definition CubeCachingAlgorithm.cpp:20
virtual ~CubeCachingAlgorithm()
Cleans up after a caching algorithm.
Definition CubeCachingAlgorithm.cpp:27
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16