putting both Get_equation together in function_objects_polynomial

This commit is contained in:
Pedro Machado Manhaes de Castro 2008-09-18 18:53:33 +00:00
parent feb97a7959
commit d8f8af7e14
3 changed files with 19 additions and 30 deletions

View File

@ -60,22 +60,6 @@ namespace CircularFunctors {
};
template < class CK >
class Get_equation : public LinearFunctors::Get_equation<CK>
{
public:
typedef typename CK::Polynomial_for_circles_2_2 result_type;
using LinearFunctors::Get_equation<CK>::operator();
result_type
operator() ( const typename CK::Circle_2 & c )
{
return CircularFunctors::get_equation<CK>(c);
}
};
} // namespace CircularFunctors
template < typename K >

View File

@ -57,20 +57,6 @@ namespace LinearFunctors {
}
};
template < class CK >
class Get_equation
{
public:
typedef typename CK::Polynomial_1_2 result_type;
result_type
operator() ( const typename CK::Line_2 & l )
{
return LinearFunctors::get_equation<CK>(l);
}
};
} // namespace LinearFunctors
template < typename K >

View File

@ -647,6 +647,25 @@ template < class CK >
};
template < class CK >
class Get_equation
{
public:
typedef void result_type;
typename CK::Polynomial_1_2
operator() ( const typename CK::Line_2 & l )
{
return LinearFunctors::get_equation<CK>(l);
}
typename CK::Polynomial_for_circles_2_2
operator() ( const typename CK::Circle_2 & c )
{
return CircularFunctors::get_equation<CK>(c);
}
};
template < class CK >
class Split_2