Synchronized raster raster band blocks manager.
More...
#include <SynchronizedBandBlocksManager.h>
Synchronized raster raster band blocks manager.
Definition at line 50 of file SynchronizedBandBlocksManager.h.
te::rst::SynchronizedBandBlocksManager::SynchronizedBandBlocksManager |
( |
| ) |
|
te::rst::SynchronizedBandBlocksManager::~SynchronizedBandBlocksManager |
( |
| ) |
|
void te::rst::SynchronizedBandBlocksManager::free |
( |
| ) |
|
- Note
- Free all allocated internal resources and go back to the initial state.
void* te::rst::SynchronizedBandBlocksManager::getBlockPointer |
( |
unsigned int |
band, |
|
|
unsigned int |
x, |
|
|
unsigned int |
y |
|
) |
| |
Returns a pointer to the required data block.
- Parameters
-
band | The band index. |
x | The block-id in x (or x-offset). |
y | The block-id in y (or y-offset). |
- Returns
- Pointer to the required data block.
unsigned int te::rst::SynchronizedBandBlocksManager::getMaxNumberOfCacheBlocks |
( |
| ) |
const |
|
inline |
te::rst::Raster* te::rst::SynchronizedBandBlocksManager::getRaster |
( |
| ) |
const |
Returns the associated raster.
bool te::rst::SynchronizedBandBlocksManager::initialize |
( |
RasterSynchronizer & |
sync, |
|
|
const unsigned char |
maxMemPercentUsed |
|
) |
| |
Initialize this instance to an initial state.
- Parameters
-
sync | The synchronized used by this instance. |
maxMemPercentUsed | The maximum free memory percentual to use valid range: [1:100]. |
- Returns
- true if OK, false on errors.
- Note
- For the case where using the write raster access policy: The use of multiple cached blocks can cause deadlocks if multiple threads are locking blocks needed by other threads, use it with caution!
bool te::rst::SynchronizedBandBlocksManager::initialize |
( |
const unsigned int |
maxNumberOfCacheBlocks, |
|
|
RasterSynchronizer & |
sync |
|
) |
| |
Initialize this instance to an initial state.
- Parameters
-
sync | The synchronized used by this instance. |
maxNumberOfCacheBlocks | The maximum number of cache blocks. |
- Returns
- true if OK, false on errors.
- Note
- For the case where using the write raster access policy: The use of multiple cached blocks can cause deadlocks if multiple threads are locking blocks needed by other threads, use it with caution!
void te::rst::SynchronizedBandBlocksManager::initState |
( |
| ) |
|
|
private |
Initialize this instance to an initial state.
bool te::rst::SynchronizedBandBlocksManager::isInitialized |
( |
| ) |
const |
|
inline |
std::vector< BlockIndex > te::rst::SynchronizedBandBlocksManager::m_blocksFifo |
|
protected |
unsigned int te::rst::SynchronizedBandBlocksManager::m_blocksFifoNextSwapBlockIndex |
|
protected |
std::vector< unsigned char* > te::rst::SynchronizedBandBlocksManager::m_blocksHandler |
|
protected |
std::vector< std::vector< std::vector< unsigned char* > > > te::rst::SynchronizedBandBlocksManager::m_blocksPointers |
|
protected |
unsigned char* te::rst::SynchronizedBandBlocksManager::m_getBlockPointer_BlkPtr |
|
protected |
unsigned int te::rst::SynchronizedBandBlocksManager::m_globalBlockSizeBytes |
|
protected |
unsigned int te::rst::SynchronizedBandBlocksManager::m_globalBlocksNumberX |
|
protected |
unsigned int te::rst::SynchronizedBandBlocksManager::m_globalBlocksNumberY |
|
protected |
unsigned int te::rst::SynchronizedBandBlocksManager::m_maxNumberOfCacheBlocks |
|
protected |
The documentation for this class was generated from the following file: