TsSynchronizedRaster.cpp File Reference

A test suit for the SynchronizedRaster Class. More...

#include <terralib_buildconfig.h>
#include <terralib/raster.h>
#include "../Config.h"
#include <memory>
#include <boost/test/unit_test.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (singleThread_test)
 
 BOOST_AUTO_TEST_CASE (multiThread_test)
 
 BOOST_AUTO_TEST_SUITE (synchronizedRaster_tests) void CreateTestRaster(unsigned int nBands
 
 for (unsigned int bandsPropsIdx=0;bandsPropsIdx< nBands;++bandsPropsIdx)
 
rasterPointer reset (te::rst::RasterFactory::make("MEM", new te::rst::Grid(nCols, nLines), bandsProps, std::map< std::string, std::string >(), 0, 0))
 
line< nLines;++line) for(col=0;col< nCols;++col){rasterPointer-> setValue (col, line, pixelValue, band)
 
void threadEntry (te::rst::RasterSynchronizer *syncPtr)
 

Variables

unsigned int band = 0
 
unsigned int col = 0
 
unsigned int line = 0
 
unsigned int unsigned int nCols
 
unsigned int nLines
 
double pixelValue = 0
 
unsigned int unsigned int boost::shared_ptr< te::rst::Raster > & rasterPointer
 

Detailed Description

A test suit for the SynchronizedRaster Class.

Definition in file TsSynchronizedRaster.cpp.

Function Documentation

BOOST_AUTO_TEST_CASE ( singleThread_test  )
BOOST_AUTO_TEST_CASE ( multiThread_test  )
BOOST_AUTO_TEST_SUITE ( synchronizedRaster_tests  )
for ( )

Definition at line 46 of file TsSynchronizedRaster.cpp.

References te::rst::RasterFactory::make(), and te::dt::UINT32_TYPE.

rasterPointer reset ( te::rst::RasterFactory::make("MEM", new te::rst::Grid(nCols, nLines), bandsProps, std::map< std::string, std::string >(), 0, 0)  )
void threadEntry ( te::rst::RasterSynchronizer syncPtr)

Definition at line 70 of file TsSynchronizedRaster.cpp.

References band, col, line, nCols, and nLines.

Referenced by BOOST_AUTO_TEST_CASE().

Variable Documentation

unsigned int band = 0

Definition at line 56 of file TsSynchronizedRaster.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and threadEntry().

unsigned int col = 0

Definition at line 58 of file TsSynchronizedRaster.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and threadEntry().

unsigned int line = 0

Definition at line 57 of file TsSynchronizedRaster.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and threadEntry().

unsigned int unsigned int nCols

Definition at line 42 of file TsSynchronizedRaster.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and threadEntry().

unsigned int nLines

Definition at line 42 of file TsSynchronizedRaster.cpp.

Referenced by BOOST_AUTO_TEST_CASE(), and threadEntry().

pixelValue = 0

Definition at line 59 of file TsSynchronizedRaster.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

unsigned int unsigned int boost::shared_ptr< te::rst::Raster >& rasterPointer
Initial value:
{
std::vector< te::rst::BandProperty * > bandsProps

Definition at line 44 of file TsSynchronizedRaster.cpp.