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/Point_with_vertex.h $ 00015 // $Id: Point_with_vertex.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_POINT_WITH_VERTEX_H 00021 #define CGAL_POINT_WITH_VERTEX_H 00022 00023 CGAL_BEGIN_NAMESPACE 00024 00025 template <class Arrangement_> 00026 class Point_with_vertex 00027 { 00028 protected: 00029 typedef typename Arrangement_::Vertex_handle Vertex_handle; 00030 typedef typename Arrangement_::Vertex_const_handle Vertex_const_handle; 00031 00032 public: 00033 Vertex_handle m_v; 00034 00035 Point_with_vertex() 00036 {}; 00037 00038 Point_with_vertex(Vertex_handle v) : m_v(v) 00039 {} 00040 00041 Vertex_handle vertex() const 00042 { 00043 return (m_v); 00044 } 00045 00046 Vertex_handle vertex() 00047 { 00048 return (m_v); 00049 } 00050 00051 void set_halfedge(Vertex_handle v) 00052 { 00053 m_v = v; 00054 } 00055 }; 00056 00057 CGAL_END_NAMESPACE 00058 #endif