Isis 3.0 Developer's Reference (API)
This is the parent of the caching algorithms. More...
|This stores the results of the caching algorithm. More...|
Public Member Functions
|Construct a caching algorithm. |
|Cleans up after a caching algorithm. |
|virtual CacheResult||recommendChunksToFree (QList< RawCubeChunk * > allocated, QList< RawCubeChunk * > justUsed, const Buffer &justRequested)=0|
|Call this to determine which chunks should be freed from memory. |
This is the parent of the caching algorithms.
The caching algorithms are given some limited/easy to acquire data about recent IOs and the allocated cube chunks. Their job is to quickly determine which allocated cube chunks should be put on disk or just freed from memory. These will not be called until there is at least a few allocated chunks in memory.
Construct a caching algorithm.
Cleans up after a caching algorithm.
|virtual CacheResult Isis::CubeCachingAlgorithm::recommendChunksToFree||(||QList< RawCubeChunk * >||allocated,|
|QList< RawCubeChunk * >||justUsed,|
|const Buffer &||justRequested|
Call this to determine which chunks should be freed from memory.
|allocated||This is an unordered list of all of the allocated chunks.|
|justUsed||This should be the chunks required in the current read or write. Many algorithms will use this to not clean it up.|
|justRequested||This must be the buffer area requested|