moving supporting_line and circle to the deprecated area

This commit is contained in:
Pedro Machado Manhaes de Castro 2008-09-15 16:40:38 +00:00
parent cc25cb0130
commit a8e2a6bbb7
2 changed files with 45 additions and 0 deletions

View File

@ -1141,6 +1141,44 @@ template < class CK >
}; };
#ifndef CGAL_NO_DEPRECATED_CODE
template <class CK>
class Construct_supporting_circle_2: Has_qrt
{
typedef typename CK::Circular_arc_2 Circular_arc_2;
typedef typename CK::Circle_2 Circle_2;
public:
typedef Circle_2 result_type;
typedef const result_type & qualified_result_type;
CGAL_DEPRECATED qualified_result_type operator() (const Circular_arc_2 & a) const
{
return (a.rep().supporting_circle());
}
};
template <class CK>
class Construct_supporting_line_2: Has_qrt
{
typedef typename CK::Line_arc_2 Line_arc_2;
typedef typename CK::Line_2 Line_2;
typedef typename CK::Circle_2 Circle_2;
public:
typedef Line_2 result_type;
typedef const result_type & qualified_result_type;
CGAL_DEPRECATED qualified_result_type operator() (const Line_arc_2 & a) const
{
return (a.rep().supporting_line());
}
};
#endif
} // namespace CircularFunctors } // namespace CircularFunctors
} // namespace CGAL } // namespace CGAL

View File

@ -100,6 +100,13 @@
CGAL_Circular_Kernel_pred(Bounded_side_2, bounded_side_2_object) CGAL_Circular_Kernel_pred(Bounded_side_2, bounded_side_2_object)
CGAL_Circular_Kernel_pred(Do_intersect_2, do_intersect_2_object) CGAL_Circular_Kernel_pred(Do_intersect_2, do_intersect_2_object)
#ifndef CGAL_NO_DEPRECATED_CODE
CGAL_Circular_Kernel_cons(Construct_supporting_circle_2,
construct_supporting_circle_2_object)
CGAL_Circular_Kernel_cons(Construct_supporting_line_2,
construct_supporting_line_2_object)
#endif
CGAL_Circular_Kernel_cons(Construct_bbox_2, CGAL_Circular_Kernel_cons(Construct_bbox_2,
construct_bbox_2_object) construct_bbox_2_object)