|
DGtal 1.4.2
|
#include <iostream>#include <list>#include <vector>#include "DGtal/base/Common.h"#include "DGtal/base/IteratorFunctions.h"#include "DGtal/base/Circulator.h"#include "DGtal/base/ReverseIterator.h"#include <forward_list>Go to the source code of this file.
Functions | |
| template<typename Container > | |
| bool | testAdvance (Container c) |
| template<typename Container > | |
| bool | testSize (Container c) |
| template<typename Container > | |
| bool | testMiddle (Container c) |
| template<typename IC > | |
| bool | testIsNotEmpty (const IC &itb, const IC &ite, const bool &aFlagIsNotEmpty) |
| template<typename Container > | |
| bool | testRange (Container c) |
| 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 IteratorFunctions.
This file is part of the DGtal library.
Definition in file testIteratorFunctions.cpp.
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 543 of file testIteratorFunctions.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::emphase(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testAdvance(), testMiddle(), testRange(), testSize(), and DGtal::trace.
| bool testAdvance | ( | Container | c | ) |
Test of the advance function
| c | any container |
| Container | model of iterable and pushable container |
Definition at line 72 of file testIteratorFunctions.cpp.
References DGtal::advanceIterator(), DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), and DGtal::trace.
Referenced by main().
| bool testIsNotEmpty | ( | const IC & | itb, |
| const IC & | ite, | ||
| const bool & | aFlagIsNotEmpty ) |
validity of the range
Definition at line 417 of file testIteratorFunctions.cpp.
References DGtal::isNotEmpty().
Referenced by testRange().
| bool testMiddle | ( | Container | c | ) |
Test of the rangeMiddle function
| c | any container |
| Container | model of iterable and pushable container |
Definition at line 247 of file testIteratorFunctions.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::rangeMiddle(), DGtal::subRangeMiddle(), and DGtal::trace.
Referenced by main().
| bool testRange | ( | Container | c | ) |
Test of the isNotEmpty function
| c | any container |
| Container | model of iterable and pushable container |
Definition at line 428 of file testIteratorFunctions.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), testIsNotEmpty(), and DGtal::trace.
Referenced by main().
| bool testSize | ( | Container | c | ) |
Test of the rangeSize function
| c | any container |
| Container | model of iterable and pushable container |
Definition at line 129 of file testIteratorFunctions.cpp.
References DGtal::Trace::beginBlock(), DGtal::Trace::endBlock(), DGtal::Trace::info(), DGtal::rangeSize(), DGtal::subRangeSize(), and DGtal::trace.
Referenced by main().