1[/============================================================================ 2 Boost.Geometry (aka GGL, Generic Geometry Library) 3 4 Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands. 5 Copyright (c) 2008-2013 Bruno Lalande, Paris, France. 6 Copyright (c) 2009-2013 Mateusz Loskot, London, UK. 7 8 Use, modification and distribution is subject to the Boost Software License, 9 Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 10 http://www.boost.org/LICENSE_1_0.txt) 11=============================================================================/] 12 13 14[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically] 15[/ Generated from doxy/doxygen_output/xml/group__for__each.xml] 16[section:for_each_point for_each_point] 17 18'''<indexterm><primary>for_each_point</primary></indexterm>''' 19Applies function [*f] to each point. 20 21[heading Description] 22Applies a function [*f] (functor, having operator() defined) to each point making up the geometry 23 24[heading Synopsis] 25``template<typename Geometry, typename Functor> 26Functor for_each_point(Geometry & geometry, Functor f)`` 27 28[heading Parameters] 29 30[table 31[[Type] [Concept] [Name] [Description] ] 32[[Geometry &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]] 33[[Functor] [Function or class with operator()] [f] [Unary function, taking a point as argument ]] 34] 35 36 37[heading Header] 38Either 39 40`#include <boost/geometry.hpp>` 41 42 43Or 44 45`#include <boost/geometry/algorithms/for_each.hpp>` 46 47[include reference/algorithms/for_each_point.qbk] 48[heading Example] 49[for_each_point] [for_each_point_output] 50[for_each_point_const] [for_each_point_const_output] 51 52 53[endsect] 54 55[section:for_each_segment for_each_segment] 56 57'''<indexterm><primary>for_each_segment</primary></indexterm>''' 58Applies function [*f] to each segment. 59 60[heading Description] 61Applies a function [*f] (functor, having operator() defined) to each segment making up the geometry 62 63[heading Synopsis] 64``template<typename Geometry, typename Functor> 65Functor for_each_segment(Geometry & geometry, Functor f)`` 66 67[heading Parameters] 68 69[table 70[[Type] [Concept] [Name] [Description] ] 71[[Geometry &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]] 72[[Functor] [Function or class with operator()] [f] [Unary function, taking a segment as argument ]] 73] 74 75 76[heading Header] 77Either 78 79`#include <boost/geometry.hpp>` 80 81 82Or 83 84`#include <boost/geometry/algorithms/for_each.hpp>` 85 86[include reference/algorithms/for_each_segment.qbk] 87[heading Example] 88[for_each_segment_const] [for_each_segment_const_output] 89 90 91[endsect] 92 93