📄 identity_rejectors.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/Voronoi_diagram_2/include/CGAL/Voronoi_diagram_2/Identity_rejectors.h $// $Id: Identity_rejectors.h 37188 2007-03-17 09:37:57Z afabri $// //// Author(s) : Menelaos Karavelas <mkaravel@iacm.forth.gr>#ifndef CGAL_VORONOI_DIAGRAM_2_IDENTITY_REJECTORS_H#define CGAL_VORONOI_DIAGRAM_2_IDENTITY_REJECTORS_H 1#include <CGAL/Voronoi_diagram_2/basic.h>CGAL_BEGIN_NAMESPACECGAL_VORONOI_DIAGRAM_2_BEGIN_NAMESPACE//=========================================================================//=========================================================================struct Rejector_base{ inline void clear() {} inline void swap(Rejector_base&) {} inline bool is_valid() const { return true; }};//=========================================================================//=========================================================================template<class DG>struct Identity_edge_rejector : public Rejector_base{ typedef DG Delaunay_graph; typedef bool result_type; typedef Arity_tag<2> Arity; typedef typename Delaunay_graph::Edge Edge; typedef typename Delaunay_graph::Face_handle Face_handle; typedef typename Delaunay_graph::Edge_circulator Edge_circulator; typedef typename Delaunay_graph::All_edges_iterator All_edges_iterator; typedef typename Delaunay_graph::Finite_edges_iterator Finite_edges_iterator; bool operator()(const Delaunay_graph& , const Face_handle& , int ) const { return false; } bool operator()(const Delaunay_graph& , const Edge& ) const { return false; } bool operator()(const Delaunay_graph& , const All_edges_iterator& ) const { return false; } bool operator()(const Delaunay_graph& , const Finite_edges_iterator& ) const { return false; } bool operator()(const Delaunay_graph& , const Edge_circulator& ) const { return false; }};//=========================================================================//=========================================================================template<class DG>struct Identity_face_rejector : public Rejector_base{ typedef DG Delaunay_graph; typedef bool result_type; typedef Arity_tag<2> Arity; typedef typename Delaunay_graph::Vertex_handle Vertex_handle; bool operator()(const Delaunay_graph&, const Vertex_handle&) const { return false; }};//=========================================================================//=========================================================================CGAL_VORONOI_DIAGRAM_2_END_NAMESPACECGAL_END_NAMESPACE#endif // CGAL_VORONOI_DIAGRAM_2_IDENTITY_REJECTORS_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -