DGtal 1.3.0
|
#include <iostream>
#include "DGtal/base/Common.h"
#include <cmath>
#include "DGtal/kernel/SpaceND.h"
#include "DGtal/kernel/domains/HyperRectDomain.h"
#include "DGtal/images/ImageContainerByHashTree.h"
Go to the source code of this file.
Macros | |
#define | dim experimental::ImageContainerByHashTree<Domain , T, DGtal::uint64_t >::dim |
#define | defHashKey typename experimental::ImageContainerByHashTree<Domain , int, DGtal::uint64_t >::HashKey |
Functions | |
int | iRand (int iMin, int iMax) |
template<typename Domain , typename T > | |
bool | test_setVal (experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > &container, bool checkAfterEachSet) |
template<typename Domain , typename T > | |
bool | test_get (experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > &container, bool) |
int | main (int argc, char **argv) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Functions for testing class ImageContainerBenchmark.
This file is part of the DGtal library.
Definition in file testImageContainerByHashTree.cpp.
#define defHashKey typename experimental::ImageContainerByHashTree<Domain , int, DGtal::uint64_t >::HashKey |
Definition at line 41 of file testImageContainerByHashTree.cpp.
#define dim experimental::ImageContainerByHashTree<Domain , T, DGtal::uint64_t >::dim |
int iRand | ( | int | iMin, |
int | iMax | ||
) |
Definition at line 45 of file testImageContainerByHashTree.cpp.
Referenced by test_get(), and test_setVal().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 162 of file testImageContainerByHashTree.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::get(), DGtal::Trace::info(), test_get(), test_setVal(), and DGtal::trace.
bool test_get | ( | experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > & | container, |
bool | |||
) |
Definition at line 120 of file testImageContainerByHashTree.cpp.
References DGtal::Bits::bitString(), dim, DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::get(), DGtal::Trace::info(), iRand(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::isKeyValid(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::setValue(), srand(), and DGtal::trace.
Referenced by main().
bool test_setVal | ( | experimental::ImageContainerByHashTree< Domain, T, DGtal::uint64_t > & | container, |
bool | checkAfterEachSet | ||
) |
Definition at line 52 of file testImageContainerByHashTree.cpp.
References DGtal::Bits::bitString(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::checkIntegrity(), DGtal::Trace::info(), iRand(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::isKeyValid(), DGtal::experimental::ImageContainerByHashTree< TDomain, TValue, THashKey >::setValue(), srand(), and DGtal::trace.
Referenced by main().