/usr/include/boost/polygon/detail
NameSizeModeActions
boolean_op.hpp175800644editdlrm
boolean_op_45.hpp576180644editdlrm
iterator_compact_to_points.hpp22800644editdlrm
iterator_geometry_to_set.hpp120820644editdlrm
iterator_points_to_compact.hpp20750644editdlrm
max_cover.hpp116360644editdlrm
minkowski.hpp49430644editdlrm
polygon_45_formation.hpp902100644editdlrm
polygon_45_set_view.hpp171250644editdlrm
polygon_45_touch.hpp92840644editdlrm
polygon_90_set_view.hpp245700644editdlrm
polygon_90_touch.hpp175170644editdlrm
polygon_arbitrary_formation.hpp1352780644editdlrm
polygon_formation.hpp879520644editdlrm
polygon_set_view.hpp89430644editdlrm
polygon_simplify.hpp39380644editdlrm
polygon_sort_adaptor.hpp21960644editdlrm
property_merge.hpp231130644editdlrm
property_merge_45.hpp63430644editdlrm
rectangle_formation.hpp122860644editdlrm
scan_arbitrary.hpp1449250644editdlrm
voronoi_ctypes.hpp172640644editdlrm
voronoi_predicates.hpp627290644editdlrm
voronoi_robust_fpt.hpp148830644editdlrm
voronoi_structures.hpp111310644editdlrm
Edit: /usr/include/boost/polygon/detail/iterator_compact_to_points.hpp (2280B)
/* Copyright 2008 Intel Corporation Use, modification and distribution are subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt). */ #ifndef BOOST_POLYGON_ITERATOR_COMPACT_TO_POINTS_HPP #define BOOST_POLYGON_ITERATOR_COMPACT_TO_POINTS_HPP namespace boost { namespace polygon{ template class iterator_compact_to_points { private: iterator_type iter_; iterator_type iter_end_; point_type pt_; typename point_traits::coordinate_type firstX_; orientation_2d orient_; public: typedef std::forward_iterator_tag iterator_category; typedef point_type value_type; typedef std::ptrdiff_t difference_type; typedef const point_type* pointer; //immutable typedef const point_type& reference; //immutable inline iterator_compact_to_points() : iter_(), iter_end_(), pt_(), firstX_(), orient_() {} inline iterator_compact_to_points(iterator_type iter, iterator_type iter_end) : iter_(iter), iter_end_(iter_end), pt_(), firstX_(), orient_(HORIZONTAL) { if(iter_ != iter_end_) { firstX_ = *iter_; x(pt_, firstX_); ++iter_; if(iter_ != iter_end_) { y(pt_, *iter_); } } } //use bitwise copy and assign provided by the compiler inline iterator_compact_to_points& operator++() { iterator_type prev_iter = iter_; ++iter_; if(iter_ == iter_end_) { if(x(pt_) != firstX_) { iter_ = prev_iter; x(pt_, firstX_); } } else { set(pt_, orient_, *iter_); orient_.turn_90(); } return *this; } inline const iterator_compact_to_points operator++(int) { iterator_compact_to_points tmp(*this); ++(*this); return tmp; } inline bool operator==(const iterator_compact_to_points& that) const { if (iter_ == iter_end_) { return iter_ == that.iter_; } return (iter_ == that.iter_) && (x(pt_) == x(that.pt_)); } inline bool operator!=(const iterator_compact_to_points& that) const { if (iter_ == iter_end_) { return iter_ != that.iter_; } return (iter_ != that.iter_) || (x(pt_) != x(that.pt_)); } inline reference operator*() const { return pt_; } }; } } #endif