// Copyright (c) 1997 INRIA Sophia-Antipolis (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 // 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$ // // // Author(s) : Mariette Yvinec // Menelaos Karavelas #ifndef CGAL_TRIANGULATION_ITERATOR_ADAPTATOR_H #define CGAL_TRIANGULATION_ITERATOR_ADAPTATOR_H #include namespace CGAL { template struct Triangulation_iterator_handle_adaptor : public Base { typedef Triangulation_iterator_handle_adaptor Self; Triangulation_iterator_handle_adaptor() : Base() {} Triangulation_iterator_handle_adaptor(const Base & b) : Base(b) {} // MK: added this to satisfy the mips_CC-7.40 compiler Self& operator=(const Self& other) { static_cast(*this) = static_cast(other); return *this; } operator Handle() const {return Base::base();} Self& operator++() { Base::operator++(); return *this;} Self& operator--() { Base::operator--(); return *this;} Self operator++(int) { Self tmp(*this); ++(*this); return tmp; } Self operator--(int) { Self tmp(*this); --(*this); return tmp; } }; } //namespace CGAL #endif //CGAL_TRIANGULATION_ITERATOR_ADAPTATOR_H