An access synchronizer to be used in SynchronizedRaster raster instances.
More...
#include <RasterSynchronizer.h>
|
typedef std::vector< std::vector< std::vector< unsigned int > > > | BlocksUseCounterT |
| Blocks use counter type definition. More...
|
|
|
bool | acquireBlock (const unsigned int bandIdx, const unsigned int blockXIndex, const unsigned int blockYIndex, void *blkDataPtr) |
| Acquire a raster data block. More...
|
|
bool | releaseBlock (const unsigned int bandIdx, const unsigned int blockXIndex, const unsigned int blockYIndex, void *blkDataPtr) |
| Release a raster data block. More...
|
|
An access synchronizer to be used in SynchronizedRaster raster instances.
Definition at line 57 of file RasterSynchronizer.h.
Blocks use counter type definition.
- Note
- Indexed as [band][blockYIndex][blockXIndex]
Definition at line 82 of file RasterSynchronizer.h.
Constructor.
- Parameters
-
raster | The raster to synchronize. |
policy | The access policy to use on the given input raster. |
te::rst::RasterSynchronizer::~RasterSynchronizer |
( |
| ) |
|
bool te::rst::RasterSynchronizer::acquireBlock |
( |
const unsigned int |
bandIdx, |
|
|
const unsigned int |
blockXIndex, |
|
|
const unsigned int |
blockYIndex, |
|
|
void * |
blkDataPtr |
|
) |
| |
|
protected |
Acquire a raster data block.
- Parameters
-
bandIdx | Block band index. |
blockXIndex | Block X index. |
blockYIndex | Block Y index. |
blkDataPtr | A pointer to a pre-allocated area where the block data will be written. |
- Returns
- true if OK, false if the increment could not be done.
- Note
- The block data will be read from the internal raster and the block use counter will be incremented.
bool te::rst::RasterSynchronizer::releaseBlock |
( |
const unsigned int |
bandIdx, |
|
|
const unsigned int |
blockXIndex, |
|
|
const unsigned int |
blockYIndex, |
|
|
void * |
blkDataPtr |
|
) |
| |
|
protected |
Release a raster data block.
- Parameters
-
bandIdx | Block band index. |
blockXIndex | Block X index. |
blockYIndex | Block Y index. |
blkDataPtr | A pointer where the block data will be read. |
- Note
- The block data will be writed to the internal raster and the block use counter will be decremented.
- Returns
- true if OK, false if the increment could not be done.
boost::condition_variable_any te::rst::RasterSynchronizer::m_condVar |
|
protected |
boost::mutex te::rst::RasterSynchronizer::m_mutex |
|
protected |
Raster& te::rst::RasterSynchronizer::m_raster |
|
protected |
The documentation for this class was generated from the following file:
- /home/castejon/castejon_files/develop/terralib5/git_master/terralib5/src/terralib/raster/RasterSynchronizer.h