⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 construct_storage_site_with_info_2.h

📁 很多二维 三维几何计算算法 C++ 类库
💻 H
字号:
// Copyright (c) 2006 Foundation for Research and Technology-Hellas (Greece).// All rights reserved.//// This file is part of CGAL (www.cgal.org); you may redistribute it under// the terms of the Q Public License version 1.0.// See the file LICENSE.QPL distributed with CGAL.//// Licensees holding a valid commercial license may use this file in// accordance with the commercial license agreement provided with the software.//// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.//// $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.3-branch/Segment_Delaunay_graph_2/include/CGAL/Segment_Delaunay_graph_2/Construct_storage_site_with_info_2.h $// $Id: Construct_storage_site_with_info_2.h 32830 2006-07-31 13:25:07Z mkaravel $// //// Author(s)     : Menelaos Karavelas <mkaravel@iacm.forth.gr>#ifndef CGAL_SEGMENT_DELAUNAY_GRAPH_2_CONSTRUCT_STORAGE_SITE_WITH_INFO_2_H#define CGAL_SEGMENT_DELAUNAY_GRAPH_2_CONSTRUCT_STORAGE_SITE_WITH_INFO_2_H 1#include <CGAL/Segment_Delaunay_graph_2/basic.h>#include <CGAL/Segment_Delaunay_graph_2/Construct_storage_site_2.h>CGAL_BEGIN_NAMESPACECGAL_SEGMENT_DELAUNAY_GRAPH_2_BEGIN_NAMESPACEtemplate<class STraits>class Construct_storage_site_with_info_2  : public Construct_storage_site_2<STraits>{public:  typedef STraits                                    Storage_traits;  typedef typename Storage_traits::Storage_site_2    Storage_site_2;  typedef typename Storage_traits::Point_handle      Point_handle;  typedef Storage_site_2                             result_type;  //  struct Arity {};protected:  typedef Construct_storage_site_2<Storage_traits>   Base;  typedef typename Storage_traits::Info              Info;  typedef typename Storage_traits::Convert_info      Convert_info;  typedef typename Storage_traits::Merge_info        Merge_info;public:  // constructs the point of intersection  inline  result_type operator()(const Storage_site_2& ss0,			 const Storage_site_2& ss1) const {    Storage_site_2 ssx = Base::operator()(ss0, ss1);    Info infox = Merge_info()(ss0.info(), ss1.info());    ssx.set_info(infox);    return ssx;  }  // constructs the subsegment with supporting segment ss0 and  // endpoints the point of intersection of ss1 and ss0; the boolean  // determines if the first or segment subsegment is constructed  inline  result_type operator()(const Storage_site_2& ss0,			 const Storage_site_2& ss1,			 bool first) const {    Storage_site_2 s = Base::operator()(ss0, ss1, first);    Info is = Convert_info()(ss0.info(), ss1.info(), first);    s.set_info(is);    return s;  }  using Base::operator();};CGAL_SEGMENT_DELAUNAY_GRAPH_2_END_NAMESPACECGAL_END_NAMESPACE#endif // CGAL_SEGMENT_DELAUNAY_GRAPH_2_CONSTRUCT_STORAGE_SITE_WITH_INFO_2_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -