Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64098 - sandbox/geometry/boost/geometry/multi/algorithms
From: barend.gehrels_at_[hidden]
Date: 2010-07-17 10:25:35


Author: barendgehrels
Date: 2010-07-17 10:25:33 EDT (Sat, 17 Jul 2010)
New Revision: 64098
URL: http://svn.boost.org/trac/boost/changeset/64098

Log:
Added clear for multi-geometries
Added:
   sandbox/geometry/boost/geometry/multi/algorithms/clear.hpp (contents, props changed)
Text files modified:
   sandbox/geometry/boost/geometry/multi/algorithms/simplify.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Added: sandbox/geometry/boost/geometry/multi/algorithms/clear.hpp
==============================================================================
--- (empty file)
+++ sandbox/geometry/boost/geometry/multi/algorithms/clear.hpp 2010-07-17 10:25:33 EDT (Sat, 17 Jul 2010)
@@ -0,0 +1,47 @@
+// Boost.Geometry (aka GGL, Generic Geometry Library)
+//
+// Copyright Barend Gehrels 2010, Geodan, Amsterdam, the Netherlands.
+// 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_CLEAR_HPP
+#define BOOST_GEOMETRY_MULTI_ALGORITHMS_CLEAR_HPP
+
+
+#include <boost/geometry/multi/core/tags.hpp>
+#include <boost/geometry/algorithms/clear.hpp>
+
+
+namespace boost { namespace geometry
+{
+
+
+#ifndef DOXYGEN_NO_DISPATCH
+namespace dispatch
+{
+
+template <typename Geometry>
+struct clear<multi_point_tag, Geometry>
+ : detail::clear::collection_clear<Geometry>
+{};
+
+
+template <typename Geometry>
+struct clear<multi_linestring_tag, Geometry>
+ : detail::clear::collection_clear<Geometry>
+{};
+
+template <typename Geometry>
+struct clear<multi_polygon_tag, Geometry>
+ : detail::clear::collection_clear<Geometry>
+{};
+
+} // namespace dispatch
+#endif
+
+
+}} // namespace boost::geometry
+
+
+#endif // BOOST_GEOMETRY_MULTI_ALGORITHMS_CLEAR_HPP

Modified: sandbox/geometry/boost/geometry/multi/algorithms/simplify.hpp
==============================================================================
--- sandbox/geometry/boost/geometry/multi/algorithms/simplify.hpp (original)
+++ sandbox/geometry/boost/geometry/multi/algorithms/simplify.hpp 2010-07-17 10:25:33 EDT (Sat, 17 Jul 2010)
@@ -16,6 +16,7 @@
 
 #include <boost/geometry/multi/iterators/range_type.hpp>
 
+#include <boost/geometry/multi/algorithms/clear.hpp>
 #include <boost/geometry/algorithms/simplify.hpp>
 
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk