Use CGAL::Iterator_project<I,Fct> if BOOST is not used.

This commit is contained in:
Laurent Rineau 2003-05-16 15:22:56 +00:00
parent c52e70c01b
commit 35bb2d6dbd
1 changed files with 12 additions and 8 deletions

View File

@ -144,6 +144,8 @@ private:
}
};
typedef typename Cluster::Vertices_map Cluster_vertices_map;
#ifdef CGAL_USE_BOOST
public:
typedef typename boost::projection_iterator_generator<
@ -151,14 +153,19 @@ public:
typename Cluster_map::const_iterator>::type
Cluster_vertices_iterator;
private:
typedef typename Cluster::Vertices_map Cluster_vertices_map;
public:
typedef typename boost::projection_iterator_generator<
Pair_get_first<typename Cluster_vertices_map::value_type>,
typename Cluster_vertices_map::const_iterator>::type
Vertices_in_cluster_iterator;
#else
typedef CGAL::Iterator_project<typename Cluster_map::const_iterator,
Pair_get_first<typename Cluster_map::value_type> >
Cluster_vertices_iterator;
typedef CGAL::Iterator_project<
typename Cluster_vertices_map::const_iterator,
Pair_get_first<typename Cluster_vertices_map::value_type> >
Vertices_in_cluster_iterator;
#endif // CGAL_USE_BOOST
// -- conform criteria --
@ -235,7 +242,6 @@ public:
// --- ACCESS FUNCTIONS ---
int number_of_constrained_edges() const;
#ifdef CGAL_USE_BOOST
int number_of_clusters_vertices() const
{
return cluster_map.size();
@ -279,8 +285,6 @@ public:
Vertices_in_cluster_iterator(c.vertices.end()));
}
#endif
// --- HELPING FUNCTION ---
void clear();
@ -1072,4 +1076,4 @@ delaunay_conform(Tr& t)
CGAL_END_NAMESPACE
#endif
#endif //CGAL_CONFORM_2_H