mirror of https://github.com/CGAL/cgal
Some updates to the things that moved to the CGAL::Access namespace.
This commit is contained in:
parent
39dc525fa0
commit
2f4e459d75
|
|
@ -46,7 +46,7 @@ barycenter(InputIterator begin, InputIterator end, const K & )
|
||||||
typedef typename std::iterator_traits<InputIterator>::value_type pair;
|
typedef typename std::iterator_traits<InputIterator>::value_type pair;
|
||||||
typedef typename pair::second_type FT;
|
typedef typename pair::second_type FT;
|
||||||
typedef typename pair::first_type Point;
|
typedef typename pair::first_type Point;
|
||||||
typedef typename Vector<typename Ambient_dimension<Point, K>::type, K>::type Vector;
|
typedef typename Access::Vector<K, typename Ambient_dimension<Point, K>::type>::type Vector;
|
||||||
|
|
||||||
CGAL_precondition(begin != end);
|
CGAL_precondition(begin != end);
|
||||||
|
|
||||||
|
|
@ -74,7 +74,7 @@ barycenter(PointInputIterator begin, PointInputIterator end,
|
||||||
{
|
{
|
||||||
typedef typename std::iterator_traits<PointInputIterator>::value_type Point;
|
typedef typename std::iterator_traits<PointInputIterator>::value_type Point;
|
||||||
typedef typename std::iterator_traits<WeightInputIterator>::value_type FT;
|
typedef typename std::iterator_traits<WeightInputIterator>::value_type FT;
|
||||||
typedef typename Vector<typename Ambient_dimension<Point, K>::type, K>::type Vector;
|
typedef typename Access::Vector<K, typename Ambient_dimension<Point, K>::type>::type Vector;
|
||||||
|
|
||||||
CGAL_precondition(begin != end);
|
CGAL_precondition(begin != end);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -812,9 +812,7 @@ template < typename InputIterator,
|
||||||
typename K,
|
typename K,
|
||||||
typename Dim_tag >
|
typename Dim_tag >
|
||||||
inline
|
inline
|
||||||
typename Point<typename Ambient_dimension<typename std::iterator_traits<InputIterator>::value_type, K>::type,
|
typename Access::Point<K, typename Ambient_dimension<typename std::iterator_traits<InputIterator>::value_type, K>::type>::type
|
||||||
K
|
|
||||||
>::type
|
|
||||||
centroid(InputIterator begin,
|
centroid(InputIterator begin,
|
||||||
InputIterator end,
|
InputIterator end,
|
||||||
const K& k,
|
const K& k,
|
||||||
|
|
@ -832,9 +830,7 @@ template < typename InputIterator, typename Kernel_or_Dim >
|
||||||
struct Dispatch_centroid
|
struct Dispatch_centroid
|
||||||
{
|
{
|
||||||
typedef Kernel_or_Dim K;
|
typedef Kernel_or_Dim K;
|
||||||
typedef typename Point<typename Ambient_dimension<typename std::iterator_traits<InputIterator>::value_type, K>::type,
|
typedef typename Access::Point<K, typename Ambient_dimension<typename std::iterator_traits<InputIterator>::value_type, K>::type >::type result_type;
|
||||||
K
|
|
||||||
>::type result_type;
|
|
||||||
|
|
||||||
result_type operator()(InputIterator begin, InputIterator end, const K& k) const
|
result_type operator()(InputIterator begin, InputIterator end, const K& k) const
|
||||||
{
|
{
|
||||||
|
|
@ -848,10 +844,9 @@ struct Dispatch_centroid
|
||||||
template < typename InputIterator, int dim >
|
template < typename InputIterator, int dim >
|
||||||
struct Dispatch_centroid < InputIterator, Dimension_tag<dim> >
|
struct Dispatch_centroid < InputIterator, Dimension_tag<dim> >
|
||||||
{
|
{
|
||||||
typedef typename Point<typename Ambient_dimension<
|
typedef typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel K;
|
||||||
typename std::iterator_traits<InputIterator>::value_type,
|
typedef typename Access::Point<K, typename Ambient_dimension<
|
||||||
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type,
|
typename std::iterator_traits<InputIterator>::value_type, K >::type >::type result_type;
|
||||||
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type result_type;
|
|
||||||
|
|
||||||
result_type operator()(InputIterator begin, InputIterator end, Dimension_tag<dim> tag) const
|
result_type operator()(InputIterator begin, InputIterator end, Dimension_tag<dim> tag) const
|
||||||
{
|
{
|
||||||
|
|
@ -865,10 +860,10 @@ struct Dispatch_centroid < InputIterator, Dimension_tag<dim> >
|
||||||
template < typename InputIterator >
|
template < typename InputIterator >
|
||||||
struct Dispatch_centroid <InputIterator, Dynamic_dimension_tag>
|
struct Dispatch_centroid <InputIterator, Dynamic_dimension_tag>
|
||||||
{
|
{
|
||||||
typedef typename Point<typename Ambient_dimension<
|
typedef typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel K;
|
||||||
|
typedef typename Access::Point<K, typename Ambient_dimension<
|
||||||
typename std::iterator_traits<InputIterator>::value_type,
|
typename std::iterator_traits<InputIterator>::value_type,
|
||||||
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type,
|
K >::type >::type result_type;
|
||||||
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type result_type;
|
|
||||||
|
|
||||||
result_type operator()(InputIterator begin, InputIterator end, Dynamic_dimension_tag tag) const
|
result_type operator()(InputIterator begin, InputIterator end, Dynamic_dimension_tag tag) const
|
||||||
{
|
{
|
||||||
|
|
@ -896,10 +891,11 @@ centroid(InputIterator begin, InputIterator end, const Kernel_or_dim& k_or_d)
|
||||||
// and uses Kernel_traits<> to find out its kernel, and Feature_dimension for the dimension tag.
|
// and uses Kernel_traits<> to find out its kernel, and Feature_dimension for the dimension tag.
|
||||||
template < typename InputIterator >
|
template < typename InputIterator >
|
||||||
inline
|
inline
|
||||||
typename Point<typename Ambient_dimension<
|
typename Access::Point<typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel,
|
||||||
|
typename Ambient_dimension<
|
||||||
typename std::iterator_traits<InputIterator>::value_type,
|
typename std::iterator_traits<InputIterator>::value_type,
|
||||||
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type,
|
|
||||||
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type
|
typename Kernel_traits<typename std::iterator_traits<InputIterator>::value_type>::Kernel >::type
|
||||||
|
>::type
|
||||||
centroid(InputIterator begin, InputIterator end)
|
centroid(InputIterator begin, InputIterator end)
|
||||||
{
|
{
|
||||||
typedef typename std::iterator_traits<InputIterator>::value_type Point;
|
typedef typename std::iterator_traits<InputIterator>::value_type Point;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue