#include #include #include "Generalized_map_2_test.h" #include "Generalized_map_3_test.h" #include "Generalized_map_4_test.h" struct Sum_functor { template void operator()(Cell_attribute& ca1,Cell_attribute& ca2) { ca1.info()=ca1.info()+ca2.info(); } }; struct Divide_by_two_functor { template void operator()(Cell_attribute& ca1,Cell_attribute& ca2) { ca1.info()=(ca1.info()/2); ca2.info()=(ca1.info()); } }; struct Myitems_2 { template struct Dart_wrapper { typedef void Dart_info; typedef CGAL::Cell_attribute myattrib; typedef std::tuple Attributes; }; }; struct Myitems_2c { template struct Dart_wrapper { typedef int Dart_info; typedef CGAL::Cell_attribute myattrib; typedef std::tuple Attributes; }; }; struct Myitems_3 { template struct Dart_wrapper { typedef double* Dart_info; typedef CGAL::Cell_attribute myattrib; typedef std::tuple Attributes; }; }; struct Myitems_3c { template struct Dart_wrapper { typedef void Dart_info; typedef CGAL::Cell_attribute myattrib; typedef std::tuple Attributes; }; }; struct Myitems_4 { template struct Dart_wrapper { typedef double Dart_info; typedef CGAL::Cell_attribute myattrib; typedef std::tuple Attributes; }; }; struct Myitems_4c { template struct Dart_wrapper { typedef char* Dart_info; typedef CGAL::Cell_attribute myattrib; typedef std::tuple Attributes; }; }; int main() { std::cout<<"Generalized_map start test (v1)."<"); typedef CGAL::Generalized_map<2> GMAP2; if ( !test_GMAP_2() ) { std::cout<<" Error during Test_GMAP_2."<"); typedef CGAL::Generalized_map<3> GMAP3; if ( !test_GMAP_3() ) { std::cout<<" Error during Test_GMAP_3."<"); typedef CGAL::Generalized_map<4> GMAP4; if ( !test_GMAP_4() ) { std::cout<<" Error during Test_GMAP_4."<"); typedef CGAL::Generalized_map<2,Myitems_2> GMAP2b; if ( !test_GMAP_2() ) { std::cout<<" Error during Test_GMAP_2."<"); typedef CGAL::Generalized_map<2,Myitems_2c> GMAP2c; if ( !test_GMAP_2() ) { std::cout<<" Error during Test_GMAP_2."<"); typedef CGAL::Generalized_map<3,Myitems_3> GMAP3b; if ( !test_GMAP_3() ) { std::cout<<" Error during Test_GMAP_3."<"); typedef CGAL::Generalized_map<3,Myitems_3c> GMAP3c; if ( !test_GMAP_3() ) { std::cout<<" Error during Test_GMAP_3."<"); typedef CGAL::Generalized_map<4,Myitems_4> GMAP4b; if ( !test_GMAP_4() ) { std::cout<<" Error during Test_GMAP_4."<"); typedef CGAL::Generalized_map<4,Myitems_4c> GMAP4c; if ( !test_GMAP_4() ) { std::cout<<" Error during Test_GMAP_4."<