BWAPI
|
00001 // Copyright (c) 1997 Utrecht University (The Netherlands), 00002 // ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany), 00003 // INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg 00004 // (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria), 00005 // and Tel-Aviv University (Israel). All rights reserved. 00006 // 00007 // This file is part of CGAL (www.cgal.org); you can redistribute it and/or 00008 // modify it under the terms of the GNU Lesser General Public License as 00009 // published by the Free Software Foundation; version 2.1 of the License. 00010 // See the file LICENSE.LGPL distributed with CGAL. 00011 // 00012 // Licensees holding a valid commercial license may use this file in 00013 // accordance with the commercial license agreement provided with the software. 00014 // 00015 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00016 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00017 // 00018 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/HalfedgeDS/include/CGAL/HalfedgeDS_default.h $ 00019 // $Id: HalfedgeDS_default.h 48908 2009-04-26 14:03:12Z spion $ 00020 // 00021 // 00022 // Author(s) : Lutz Kettner <kettner@mpi-sb.mpg.de> 00023 00024 #ifndef CGAL_HALFEDGEDS_DEFAULT_H 00025 #define CGAL_HALFEDGEDS_DEFAULT_H 1 00026 00027 #include <CGAL/HalfedgeDS_items_2.h> 00028 #include <CGAL/HalfedgeDS_list.h> 00029 #include <CGAL/memory.h> 00030 00031 CGAL_BEGIN_NAMESPACE 00032 00033 #ifndef CGAL_CFG_NO_TMPL_IN_TMPL_PARAM 00034 00035 template <class Traits_, class HalfedgeDSItems = HalfedgeDS_items_2, 00036 class Alloc = CGAL_ALLOCATOR(int)> 00037 class HalfedgeDS_default 00038 : public HalfedgeDS_list< Traits_, HalfedgeDSItems, Alloc> { 00039 public: 00040 typedef Traits_ Traits; 00041 typedef HalfedgeDS_list<Traits_, HalfedgeDSItems, Alloc> D_S; 00042 typedef typename D_S::size_type size_type; 00043 HalfedgeDS_default() {} 00044 HalfedgeDS_default( size_type v, size_type h, size_type f) 00045 : HalfedgeDS_list< Traits_, HalfedgeDSItems, Alloc>(v,h,f) {} 00046 }; 00047 #define CGAL_HALFEDGEDS_DEFAULT ::CGAL::HalfedgeDS_default 00048 00049 #else // CGAL_CFG_NO_TMPL_IN_TMPL_PARAM // 00050 00051 struct HalfedgeDS_default { 00052 template <class Traits_, class HalfedgeDSItems = HalfedgeDS_items_2, 00053 class Alloc = CGAL_ALLOCATOR(int)> 00054 class HDS : public HalfedgeDS_list::HDS<Traits_, HalfedgeDSItems, Alloc> { 00055 public: 00056 typedef Traits_ Traits; 00057 typedef HalfedgeDS_list::HDS<Traits_, HalfedgeDSItems, Alloc> D_S; 00058 typedef typename D_S::size_type size_type; 00059 HDS() {} 00060 HDS( size_type v, size_type h, size_type f) 00061 : HalfedgeDS_list::HDS<Traits_, HalfedgeDSItems, Alloc>(v,h,f) {} 00062 }; 00063 }; 00064 00065 #define CGAL_HALFEDGEDS_DEFAULT ::CGAL::HalfedgeDS_default::HDS 00066 00067 #endif // CGAL_CFG_NO_TMPL_IN_TMPL_PARAM // 00068 00069 CGAL_END_NAMESPACE 00070 #endif // CGAL_HALFEDGEDS_DEFAULT_H // 00071 // EOF //