|
BWAPI
|
00001 // Copyright (c) 2005 Tel-Aviv University (Israel). 00002 // All rights reserved. 00003 // 00004 // This file is part of CGAL (www.cgal.org); you may redistribute it under 00005 // the terms of the Q Public License version 1.0. 00006 // See the file LICENSE.QPL distributed with CGAL. 00007 // 00008 // Licensees holding a valid commercial license may use this file in 00009 // accordance with the commercial license agreement provided with the software. 00010 // 00011 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 // 00014 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Boolean_set_operations_2/include/CGAL/Boolean_set_operations_2/Curve_with_halfedge.h $ 00015 // $Id: Curve_with_halfedge.h 28831 2006-02-27 14:28:18Z baruchzu $ 00016 // 00017 // 00018 // Author(s) : Baruch Zukerman <baruchzu@post.tau.ac.il> 00019 00020 #ifndef CGAL_CURVE_WITH_HALFEDGE_H 00021 #define CGAL_CURVE_WITH_HALFEDGE_H 00022 00023 CGAL_BEGIN_NAMESPACE 00024 00025 template <class Arrangement_> 00026 class Curve_with_halfedge 00027 { 00028 protected: 00029 typedef typename Arrangement_::Halfedge_handle Halfedge_handle; 00030 typedef typename Arrangement_::Halfedge_const_handle Halfedge_const_handle; 00031 00032 public: 00033 Halfedge_handle m_he; 00034 00035 Curve_with_halfedge() 00036 {}; 00037 00038 Curve_with_halfedge(Halfedge_handle he) : m_he(he) 00039 {} 00040 00041 Halfedge_handle halfedge() const 00042 { 00043 return (m_he); 00044 } 00045 00046 Halfedge_handle halfedge() 00047 { 00048 return (m_he); 00049 } 00050 00051 void set_halfedge(Halfedge_handle he) 00052 { 00053 m_he = he; 00054 } 00055 }; 00056 00057 CGAL_END_NAMESPACE 00058 #endif
1.7.6.1