// Copyright (c) 2010-2011 CNRS and LIRIS' Establishments (France). // All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; either version 3 of the License, // or (at your option) any later version. // // 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$ // $Id$ // SPDX-License-Identifier: LGPL-3.0+ // // Author(s) : Guillaume Damiand // #ifndef CGAL_CELL_CONST_ITERATORS_H #define CGAL_CELL_CONST_ITERATORS_H 1 #include // TODO do all the orbit iterator of any orbit ? namespace CGAL { /** @file Cell_const_iterators.h * The cell const iterators. There are 3 classes: * - CMap_cell_const_iterator * - CMap_one_dart_per_incident_cell_const_iterator * - CMap_one_dart_per_cell_const_iterator */ //**************************************************************************** template class CMap_cell_const_iterator: public CMap_cell_iterator { public: typedef CMap_cell_iterator Base; typedef typename Map_::Dart_const_handle Dart_const_handle; /// Main constructor. CMap_cell_const_iterator(const Map_& amap, Dart_const_handle adart): Base(amap,adart) {} /// Constructor from non const version. CMap_cell_const_iterator (const CMap_cell_iterator& it): Base(*const_cast(it.get_combinatorial_map()), it.get_first_dart()) {} }; //**************************************************************************** template class CMap_one_dart_per_incident_cell_const_iterator: public CMap_one_dart_per_incident_cell_iterator { public: typedef CMap_one_dart_per_incident_cell_iterator Base; typedef typename Map_::Dart_const_handle Dart_const_handle; /// Main constructor. CMap_one_dart_per_incident_cell_const_iterator(const Map_& amap, Dart_const_handle adart): Base(amap, adart) {} /// Constructor from non const version. CMap_one_dart_per_incident_cell_const_iterator (const CMap_one_dart_per_incident_cell_iterator& it): Base(*const_cast(it.get_combinatorial_map()), it.get_first_dart()) {} }; //**************************************************************************** template class CMap_one_dart_per_cell_const_iterator: public CMap_one_dart_per_cell_iterator { public: typedef CMap_one_dart_per_cell_iterator Base; typedef typename Map_::Dart_const_handle Dart_const_handle; /// Main constructor. CMap_one_dart_per_cell_const_iterator(const Map_& amap): Base(amap) {} /// Constructor with a dart in parameter (for end iterator). CMap_one_dart_per_cell_const_iterator(const Map_& amap, Dart_const_handle adart): Base(amap, adart) {} /// Constructor from non const version. CMap_one_dart_per_cell_const_iterator (const CMap_one_dart_per_cell_iterator& it): Base(*const_cast(it.get_combinatorial_map()), it.get_first_dart()) {} }; //**************************************************************************** //**************************************************************************** } // namespace CGAL //****************************************************************************** #endif // CGAL_CELL_CONST_ITERATORS_H //******************************************************************************