Removed obsolete get_sections

Small debug-tweak in assemble

[SVN r67295]
This commit is contained in:
Barend Gehrels
2010-12-18 10:29:46 +00:00
parent 2d69e93a5d
commit e7e2ab6b47
3 changed files with 6 additions and 139 deletions

View File

@@ -15,6 +15,12 @@
#include <boost/range.hpp>
#ifdef BOOST_GEOMETRY_DEBUG_ASSEMBLE
# define BOOST_GEOMETRY_DEBUG_IDENTIFIER
# include <boost/geometry/util/write_dsv.hpp>
#endif
#include <boost/geometry/algorithms/detail/overlay/get_ring.hpp>
#include <boost/geometry/algorithms/detail/overlay/convert_ring.hpp>
#include <boost/geometry/algorithms/detail/overlay/add_to_containment.hpp>
@@ -33,9 +39,6 @@
#include <boost/geometry/strategies/agnostic/point_in_poly_winding.hpp>
#ifdef BOOST_GEOMETRY_DEBUG_ASSEMBLE
# include <boost/geometry/util/write_dsv.hpp>
#endif
namespace boost { namespace geometry

View File

@@ -1,58 +0,0 @@
// Boost.Geometry (aka GGL, Generic Geometry Library)
//
// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.
// Copyright Bruno Lalande 2008, 2009
// 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)
#ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_SECTIONS_GET_SECTION_HPP
#define BOOST_GEOMETRY_ALGORITHMS_DETAIL_SECTIONS_GET_SECTION_HPP
// OBSOLETE
/***
#include <boost/range.hpp>
namespace boost { namespace geometry
{
\brief Get iterators for a specified section
\ingroup sectionalize
\tparam Range type
\tparam Section type of section to get from
\param range range (retrieved by "range_by_section") to take section of
\param section structure with section
\param begin begin-iterator (const iterator over points of section)
\param end end-iterator (const iterator over points of section)
template <typename Range, typename Section>
inline void get_section(Range const& range, Section const& section,
typename boost::range_iterator<Range const>::type& begin,
typename boost::range_iterator<Range const>::type& end)
{
begin = boost::begin(range) + section.begin_index;
end = boost::begin(range) + section.end_index + 1;
}
// non const version
template <typename Range, typename Section>
inline void get_section(Range& range, Section const& section,
typename boost::range_iterator<Range>::type& begin,
typename boost::range_iterator<Range>::type& end)
{
begin = boost::begin(range) + section.begin_index;
end = boost::begin(range) + section.end_index + 1;
}
}} // namespace boost::geometry
****/
#endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_SECTIONS_GET_SECTION_HPP

View File

@@ -1,78 +0,0 @@
// Boost.Geometry (aka GGL, Generic Geometry Library)
//
// Copyright Barend Gehrels 2007-2009, Geodan, Amsterdam, the Netherlands.
// Copyright Bruno Lalande 2008, 2009
// 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)
#ifndef BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_SECTIONS_GET_SECTION_HPP
#define BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_SECTIONS_GET_SECTION_HPP
// OBSOLETE
/*
#include <boost/assert.hpp>
#include <boost/concept/requires.hpp>
#include <boost/range.hpp>
#include <boost/geometry/multi/core/tags.hpp>
#include <boost/geometry/algorithms/detail/sections/get_section.hpp>
namespace boost { namespace geometry
{
#ifndef DOXYGEN_NO_DISPATCH
namespace dispatch
{
template <typename MultiPolygon, typename Section, bool IsConst>
struct get_section<multi_polygon_tag, MultiPolygon, Section, IsConst>
{
typedef typename boost::range_iterator
<
typename add_const_if_c
<
IsConst,
typename geometry::range_type<MultiPolygon>::type
>::type
>::type iterator_type;
static inline void apply(
typename add_const_if_c
<
IsConst,
MultiPolygon
>::type const& multi_polygon,
Section const& section,
iterator_type& begin, iterator_type& end)
{
BOOST_ASSERT(
section.multi_index >= 0
&& section.multi_index < boost::size(multi_polygon)
);
get_section
<
polygon_tag,
typename boost::range_value<MultiPolygon>::type,
Section,
IsConst
>::apply(multi_polygon[section.multi_index], section, begin, end);
}
};
} // namespace dispatch
#endif
}} // namespace boost::geometry
*/
#endif // BOOST_GEOMETRY_MULTI_ALGORITHMS_DETAIL_SECTIONS_GET_SECTION_HPP