66 const Buffer &justRequested) {
72 if (justUsed.size() > 0) {
74 int minLine = justUsed[0]->getStartLine();
76 QListIterator<RawCubeChunk *> justUsedIterator(justUsed);
77 while (justUsedIterator.hasNext()) {
80 if (currentStart < minLine) minLine = currentStart;
83 if (minLine > m_minLine) {
85 QListIterator<RawCubeChunk *> allocatedIterator(allocated);
86 while (allocatedIterator.hasNext()) {
90 if (currentEnd < minLine) {
93 chunksToToss.append(chunk);
Buffer for reading and writing cube data.
virtual ~BoxcarCachingAlgorithm()
Frees the memory allocated by this caching algorithm.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
A section of raw data on the disk.
BoxcarCachingAlgorithm()
Construct a new BoxcarCachingAlgorithm.
virtual CacheResult recommendChunksToFree(QList< RawCubeChunk * > allocated, QList< RawCubeChunk * > justUsed, const Buffer &justRequested)
Please see the class description for how this algorithm works.
This stores the results of the caching algorithm.