// Copyright (c) 1999 INRIA Sophia-Antipolis (France). // 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$ // $Id$ // // // Author(s) : Monique Teillaud #ifndef CGAL_TRIANGULATION_VERTEX_BASE_3_H #define CGAL_TRIANGULATION_VERTEX_BASE_3_H #include #include #include CGAL_BEGIN_NAMESPACE template < typename GT, typename DSVb = Triangulation_ds_vertex_base_3<> > class Triangulation_vertex_base_3 : public DSVb { public: typedef typename DSVb::Cell_handle Cell_handle; typedef GT Geom_traits; typedef typename GT::Point_3 Point; template < typename TDS2 > struct Rebind_TDS { typedef typename DSVb::template Rebind_TDS::Other DSVb2; typedef Triangulation_vertex_base_3 Other; }; Triangulation_vertex_base_3() : DSVb() {} Triangulation_vertex_base_3(const Point & p) : DSVb(), _p(p) {} Triangulation_vertex_base_3(const Point & p, const Cell_handle& c) : DSVb(c), _p(p) {} Triangulation_vertex_base_3(const Cell_handle& c) : DSVb(c), _p() {} const Point & point() const { return _p; } Point & point() { return _p; } void set_point(const Point & p) { _p = p; } private: Point _p; }; template < class GT, class DSVb > std::istream& operator>>(std::istream &is, Triangulation_vertex_base_3 &v) // non combinatorial information. Default = point { return is >> static_cast(v) >> v.point(); } template < class GT, class DSVb > std::ostream& operator<<(std::ostream &os, const Triangulation_vertex_base_3 &v) // non combinatorial information. Default = point { return os << static_cast(v) << v.point(); } CGAL_END_NAMESPACE #endif // CGAL_TRIANGULATION_VERTEX_BASE_3_H