#include <vector>
#include <iostream>
#include <gtest/gtest.h>
Go to the source code of this file.
Functions |
int | main (int argc, char **argv) |
template<typename T > |
void | moveAndCopyImage (const int fill, const int dx, const int dy, const unsigned int ncol, vector< T > &map) |
size_t | offsetFromRowCol (const size_t row, const size_t col, const size_t ncol) |
int | offsetFromRowColNoRangeCheck (const int row, const int col, const size_t ncol) |
void | printMap (std::vector< int8_t > &map, const size_t ncol) |
| TEST (TestSuite, testMoveAndCopyMap) |
Function Documentation
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
template<typename T >
void moveAndCopyImage |
( |
const int |
fill, |
|
|
const int |
dx, |
|
|
const int |
dy, |
|
|
const unsigned int |
ncol, |
|
|
vector< T > & |
map |
|
) |
| |
size_t offsetFromRowCol |
( |
const size_t |
row, |
|
|
const size_t |
col, |
|
|
const size_t |
ncol |
|
) |
| [inline] |
void printMap |
( |
std::vector< int8_t > & |
map, |
|
|
const size_t |
ncol |
|
) |
| |
TEST |
( |
TestSuite |
, |
|
|
testMoveAndCopyMap |
|
|
) |
| |