26 #ifndef __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDBANDBLOCKSMANAGER_H
27 #define __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDBANDBLOCKSMANAGER_H
32 #include "../raster/Raster.h"
39 #include <boost/noncopyable.hpp>
70 const unsigned char maxMemPercentUsed );
83 bool initialize(
const unsigned int maxNumberOfCacheBlocks,
93 return m_syncPtr ?
true :
false;
110 void* getBlockPointer(
unsigned int band,
unsigned int x,
unsigned int y );
119 return m_maxNumberOfCacheBlocks;
144 : m_b( 0 ), m_y( 0 ), m_x( 0 )
183 #endif // __TERRALIB_RASTER_INTERNAL_SYNCHRONIZEDBANDBLOCKSMANAGER_H
#define TERASTEREXPORT
You can use this macro in order to export/import classes and functions from this module.
std::vector< std::vector< std::vector< unsigned char * > > > m_blocksPointers
3D Matrix of block pointers indexed as [band][blockYIndex][blockXIndex].
RasterSynchronizer * m_syncPtr
A pointer to the synchronizer used by this instance, of null if not initialized.
An access synchronizer to be used in SynchronizedRaster raster instances.
unsigned int m_blocksFifoNextSwapBlockIndex
The next block swapp index over m_blocksFifo.
std::vector< BlockIndex > m_blocksFifo
blocks swap FIFO.
std::vector< unsigned char * > m_blocksHandler
Cache blocks handler.
unsigned int m_maxNumberOfCacheBlocks
The maximum number of cache blocks.
unsigned int getMaxNumberOfCacheBlocks() const
The maximum number of cache blocks.
An abstract class for raster data strucutures.
unsigned int m_y
Block index over the Y axis.
An access synchronizer to be used in SynchronizedRaster raster instances.
Synchronized raster raster band blocks manager.
unsigned char * m_getBlockPointer_BlkPtr
bool isInitialized() const
Returns true if this instance is initialized.
unsigned int m_globalBlockSizeBytes
The maximum block size for all bands.
RasterSynchronizer * getSynchronizer() const
Return a pointer to the assotiated synchronizer instance or NULL if there is none.
Configuration flags for the Raster module of TerraLib.
unsigned int m_b
Block band index.
unsigned int m_globalBlocksNumberY
The maximum number of blocks (Y axis) for all bands.
unsigned int m_globalBlocksNumberX
The maximum number of blocks (X axis) for all bands.
unsigned int m_x
Block index over the X axis.