DGtal 1.4.0
|
#include <iostream>
#include <vector>
#include <list>
#include <forward_list>
#include "DGtal/base/Common.h"
#include "DGtal/base/Circulator.h"
Go to the source code of this file.
Functions | |
template<typename Iterator > | |
bool | testOffset (const Iterator &itb, const Iterator &ite, const vector< int > &groundTruth) |
template<typename Container > | |
bool | basicForwardTest (const Container &cont) |
template<typename Container > | |
bool | basicBidirectionalTest (const Container &cont) |
template<typename Container > | |
bool | basicRandomAccessTest (const Container &cont) |
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 Circulator.h.
This file is part of the DGtal library.
Definition in file testCirculator.cpp.
bool basicBidirectionalTest | ( | const Container & | cont | ) |
Test of basic operators required for bidirectional circulators
cont | any container |
Container | model of iterable and pushable container |
Definition at line 151 of file testCirculator.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
bool basicForwardTest | ( | const Container & | cont | ) |
Test of basic operators required for forward circulators
cont | any container |
Container | model of iterable and pushable container |
Definition at line 89 of file testCirculator.cpp.
References DGtal::Circulator< TIterator >::base(), DGtal::Circulator< TIterator >::begin(), DGtal::Trace::beginBlock(), DGtal::Circulator< TIterator >::end(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::Circulator< TIterator >::isValid(), and DGtal::trace.
Referenced by main().
bool basicRandomAccessTest | ( | const Container & | cont | ) |
Test of basic operators required for random access circulators
cont | any container |
Container | model of iterable and pushable container |
Definition at line 190 of file testCirculator.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 255 of file testCirculator.cpp.
References DGtal::Circulator< TIterator >::base(), basicBidirectionalTest(), basicForwardTest(), basicRandomAccessTest(), DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testOffset(), and DGtal::trace.
bool testOffset | ( | const Iterator & | itb, |
const Iterator & | ite, | ||
const vector< int > & | groundTruth ) |
Iteration accross the end of a range
Definition at line 53 of file testCirculator.cpp.
References DGtal::Trace::info(), and DGtal::trace.
Referenced by main().