diff --git a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/Hyperbolic_translations_2_demo.cpp b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/Hyperbolic_translations_2_demo.cpp index 228d299fe79..d86cfd9d97f 100644 --- a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/Hyperbolic_translations_2_demo.cpp +++ b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/Hyperbolic_translations_2_demo.cpp @@ -88,7 +88,7 @@ private: typedef Hyperbolic_isometry::complex complex; // storage of static data: translations a, b, c, d - typedef Translations Translations; + typedef Translations Translations_t; typedef CGAL::Qt::PointTranslationWithInfo PointTranslation; PointTranslation *trs_a; @@ -98,7 +98,7 @@ private: // experiment typedef CGAL::Qt::OriginalDomainNeighbors OriginalDomainNeighbors; - typedef Group_of_index_2 Group_of_index_2; + typedef Group_of_index_2 Group_of_index_2_t; // Oct 2012 @@ -112,20 +112,20 @@ private: // // delete later, for some experiments - Group_of_index_2::List words; + Group_of_index_2_t::List words; // - Group_of_index_2 g2; - Group_of_index_2 g4; - Group_of_index_2 g8; - Group_of_index_2 g16; + Group_of_index_2_t g2; + Group_of_index_2_t g4; + Group_of_index_2_t g8; + Group_of_index_2_t g16; // extra groups, we can delete them - Group_of_index_2 g32; - Group_of_index_2 g64; - Group_of_index_2 g128; - Group_of_index_2 g256; - Group_of_index_2 g512; - Group_of_index_2 g1024; + Group_of_index_2_t g32; + Group_of_index_2_t g64; + Group_of_index_2_t g128; + Group_of_index_2_t g256; + Group_of_index_2_t g512; + Group_of_index_2_t g1024; // OriginalDomainNeighbors *odn; OriginalDomainNeighbors *odn2; @@ -342,10 +342,10 @@ MainWindow::MainWindow() cz = new CGAL::Qt::TriangulationConflictZone(&scene, &dt, this); // initialization of translations - trs_a = new PointTranslation(Translations::a(), scene, &dt, this); - trs_b = new PointTranslation(Translations::b(), scene, &dt, this); - trs_c = new PointTranslation(Translations::c(), scene, &dt, this); - trs_d = new PointTranslation(Translations::d(), scene, &dt, this); + trs_a = new PointTranslation(Translations_t::a(), scene, &dt, this); + trs_b = new PointTranslation(Translations_t::b(), scene, &dt, this); + trs_c = new PointTranslation(Translations_t::c(), scene, &dt, this); + trs_d = new PointTranslation(Translations_t::d(), scene, &dt, this); trs_a->info().setString(L"a"); trs_b->info().setString(L"b"); @@ -353,15 +353,15 @@ MainWindow::MainWindow() trs_d->info().setString(L"d"); // temp things - TranslationWithInfo tr_a(Translations::a(), TranslationInfo(L"a") ); - TranslationWithInfo tr_b(Translations::b(), TranslationInfo(L"b") ); - TranslationWithInfo tr_c(Translations::c(), TranslationInfo(L"c") ); - TranslationWithInfo tr_d(Translations::d(), TranslationInfo(L"d") ); + TranslationWithInfo tr_a(Translations_t::a(), TranslationInfo(L"a") ); + TranslationWithInfo tr_b(Translations_t::b(), TranslationInfo(L"b") ); + TranslationWithInfo tr_c(Translations_t::c(), TranslationInfo(L"c") ); + TranslationWithInfo tr_d(Translations_t::d(), TranslationInfo(L"d") ); - TranslationWithInfo tr_inv_a(Translations::a().inverse(), TranslationInfo(L"a̅") ); - TranslationWithInfo tr_inv_b(Translations::b().inverse(), TranslationInfo(L"b̅") ); - TranslationWithInfo tr_inv_c(Translations::c().inverse(), TranslationInfo(L"c̅") ); - TranslationWithInfo tr_inv_d(Translations::d().inverse(), TranslationInfo(L"d̅") ); + TranslationWithInfo tr_inv_a(Translations_t::a().inverse(), TranslationInfo(L"a̅") ); + TranslationWithInfo tr_inv_b(Translations_t::b().inverse(), TranslationInfo(L"b̅") ); + TranslationWithInfo tr_inv_c(Translations_t::c().inverse(), TranslationInfo(L"c̅") ); + TranslationWithInfo tr_inv_d(Translations_t::d().inverse(), TranslationInfo(L"d̅") ); std::vector translations_with_info; translations_with_info.push_back(tr_a); @@ -391,9 +391,9 @@ MainWindow::MainWindow() this, SIGNAL(changed())); // experiment - std::cout << "G: " << Translations::list().size() << std::endl; + std::cout << "G: " << Translations_t::list().size() << std::endl; - g2.add_group(&Translations::list()); + g2.add_group(&Translations_t::list()); std::cout << "G_2: " << g2.number_of_elements() << std::endl; g4.add_group(&g2.list()); @@ -421,7 +421,7 @@ MainWindow::MainWindow() QObject::connect(odn, SIGNAL(modelChanged()), this, SIGNAL(changed())); - GenerateWordsOfLengthLessThan4(Translations::list(), words); + GenerateWordsOfLengthLessThan4(Translations_t::list(), words); // // @@ -587,7 +587,7 @@ void MainWindow::on_actionG_toggled(bool checked) { if(checked){ - odn->assign(Translations::list_begin(), Translations::list_end()); + odn->assign(Translations_t::list_begin(), Translations_t::list_end()); } } diff --git a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/GroupOfIndex2.h b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/GroupOfIndex2.h index b7e02d67cd1..0b797dc8b33 100644 --- a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/GroupOfIndex2.h +++ b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/GroupOfIndex2.h @@ -7,10 +7,10 @@ template class Group_of_index_2 { public: - typedef Element Element; + typedef Element Element_t; typedef typename Translation::FT FT; - typedef std::list List; + typedef std::list List; typedef CGAL::Circulator_from_container Circulator; typedef typename List::iterator List_iterator; typedef typename List::size_type Size_type; @@ -144,7 +144,7 @@ void Group_of_index_2::compute_via_vector() template void Group_of_index_2::compute() { - typedef std::map > MapLtoL2; + typedef std::map > MapLtoL2; MapLtoL2 l_to_l2; typedef typename MapLtoL2::iterator Map_it; diff --git a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/Translations.h b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/Translations.h index ed48eae57a5..38f45b2c164 100644 --- a/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/Translations.h +++ b/Hyperbolic_triangulation_2/demo/Hyperbolic_triangulation_2/include/Translations.h @@ -23,8 +23,8 @@ public: typedef typename std::complex complex; typedef CGAL::Hyperbolic_isometry_2 Hyperbolic_isometry; - typedef Element Element; - typedef std::list List; + typedef Element Element_t; + typedef std::list List; typedef typename List::iterator List_iterator; typedef CGAL::Circulator_from_container Circulator;