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 |
A test suit for the SynchronizedRaster Class.
Definition in file TsSynchronizedRaster.cpp.
| BOOST_AUTO_TEST_CASE | ( | singleThread_test | ) |
Definition at line 98 of file TsSynchronizedRaster.cpp.
References band, col, CreateTestRaster(), line, nCols, nLines, pixelValue, and te::common::RWAccess.
| BOOST_AUTO_TEST_CASE | ( | multiThread_test | ) |
Definition at line 158 of file TsSynchronizedRaster.cpp.
References band, col, CreateTestRaster(), line, nCols, nLines, pixelValue, te::common::RWAccess, and threadEntry().
| 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().
| 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().
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 |
Definition at line 44 of file TsSynchronizedRaster.cpp.