consistent use of struct/class

This commit is contained in:
Michael Hemmer 2010-07-08 10:37:04 +00:00
parent 26f8c79bbb
commit f2fef56a53
2 changed files with 16 additions and 16 deletions

View File

@ -46,14 +46,14 @@ namespace internal{
// A has less variables than B // A has less variables than B
template <typename A, typename B, bool less > template <typename A, typename B, bool less >
class Coercion_traits_for_polynomial_comp_d struct Coercion_traits_for_polynomial_comp_d
:public Coercion_traits_for_polynomial_comp_d< B, A , false >{}; :public Coercion_traits_for_polynomial_comp_d< B, A , false >{};
// Polynomial<A> has more variables than B // Polynomial<A> has more variables than B
template <typename A, typename B > template <typename A, typename B >
class Coercion_traits_for_polynomial_comp_d< Polynomial<A>, B , false>{ struct Coercion_traits_for_polynomial_comp_d< Polynomial<A>, B , false>{
typedef Coercion_traits<A,B> CT; typedef Coercion_traits<A,B> CT;
public:
typedef CGAL::Tag_true Are_explicit_interoperable; typedef CGAL::Tag_true Are_explicit_interoperable;
typedef CGAL::Tag_false Are_implicit_interoperable; typedef CGAL::Tag_false Are_implicit_interoperable;
@ -74,14 +74,14 @@ public:
// number of variables is different // number of variables is different
template <typename A, typename B, int a, int b> template <typename A, typename B, int a, int b>
class Coercion_traits_for_polynomial_equal_d struct Coercion_traits_for_polynomial_equal_d
:public Coercion_traits_for_polynomial_comp_d <A,B, a < b >{}; :public Coercion_traits_for_polynomial_comp_d <A,B, a < b >{};
// number of variables is equal and at least one. // number of variables is equal and at least one.
template <class A,class B, int d> template <class A,class B, int d>
class Coercion_traits_for_polynomial_equal_d<Polynomial<A>, Polynomial<B>, d, d >{ struct Coercion_traits_for_polynomial_equal_d<Polynomial<A>, Polynomial<B>, d, d >{
typedef Coercion_traits<A,B> CT; typedef Coercion_traits<A,B> CT;
public:
typedef CGAL::Tag_true Are_explicit_interoperable; typedef CGAL::Tag_true Are_explicit_interoperable;
typedef CGAL::Tag_false Are_implicit_interoperable; typedef CGAL::Tag_false Are_implicit_interoperable;
typedef Polynomial<typename CT::Type> Type; typedef Polynomial<typename CT::Type> Type;
@ -102,22 +102,22 @@ public:
// determine number of variables in each polynomial // determine number of variables in each polynomial
template <typename A, typename B> template <typename A, typename B>
class Coercion_traits_for_polynomial struct Coercion_traits_for_polynomial
: public Coercion_traits_for_polynomial_equal_d : public Coercion_traits_for_polynomial_equal_d
< A , B , Dimension<A>::value, Dimension<B>::value >{}; < A , B , Dimension<A>::value, Dimension<B>::value >{};
}// namespace internal }// namespace internal
template <class A,class B> template <class A,class B>
class Coercion_traits_for_level< Polynomial<A> , Polynomial<B>, CTL_POLYNOMIAL > struct Coercion_traits_for_level< Polynomial<A> , Polynomial<B>, CTL_POLYNOMIAL >
:public internal::Coercion_traits_for_polynomial< Polynomial<A>, Polynomial<B> > :public internal::Coercion_traits_for_polynomial< Polynomial<A>, Polynomial<B> >
{}; {};
template <class A,class B> template <class A,class B>
class Coercion_traits_for_level< Polynomial<A> , B , CTL_POLYNOMIAL > struct Coercion_traits_for_level< Polynomial<A> , B , CTL_POLYNOMIAL >
:public internal::Coercion_traits_for_polynomial< Polynomial<A>, B > :public internal::Coercion_traits_for_polynomial< Polynomial<A>, B >
{}; {};
template <class A,class B> template <class A,class B>
class Coercion_traits_for_level< A , Polynomial<B> , CTL_POLYNOMIAL > struct Coercion_traits_for_level< A , Polynomial<B> , CTL_POLYNOMIAL >
:public internal::Coercion_traits_for_polynomial< A , Polynomial<B> > :public internal::Coercion_traits_for_polynomial< A , Polynomial<B> >
{}; {};
@ -132,9 +132,9 @@ class Coercion_traits_for_level< A , Polynomial<B> , CTL_POLYNOMIAL >
// class this part should be adapted, using a Polynomial_traits // class this part should be adapted, using a Polynomial_traits
// and the nesting_depth // and the nesting_depth
template <class A,class B> template <class A,class B>
class Coercion_traits_for_level<Polynomial<A>, Polynomial<B>, CTL_POLYNOMIAL >{ struct Coercion_traits_for_level<Polynomial<A>, Polynomial<B>, CTL_POLYNOMIAL >{
typedef Coercion_traits<A,B> CT; typedef Coercion_traits<A,B> CT;
public:
typedef CGAL::Tag_true Are_explicit_interoperable; typedef CGAL::Tag_true Are_explicit_interoperable;
typedef CGAL::Tag_false Are_implicit_interoperable; typedef CGAL::Tag_false Are_implicit_interoperable;
typedef Polynomial<typename CT::Type> Type; typedef Polynomial<typename CT::Type> Type;
@ -154,9 +154,9 @@ public:
}; };
template <class A,class B> template <class A,class B>
class Coercion_traits_for_level<Polynomial<A>,B ,CTL_POLYNOMIAL >{ struct Coercion_traits_for_level<Polynomial<A>,B ,CTL_POLYNOMIAL >{
typedef Coercion_traits<A,B> CT; typedef Coercion_traits<A,B> CT;
public:
typedef CGAL::Tag_true Are_explicit_interoperable; typedef CGAL::Tag_true Are_explicit_interoperable;
typedef CGAL::Tag_false Are_implicit_interoperable; typedef CGAL::Tag_false Are_implicit_interoperable;
@ -175,7 +175,7 @@ public:
}; };
}; };
template <class A,class B> template <class A,class B>
class Coercion_traits_for_level<B,Polynomial<A>,CTL_POLYNOMIAL > struct Coercion_traits_for_level<B,Polynomial<A>,CTL_POLYNOMIAL >
:public Coercion_traits_for_level<Polynomial<A>,B,CTL_POLYNOMIAL > :public Coercion_traits_for_level<Polynomial<A>,B,CTL_POLYNOMIAL >
{}; {};

View File

@ -111,7 +111,7 @@ public:
} // namespace internal } // namespace internal
template <typename NT> template <typename NT>
struct Real_embeddable_traits<Polynomial<NT> > class Real_embeddable_traits<Polynomial<NT> >
:public internal::Real_embeddable_traits_poly_base< :public internal::Real_embeddable_traits_poly_base<
Polynomial<NT>, Polynomial<NT>,
typename Real_embeddable_traits<typename internal::Innermost_coefficient_type<NT>::Type>::Is_real_embeddable> typename Real_embeddable_traits<typename internal::Innermost_coefficient_type<NT>::Type>::Is_real_embeddable>