64 const Buffer &justRequested) {
68 if (justUsed.size() > 0) {
70 int minLine = justUsed[0]->getStartLine();
72 QListIterator<RawCubeChunk *> justUsedIterator(justUsed);
73 while (justUsedIterator.hasNext()) {
76 if (currentStart < minLine) minLine = currentStart;
81 QListIterator<RawCubeChunk *> allocatedIterator(allocated);
82 while (allocatedIterator.hasNext()) {
86 if (currentEnd < minLine) {
87 chunksToToss.append(chunk);
Buffer for reading and writing cube data.
virtual ~BoxcarCachingAlgorithm()
Frees the memory allocated by this caching algorithm.
virtual CacheResult recommendChunksToFree(QList< RawCubeChunk *> allocated, QList< RawCubeChunk *> justUsed, const Buffer &justRequested)
Please see the class description for how this algorithm works.
int m_minLine
Used to calculate what lines to cache.
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.
This stores the results of the caching algorithm.
Namespace for ISIS/Bullet specific routines.