more CGAL_USE_TYPE

This commit is contained in:
Andreas Fabri 2013-02-06 15:53:02 +01:00
parent 9626e40e33
commit 27812333bf
3 changed files with 23 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include <CGAL/Triangulation_vertex_base_with_info_3.h>
#include <CGAL/Triangulation_cell_base_with_info_3.h>
#include <CGAL/use.h>
template <class Tds>
void
@ -48,6 +49,10 @@ _test_cls_tds_3( const Tds &)
typedef typename Tds::Cell_handle Cell_handle;
typedef typename Tds::Cell_iterator Cell_iterator;
CGAL_USE_TYPE(Facet);
CGAL_USE_TYPE(Facet_iterator);
CGAL_USE_TYPE(Edge_iterator);
// test rebinds :
typedef CGAL::Triangulation_cell_base_with_info_3<double, Cell> New_cell_base;
// I can't rebind the vertex that easily as the with_info needs a Point... :(
@ -57,6 +62,8 @@ _test_cls_tds_3( const Tds &)
typedef typename Tds::template Rebind_vertex<Vertex>::Other New_TDS_1;
typedef typename New_TDS_1::template Rebind_cell<New_cell_base>::Other New_TDS;
CGAL_USE_TYPE(New_TDS);
// test Vertex and cell :
std::cout << " Test Vertex " << std::endl;
_test_vertex_tds_3(Vertex());

View File

@ -29,6 +29,7 @@
#include <CGAL/Random.h>
#include <CGAL/Testsuite/use.h>
#include <CGAL/use.h>
template <class Triangulation, class Container>
bool check_all_are_finite(Triangulation* tr, const Container& cont)
@ -115,6 +116,11 @@ _test_cls_triangulation_3(const Triangulation &)
typedef typename Cls::Finite_facets_iterator Finite_facets_iterator;
typedef typename Cls::Finite_cells_iterator Finite_cells_iterator;
CGAL_USE_TYPE(Vertex);
CGAL_USE_TYPE(Cell);
CGAL_USE_TYPE(difference_type);
CGAL_USE_TYPE(Vertex_iterator);
CGAL_USE_TYPE(Cell_iterator);
// +++ We define now some points for building triangulations +++++//

View File

@ -20,6 +20,7 @@
#include <cassert>
#include <iostream>
#include <CGAL/use.h>
template <class Triangulation>
void
@ -55,6 +56,15 @@ _test_cls_triangulation_simplex_3(const Triangulation &)
typedef typename Cls::Finite_facets_iterator Finite_facets_iterator;
typedef typename Cls::Finite_cells_iterator Finite_cells_iterator;
CGAL_USE_TYPE(Cell);
CGAL_USE_TYPE(size_type);
CGAL_USE_TYPE(difference_type);
CGAL_USE_TYPE(Cell_circulator);
CGAL_USE_TYPE(Facet_circulator);
CGAL_USE_TYPE(Cell_iterator);
CGAL_USE_TYPE(Facet_iterator);
CGAL_USE_TYPE(Edge_iterator);
CGAL_USE_TYPE(Vertex_iterator);
//########################################################################
Cls t;