DGtal 1.3.0
|
#include <cstdio>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include "DGtal/base/Common.h"
#include "DGtal/base/IndexedListWithBlocks.h"
#include "DGtal/base/Labels.h"
Go to the source code of this file.
Functions | |
template<typename Container1 , typename Container2 > | |
bool | isEqual (Container1 &c1, Container2 &c2) |
template<typename VContainer1 , typename LContainer2 > | |
void | insert (VContainer1 &c1, LContainer2 &c2, unsigned int idx, double v) |
template<typename VContainer1 , typename LContainer2 > | |
bool | checkInsert (VContainer1 &v, LContainer2 &l, unsigned int nb) |
template<typename VContainer1 , typename LContainer2 > | |
void | erase (VContainer1 &c1, LContainer2 &c2, unsigned int idx) |
template<typename VContainer1 , typename LContainer2 > | |
bool | checkErase (VContainer1 &v, LContainer2 &l, unsigned int nb) |
int | main () |
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 testIndexedListWithBlocks.cpp.
bool checkErase | ( | VContainer1 & | v, |
LContainer2 & | l, | ||
unsigned int | nb | ||
) |
Definition at line 81 of file testIndexedListWithBlocks.cpp.
References erase(), and isEqual().
Referenced by main().
bool checkInsert | ( | VContainer1 & | v, |
LContainer2 & | l, | ||
unsigned int | nb | ||
) |
Definition at line 60 of file testIndexedListWithBlocks.cpp.
References insert(), and isEqual().
Referenced by main().
void erase | ( | VContainer1 & | c1, |
LContainer2 & | c2, | ||
unsigned int | idx | ||
) |
Definition at line 73 of file testIndexedListWithBlocks.cpp.
Referenced by checkErase().
void insert | ( | VContainer1 & | c1, |
LContainer2 & | c2, | ||
unsigned int | idx, | ||
double | v | ||
) |
Definition at line 52 of file testIndexedListWithBlocks.cpp.
Referenced by checkInsert(), and main().
bool isEqual | ( | Container1 & | c1, |
Container2 & | c2 | ||
) |
Definition at line 45 of file testIndexedListWithBlocks.cpp.
Referenced by checkErase(), checkInsert(), main(), and TEST_CASE_METHOD().
int main | ( | void | ) |
Definition at line 93 of file testIndexedListWithBlocks.cpp.
References DGtal::Trace::beginBlock(), checkErase(), checkInsert(), DGtal::Trace::endBlock(), insert(), isEqual(), and DGtal::trace.