78 const Buffer &justRequested) {
83 if(!justUsed.size() ||
85 ((*m_chunksToKeep)[
m_currentIo][0] != justUsed[0] &&
93 QListIterator<RawCubeChunk *> allocatedIterator(allocated);
95 while(allocatedIterator.hasNext()) {
102 found = chunksForIo.indexOf(chunk) != -1;
106 chunksToToss.append(chunk);
Buffer for reading and writing cube data.
int m_currentIo
This keeps track of our position inside of m_chunksToKeep.
FilterCachingAlgorithm(int numParallelIOs)
Construct a new FilterCachingAlgorithm.
QList< QList< RawCubeChunk *> > * m_chunksToKeep
This is stored from parallel read # -> list of chunks for that read.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
virtual ~FilterCachingAlgorithm()
Frees the memory allocated by this caching algorithm.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
virtual CacheResult recommendChunksToFree(QList< RawCubeChunk *> allocated, QList< RawCubeChunk *> justUsed, const Buffer &justRequested)
Please see the class description for how this algorithm works.
A section of raw data on the disk.
This stores the results of the caching algorithm.
Namespace for ISIS/Bullet specific routines.