00001 #ifndef GRAL_GB_GRIDS_TEST_TRIANG2D_H 00002 #define GRAL_GB_GRIDS_TEST_TRIANG2D_H 00003 00004 #include <iostream> 00005 00006 #include "IO/control-device.h" 00007 00008 #include "Gral/Grids/Triang2D/triang2d.h" 00009 #include "Gral/Grids/Triang2D/grid-functions.h" 00010 00011 00012 class TestTriang2D : public controlable { 00013 private: 00014 bool test_vertices; 00015 bool test_cells; 00016 bool test_edges; 00017 bool test_boundary_facets; 00018 bool test_boundary_range; 00019 00020 bool test_cell_vertices; 00021 bool test_cell_edges; 00022 bool test_cell_neighbours; 00023 bool test_cell_nb_edges; 00024 00025 bool test_cell_nb_iter; 00026 bool test_cell_edge_flip; 00027 00028 public: 00029 TestTriang2D(); 00030 virtual void register_at(ControlDevice& Ctrl, std::string const& prefix); 00031 virtual void register_at(ControlDevice& Ctrl) { register_at(Ctrl,"");} 00032 void test_iterators(Triang2D const& CC, 00033 std::ostream& out); 00034 }; 00035 00036 #endif 00037