93 lines
2.6 KiB
Plaintext
93 lines
2.6 KiB
Plaintext
[/============================================================================
|
|
Boost.Geometry (aka GGL, Generic Geometry Library)
|
|
|
|
Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
|
|
Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
|
|
Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
|
|
|
|
Use, modification and distribution is 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)
|
|
=============================================================================/]
|
|
|
|
|
|
[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
|
|
[/ Generated from doxy/doxygen_output/xml/group__for__each.xml]
|
|
[section:for_each_point for_each_point]
|
|
|
|
'''<indexterm><primary>for_each_point</primary></indexterm>'''
|
|
Applies function [*f] to each point.
|
|
|
|
[heading Description]
|
|
Applies a function [*f] (functor, having operator() defined) to each point making up the geometry
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry, typename Functor>
|
|
Functor for_each_point(Geometry & geometry, Functor f)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
|
|
[[Functor] [Function or class with operator()] [f] [Unary function, taking a point as argument ]]
|
|
]
|
|
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry.hpp>`
|
|
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/algorithms/for_each.hpp>`
|
|
|
|
[include reference/algorithms/for_each_point.qbk]
|
|
[heading Example]
|
|
[for_each_point] [for_each_point_output]
|
|
[for_each_point_const] [for_each_point_const_output]
|
|
|
|
|
|
[endsect]
|
|
|
|
[section:for_each_segment for_each_segment]
|
|
|
|
'''<indexterm><primary>for_each_segment</primary></indexterm>'''
|
|
Applies function [*f] to each segment.
|
|
|
|
[heading Description]
|
|
Applies a function [*f] (functor, having operator() defined) to each segment making up the geometry
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry, typename Functor>
|
|
Functor for_each_segment(Geometry & geometry, Functor f)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
|
|
[[Functor] [Function or class with operator()] [f] [Unary function, taking a segment as argument ]]
|
|
]
|
|
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry.hpp>`
|
|
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/algorithms/for_each.hpp>`
|
|
|
|
[include reference/algorithms/for_each_segment.qbk]
|
|
[heading Example]
|
|
[for_each_segment_const] [for_each_segment_const_output]
|
|
|
|
|
|
[endsect]
|
|
|