From 370d887001ef799262bee337270e556435b864e9 Mon Sep 17 00:00:00 2001 From: Barend Gehrels Date: Mon, 13 Dec 2010 21:34:48 +0000 Subject: [PATCH] Added Boost.Range range adaptors adaptions for Boost.Geometry [SVN r67224] --- .../adapted/boost_range/adjacent_filtered.hpp | 35 +++++++++++++++++++ .../adapted/boost_range/filtered.hpp | 35 +++++++++++++++++++ .../adapted/boost_range/reversed.hpp | 35 +++++++++++++++++++ .../geometries/adapted/boost_range/sliced.hpp | 35 +++++++++++++++++++ .../adapted/boost_range/strided.hpp | 35 +++++++++++++++++++ .../adapted/boost_range/uniqued.hpp | 35 +++++++++++++++++++ 6 files changed, 210 insertions(+) create mode 100644 include/boost/geometry/geometries/adapted/boost_range/adjacent_filtered.hpp create mode 100644 include/boost/geometry/geometries/adapted/boost_range/filtered.hpp create mode 100644 include/boost/geometry/geometries/adapted/boost_range/reversed.hpp create mode 100644 include/boost/geometry/geometries/adapted/boost_range/sliced.hpp create mode 100644 include/boost/geometry/geometries/adapted/boost_range/strided.hpp create mode 100644 include/boost/geometry/geometries/adapted/boost_range/uniqued.hpp diff --git a/include/boost/geometry/geometries/adapted/boost_range/adjacent_filtered.hpp b/include/boost/geometry/geometries/adapted/boost_range/adjacent_filtered.hpp new file mode 100644 index 000000000..e2fffff74 --- /dev/null +++ b/include/boost/geometry/geometries/adapted/boost_range/adjacent_filtered.hpp @@ -0,0 +1,35 @@ + // 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_GEOMETRIES_ADAPTED_BOOST_RANGE_ADJACENT_FILTERED_HPP +#define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_ADJACENT_FILTERED_HPP + + +#include + +#include +#include + + +namespace boost { namespace geometry +{ + +namespace traits +{ + +template +struct tag > +{ + typedef typename geometry::tag::type type; +}; + +} + +}} // namespace boost::geometry + +#endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_ADJACENT_FILTERED_HPP + diff --git a/include/boost/geometry/geometries/adapted/boost_range/filtered.hpp b/include/boost/geometry/geometries/adapted/boost_range/filtered.hpp new file mode 100644 index 000000000..a85a45a34 --- /dev/null +++ b/include/boost/geometry/geometries/adapted/boost_range/filtered.hpp @@ -0,0 +1,35 @@ + // 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_GEOMETRIES_ADAPTED_BOOST_RANGE_FILTERED_HPP +#define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_FILTERED_HPP + + +#include + +#include +#include + + +namespace boost { namespace geometry +{ + +namespace traits +{ + +template +struct tag > +{ + typedef typename geometry::tag::type type; +}; + +} + +}} // namespace boost::geometry + +#endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_FILTERED_HPP + diff --git a/include/boost/geometry/geometries/adapted/boost_range/reversed.hpp b/include/boost/geometry/geometries/adapted/boost_range/reversed.hpp new file mode 100644 index 000000000..3941f5039 --- /dev/null +++ b/include/boost/geometry/geometries/adapted/boost_range/reversed.hpp @@ -0,0 +1,35 @@ +// 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_GEOMETRIES_ADAPTED_BOOST_RANGE_REVERSED_HPP +#define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_REVERSED_HPP + + +#include + +#include +#include + + +namespace boost { namespace geometry +{ + +namespace traits +{ + +template +struct tag > +{ + typedef typename geometry::tag::type type; +}; + +} + +}} // namespace boost::geometry + +#endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_REVERSED_HPP + diff --git a/include/boost/geometry/geometries/adapted/boost_range/sliced.hpp b/include/boost/geometry/geometries/adapted/boost_range/sliced.hpp new file mode 100644 index 000000000..a527882c5 --- /dev/null +++ b/include/boost/geometry/geometries/adapted/boost_range/sliced.hpp @@ -0,0 +1,35 @@ +// 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_GEOMETRIES_ADAPTED_BOOST_RANGE_SLICED_HPP +#define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_SLICED_HPP + + +#include + +#include +#include + + +namespace boost { namespace geometry +{ + +namespace traits +{ + +template +struct tag > +{ + typedef typename geometry::tag::type type; +}; + +} + +}} // namespace boost::geometry + +#endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_SLICED_HPP + diff --git a/include/boost/geometry/geometries/adapted/boost_range/strided.hpp b/include/boost/geometry/geometries/adapted/boost_range/strided.hpp new file mode 100644 index 000000000..4fe5ad93b --- /dev/null +++ b/include/boost/geometry/geometries/adapted/boost_range/strided.hpp @@ -0,0 +1,35 @@ +// 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_GEOMETRIES_ADAPTED_BOOST_RANGE_STRIDED_HPP +#define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_STRIDED_HPP + + +#include + +#include +#include + + +namespace boost { namespace geometry +{ + +namespace traits +{ + +template +struct tag > +{ + typedef typename geometry::tag::type type; +}; + +} + +}} // namespace boost::geometry + +#endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_STRIDED_HPP + diff --git a/include/boost/geometry/geometries/adapted/boost_range/uniqued.hpp b/include/boost/geometry/geometries/adapted/boost_range/uniqued.hpp new file mode 100644 index 000000000..794f6c535 --- /dev/null +++ b/include/boost/geometry/geometries/adapted/boost_range/uniqued.hpp @@ -0,0 +1,35 @@ + // 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_GEOMETRIES_ADAPTED_BOOST_RANGE_UNIQUED_HPP +#define BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_UNIQUED_HPP + + +#include + +#include +#include + + +namespace boost { namespace geometry +{ + +namespace traits +{ + +template +struct tag > +{ + typedef typename geometry::tag::type type; +}; + +} + +}} // namespace boost::geometry + +#endif // BOOST_GEOMETRY_GEOMETRIES_ADAPTED_BOOST_RANGE_UNIQUED_HPP +