Isis 3 Programmer Reference
|
This algorithm is designed for applications that jump around between a couple of spots in the cube with a difficult to predict pattern but always the same places in the cube. More...
#include <BoxcarCachingAlgorithm.h>
Public Member Functions | |
BoxcarCachingAlgorithm () | |
Construct a new BoxcarCachingAlgorithm. More... | |
virtual | ~BoxcarCachingAlgorithm () |
Frees the memory allocated by this caching algorithm. More... | |
virtual CacheResult | recommendChunksToFree (QList< RawCubeChunk * > allocated, QList< RawCubeChunk * > justUsed, const Buffer &justRequested) |
Please see the class description for how this algorithm works. More... | |
Private Attributes | |
int | m_minLine |
Used to calculate what lines to cache. More... | |
This algorithm is designed for applications that jump around between a couple of spots in the cube with a difficult to predict pattern but always the same places in the cube.
This was designed for ProcessMosaic which jumps between band 1 and band n in the possible patterns (where A is a line on band 1 and B is a line on band N): A,A or A,B,A or A,B,B,A
Definition at line 32 of file BoxcarCachingAlgorithm.h.
Isis::BoxcarCachingAlgorithm::BoxcarCachingAlgorithm | ( | ) |
Construct a new BoxcarCachingAlgorithm.
The last numUniqueIOs will be kept in the cache, while the other chunks in the cache will all be tossed.
Definition at line 27 of file BoxcarCachingAlgorithm.cpp.
References m_minLine.
|
virtual |
Frees the memory allocated by this caching algorithm.
Definition at line 35 of file BoxcarCachingAlgorithm.cpp.
|
virtual |
Please see the class description for how this algorithm works.
allocated | All of the allocated cube chunks |
justUsed | The cube chunks used in the last I/O |
justRequested | The buffer passed into the last I/O |
Implements Isis::CubeCachingAlgorithm.
Definition at line 49 of file BoxcarCachingAlgorithm.cpp.
References Isis::RawCubeChunk::getStartLine(), Isis::RawCubeChunk::lineCount(), and m_minLine.
|
private |
Used to calculate what lines to cache.
Definition at line 42 of file BoxcarCachingAlgorithm.h.
Referenced by BoxcarCachingAlgorithm(), and recommendChunksToFree().