|
BWAPI
|
00001 // Copyright (c) 2003,2004,2005,2006 INRIA Sophia-Antipolis (France) and 00002 // Notre Dame University (U.S.A.). 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/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Voronoi_vertex_C2.h $ 00015 // $Id: Voronoi_vertex_C2.h 35201 2006-11-16 12:42:59Z hemmer $ 00016 // 00017 // 00018 // Author(s) : Menelaos Karavelas <mkaravel@cse.nd.edu> 00019 00020 00021 00022 #ifndef CGAL_SEGMENT_DELAUNAY_GRAPH_2_VORONOI_VERTEX_C2_H 00023 #define CGAL_SEGMENT_DELAUNAY_GRAPH_2_VORONOI_VERTEX_C2_H 00024 00025 00026 #include <CGAL/Segment_Delaunay_graph_2/basic.h> 00027 #include <CGAL/Segment_Delaunay_graph_2/Voronoi_vertex_ring_C2.h> 00028 #include <CGAL/Segment_Delaunay_graph_2/Voronoi_vertex_sqrt_field_C2.h> 00029 00030 00031 CGAL_BEGIN_NAMESPACE 00032 00033 CGAL_SEGMENT_DELAUNAY_GRAPH_2_BEGIN_NAMESPACE 00034 00035 namespace Internal { 00036 00037 template<class K,class M> struct Which_Voronoi_vertex_base_C2; 00038 00039 template<class K> 00040 struct Which_Voronoi_vertex_base_C2<K,Integral_domain_without_division_tag> 00041 { 00042 typedef Voronoi_vertex_ring_C2<K> Base; 00043 }; 00044 00045 template<class K> 00046 struct Which_Voronoi_vertex_base_C2<K,Field_with_sqrt_tag> 00047 { 00048 typedef Voronoi_vertex_sqrt_field_C2<K> Base; 00049 }; 00050 } // namespace Internal 00051 00052 //---------------------------------------------------------------------- 00053 00054 template<class K, class M> 00055 class Voronoi_vertex_C2 00056 : public Internal::Which_Voronoi_vertex_base_C2<K,M>::Base 00057 { 00058 private: 00059 typedef typename Internal::Which_Voronoi_vertex_base_C2<K,M>::Base Base; 00060 00061 protected: 00062 typedef typename Base::Site_2 Site_2; 00063 public: 00064 Voronoi_vertex_C2(const Site_2& p, const Site_2& q, 00065 const Site_2& r) 00066 : Base(p, q, r) {} 00067 }; 00068 00069 00070 CGAL_SEGMENT_DELAUNAY_GRAPH_2_END_NAMESPACE 00071 00072 CGAL_END_NAMESPACE 00073 00074 00075 00076 #endif // CGAL_SEGMENT_DELAUNAY_GRAPH_2_VORONOI_VERTEX_C2_H
1.7.6.1