|
DGtal 2.0.0
|
#include <cstdio>#include <cmath>#include <iostream>#include <fstream>#include <algorithm>#include <numeric>#include <iterator>#include "DGtal/base/Common.h"#include "DGtal/kernel/SpaceND.h"#include "DGtal/kernel/PointVector.h"#include "DGtal/kernel/domains/HyperRectDomain.h"#include "DGtal/base/CConstBidirectionalRange.h"#include "DGtalCatch.h"Go to the source code of this file.
Functions | |
| TEST_CASE ("Simple HyperRectDomain", "[domain][4D]") | |
| template<typename Iterator, typename Point, typename Domain, typename Dimension> | |
| void | testIteratorHelperImpl (Iterator &it, Iterator const &it_begin, Iterator const &it_end, typename std::iterator_traits< Iterator >::difference_type &cnt_begin, Point &pt, Domain const &domain, std::vector< Dimension > const &dimensions, std::size_t id, bool forward) |
| Checking iterator given then span domain and dimensions order. | |
| template<typename Iterator, typename Point, typename Domain, typename Dimension> | |
| void | testIteratorHelper (Iterator const &it_begin, Iterator const &it_end, Point pt, Domain const &domain, std::vector< Dimension > const &dimensions, bool forward=true) |
| template<typename Iterator, typename Point, typename Domain> | |
| void | testIteratorHelper (Iterator const &it_begin, Iterator const &it_end, Point pt, Domain const &domain, bool forward=true) |
| template<typename Point> | |
| void | testIterator (Point const &a, Point const &b, Point const &c) |
| TEST_CASE ("Iterator 2D", "[iterator][2D]") | |
| TEST_CASE ("Iterator 4D", "[iterator][4D]") | |
| TEST_CASE ("Iterator 4D BigInteger", "[iterator][4D][BigInteger]") | |
| TEST_CASE ("STL compatiblity", "[iterator][4D][STL]") | |
| TEST_CASE ("Empty domain", "[domain][3D][empty]") | |
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/.
This file is part of the DGtal library
Definition in file testHyperRectDomain.cpp.
| TEST_CASE | ( | "Empty domain" | , |
| "" | [domain][3D][empty] ) |
Definition at line 368 of file testHyperRectDomain.cpp.
| TEST_CASE | ( | "Iterator 2D" | , |
| "" | [iterator][2D] ) |
Definition at line 304 of file testHyperRectDomain.cpp.
References testIterator(), and DGtal::trace.
| TEST_CASE | ( | "Iterator 4D BigInteger" | , |
| "" | [iterator][4D][BigInteger] ) |
Definition at line 332 of file testHyperRectDomain.cpp.
References testIterator(), and DGtal::trace.
| TEST_CASE | ( | "Iterator 4D" | , |
| "" | [iterator][4D] ) |
Definition at line 318 of file testHyperRectDomain.cpp.
References testIterator(), and DGtal::trace.
| TEST_CASE | ( | "Simple HyperRectDomain" | , |
| "" | [domain][4D] ) |
Definition at line 56 of file testHyperRectDomain.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), DGtal::HyperRectDomain< TSpace >::end(), DGtal::HyperRectDomain< TSpace >::isEmpty(), DGtal::HyperRectDomain< TSpace >::isValid(), DGtal::HyperRectDomain< TSpace >::lowerBound(), DGtal::HyperRectDomain< TSpace >::rbegin(), DGtal::HyperRectDomain< TSpace >::rend(), REQUIRE(), DGtal::HyperRectDomain< TSpace >::size(), DGtal::trace, and DGtal::HyperRectDomain< TSpace >::upperBound().
| TEST_CASE | ( | "STL compatiblity" | , |
| "" | [iterator][4D][STL] ) |
Definition at line 346 of file testHyperRectDomain.cpp.
References DGtal::HyperRectDomain< TSpace >::begin(), DGtal::HyperRectDomain< TSpace >::end(), and DGtal::trace.
Definition at line 250 of file testHyperRectDomain.cpp.
References domain, testIteratorHelper(), and DGtal::trace.
Referenced by TEST_CASE(), TEST_CASE(), and TEST_CASE().
| void testIteratorHelper | ( | Iterator const & | it_begin, |
| Iterator const & | it_end, | ||
| Point | pt, | ||
| Domain const & | domain, | ||
| bool | forward = true ) |
Definition at line 237 of file testHyperRectDomain.cpp.
References domain, and testIteratorHelper().
| void testIteratorHelper | ( | Iterator const & | it_begin, |
| Iterator const & | it_end, | ||
| Point | pt, | ||
| Domain const & | domain, | ||
| std::vector< Dimension > const & | dimensions, | ||
| bool | forward = true ) |
Definition at line 217 of file testHyperRectDomain.cpp.
References domain, REQUIRE(), and testIteratorHelperImpl().
Referenced by testIterator(), and testIteratorHelper().
| void testIteratorHelperImpl | ( | Iterator & | it, |
| Iterator const & | it_begin, | ||
| Iterator const & | it_end, | ||
| typename std::iterator_traits< Iterator >::difference_type & | cnt_begin, | ||
| Point & | pt, | ||
| Domain const & | domain, | ||
| std::vector< Dimension > const & | dimensions, | ||
| std::size_t | id, | ||
| bool | forward ) |
Checking iterator given then span domain and dimensions order.
Definition at line 163 of file testHyperRectDomain.cpp.
References domain, REQUIRE(), testIteratorHelperImpl(), and DGtal::trace.
Referenced by testIteratorHelper(), and testIteratorHelperImpl().