DGtal
1.4.2
|
#include <cstdio>
#include <cmath>
#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include "DGtal/base/Common.h"
#include "DGtal/base/LabelledMap.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) |
template<typename AContainer > | |
void | display (ostream &out, const AContainer &C) |
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 testLabelledMap.cpp.
bool checkErase | ( | VContainer1 & | v, |
LContainer2 & | l, | ||
unsigned int | nb | ||
) |
Definition at line 81 of file testLabelledMap.cpp.
References erase(), and isEqual().
Referenced by main().
bool checkInsert | ( | VContainer1 & | v, |
LContainer2 & | l, | ||
unsigned int | nb | ||
) |
Definition at line 60 of file testLabelledMap.cpp.
References insert(), and isEqual().
Referenced by main().
void display | ( | ostream & | out, |
const AContainer & | C | ||
) |
Definition at line 94 of file testLabelledMap.cpp.
Referenced by displaySimplicityTable(), main(), testInitFraction(), and testReducedFraction().
void erase | ( | VContainer1 & | c1, |
LContainer2 & | c2, | ||
unsigned int | idx | ||
) |
Definition at line 73 of file testLabelledMap.cpp.
Referenced by checkErase().
void insert | ( | VContainer1 & | c1, |
LContainer2 & | c2, | ||
unsigned int | idx, | ||
double | v | ||
) |
Definition at line 52 of file testLabelledMap.cpp.
Referenced by checkInsert(), and main().
bool isEqual | ( | Container1 & | c1, |
Container2 & | c2 | ||
) |
Definition at line 45 of file testLabelledMap.cpp.
Referenced by checkErase(), checkInsert(), and main().
int main | ( | void | ) |
Definition at line 104 of file testLabelledMap.cpp.
References DGtal::Trace::beginBlock(), checkErase(), checkInsert(), display(), DGtal::Trace::endBlock(), insert(), isEqual(), and DGtal::trace.