mirror of https://github.com/CGAL/cgal
remove code already present in the property file
This commit is contained in:
parent
9de38a13b8
commit
d216c5dfb7
|
|
@ -443,29 +443,6 @@ num_faces(const HalfedgeDS_default<T,I,A>& p)
|
||||||
return p.size_of_faces();
|
return p.size_of_faces();
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class T>
|
|
||||||
struct HDS_property_map;
|
|
||||||
|
|
||||||
template <>
|
|
||||||
struct HDS_property_map<vertex_point_t>
|
|
||||||
{
|
|
||||||
template<class T, class I, class A>
|
|
||||||
struct bind_
|
|
||||||
{
|
|
||||||
typedef internal::Point_accessor<
|
|
||||||
typename boost::graph_traits<
|
|
||||||
HalfedgeDS_default<T, I, A>
|
|
||||||
>::vertex_descriptor,
|
|
||||||
typename T::Point_3, typename T::Point_3&> type;
|
|
||||||
|
|
||||||
typedef internal::Point_accessor<
|
|
||||||
typename boost::graph_traits<
|
|
||||||
HalfedgeDS_default<T, I, A>
|
|
||||||
>::vertex_descriptor,
|
|
||||||
typename T::Point_3, const typename T::Point_3&> const_type;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
template<class T, class I, class A>
|
template<class T, class I, class A>
|
||||||
void reserve(HalfedgeDS_default<T,I,A>& p,
|
void reserve(HalfedgeDS_default<T,I,A>& p,
|
||||||
typename boost::graph_traits< HalfedgeDS_default<T,I,A> const>::vertices_size_type nv,
|
typename boost::graph_traits< HalfedgeDS_default<T,I,A> const>::vertices_size_type nv,
|
||||||
|
|
@ -476,37 +453,7 @@ void reserve(HalfedgeDS_default<T,I,A>& p,
|
||||||
}
|
}
|
||||||
|
|
||||||
}// namespace CGAL
|
}// namespace CGAL
|
||||||
namespace boost {
|
|
||||||
|
|
||||||
#define CGAL_PM_SPECIALIZATION(TAG) \
|
#include <CGAL/boost/graph/properties_HalfedgeDS_default.h>
|
||||||
template<class T, class I, class A> \
|
|
||||||
struct property_map<CGAL::HalfedgeDS_default<T,I,A>, TAG> \
|
|
||||||
{\
|
|
||||||
typedef typename CGAL::HDS_property_map<TAG>:: \
|
|
||||||
template bind_<T,I,A> map_gen; \
|
|
||||||
typedef typename map_gen::type type; \
|
|
||||||
typedef typename map_gen::const_type const_type; \
|
|
||||||
};
|
|
||||||
|
|
||||||
CGAL_PM_SPECIALIZATION(vertex_point_t)
|
|
||||||
|
|
||||||
#undef CGAL_PM_SPECIALIZATION
|
|
||||||
|
|
||||||
} // namespace boost
|
|
||||||
|
|
||||||
namespace CGAL {
|
|
||||||
|
|
||||||
// generalized 2-ary get functions
|
|
||||||
template<class Gt, class I, class A, class PropertyTag>
|
|
||||||
typename boost::property_map< CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::const_type
|
|
||||||
get(PropertyTag, CGAL::HalfedgeDS_default<Gt,I,A> const&)
|
|
||||||
{ return typename boost::property_map< CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::const_type(); }
|
|
||||||
|
|
||||||
template<class Gt, class I, class A, class PropertyTag>
|
|
||||||
typename boost::property_map< CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type
|
|
||||||
get(PropertyTag, CGAL::HalfedgeDS_default<Gt,I,A>&)
|
|
||||||
{ return typename boost::property_map< CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type(); }
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace CGAL
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ struct HDS_property_map {};
|
||||||
} // namespace CGAL
|
} // namespace CGAL
|
||||||
|
|
||||||
namespace CGAL {
|
namespace CGAL {
|
||||||
/*
|
|
||||||
// generalized 2-ary get functions
|
// generalized 2-ary get functions
|
||||||
template<class Gt, class I, class A, class PropertyTag>
|
template<class Gt, class I, class A, class PropertyTag>
|
||||||
typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::const_type
|
typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::const_type
|
||||||
|
|
@ -119,7 +119,7 @@ template<class Gt, class I, class A, class PropertyTag>
|
||||||
typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type
|
typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type
|
||||||
get(PropertyTag,CGAL::HalfedgeDS_default<Gt,I,A>&)
|
get(PropertyTag,CGAL::HalfedgeDS_default<Gt,I,A>&)
|
||||||
{ return typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type(); }
|
{ return typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type(); }
|
||||||
*/
|
|
||||||
// generalized 3-ary get functions
|
// generalized 3-ary get functions
|
||||||
template<class Gt, class I, class A, class PropertyTag, class Key>
|
template<class Gt, class I, class A, class PropertyTag, class Key>
|
||||||
typename boost::property_traits< typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type >::reference
|
typename boost::property_traits< typename boost::property_map<CGAL::HalfedgeDS_default<Gt,I,A>, PropertyTag >::type >::reference
|
||||||
|
|
@ -212,8 +212,7 @@ struct HDS_property_map<boost::edge_weight_t>
|
||||||
typedef type const_type;
|
typedef type const_type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
/*
|
|
||||||
// already defined in line 448 ?? why not the same for Polyhedron?
|
|
||||||
template <>
|
template <>
|
||||||
struct HDS_property_map<vertex_point_t>
|
struct HDS_property_map<vertex_point_t>
|
||||||
{
|
{
|
||||||
|
|
@ -233,7 +232,7 @@ struct HDS_property_map<vertex_point_t>
|
||||||
typename Gt::Point_3, const typename Gt::Point_3&> const_type;
|
typename Gt::Point_3, const typename Gt::Point_3&> const_type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
*/
|
|
||||||
//
|
//
|
||||||
// external indices
|
// external indices
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue