From 85d12929730dbbbdebca1ddaa6ea8bc7078a57f6 Mon Sep 17 00:00:00 2001 From: Michael Kerber Date: Wed, 3 Mar 2010 16:25:15 +0000 Subject: [PATCH] Introduced typedefs for template parameter --- .../include/CGAL/Handle_with_policy.h | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/STL_Extension/include/CGAL/Handle_with_policy.h b/STL_Extension/include/CGAL/Handle_with_policy.h index b72d36f0c42..40d9a80ff7e 100644 --- a/STL_Extension/include/CGAL/Handle_with_policy.h +++ b/STL_Extension/include/CGAL/Handle_with_policy.h @@ -179,9 +179,10 @@ class Handle_policy_union_and_reset; // ================================ //! the base class for bodies of reference counted representations \c T. -template +template class Reference_counted { public: + typedef T_ T; typedef Reference_counted Self; typedef T* Rep_pointer; private: @@ -205,9 +206,10 @@ public: * Base class for bodies of reference counted representations \c T * with a forwarding pointer for identical representations. */ -template +template class Reference_counted_with_forwarding { public: + typedef T_ T; typedef Reference_counted_with_forwarding Self; typedef T* Rep_pointer; friend class Handle_policy_union; @@ -707,11 +709,15 @@ public: has the default \c CGAL_ALLOCATOR(T). */ -template + class Allocator_ = CGAL_ALLOCATOR(T_)> class Handle_with_policy { public: + + //! first template parameter + typedef T_ T; + //! the handle type itself. typedef Handle_with_policy< T, HandlePolicy, Allocator_> Self; @@ -1132,9 +1138,13 @@ typename Handle_with_policy::Rep_allocator counted representations. Uses \c LEDA_MEMORY if available. */ -template -class Handle_with_policy { +template +class Handle_with_policy { public: + + //! first template paramter + typedef T_ T; + //! the handle type itself. typedef Handle_with_policy< T, Handle_policy_in_place, Allocator_> Self;