Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85565 - trunk/boost/geometry/multi/geometries/concepts
From: barend.gehrels_at_[hidden]
Date: 2013-09-04 11:16:29


Author: barendgehrels
Date: 2013-09-04 11:16:29 EDT (Wed, 04 Sep 2013)
New Revision: 85565
URL: http://svn.boost.org/trac/boost/changeset/85565

Log:
[geometry] added traits::clear, resize, push_back to multi concepts

Text files modified:
   trunk/boost/geometry/multi/geometries/concepts/multi_linestring_concept.hpp | 5 +++++
   trunk/boost/geometry/multi/geometries/concepts/multi_point_concept.hpp | 5 +++++
   trunk/boost/geometry/multi/geometries/concepts/multi_polygon_concept.hpp | 5 +++++
   3 files changed, 15 insertions(+), 0 deletions(-)

Modified: trunk/boost/geometry/multi/geometries/concepts/multi_linestring_concept.hpp
==============================================================================
--- trunk/boost/geometry/multi/geometries/concepts/multi_linestring_concept.hpp Wed Sep 4 07:58:33 2013 (r85564)
+++ trunk/boost/geometry/multi/geometries/concepts/multi_linestring_concept.hpp 2013-09-04 11:16:29 EDT (Wed, 04 Sep 2013) (r85565)
@@ -53,6 +53,11 @@
 
     BOOST_CONCEPT_USAGE(MultiLinestring)
     {
+ Geometry* mls = 0;
+ traits::clear<Geometry>::apply(*mls);
+ traits::resize<Geometry>::apply(*mls, 0);
+ linestring_type* ls = 0;
+ traits::push_back<Geometry>::apply(*mls, *ls);
     }
 #endif
 };

Modified: trunk/boost/geometry/multi/geometries/concepts/multi_point_concept.hpp
==============================================================================
--- trunk/boost/geometry/multi/geometries/concepts/multi_point_concept.hpp Wed Sep 4 07:58:33 2013 (r85564)
+++ trunk/boost/geometry/multi/geometries/concepts/multi_point_concept.hpp 2013-09-04 11:16:29 EDT (Wed, 04 Sep 2013) (r85565)
@@ -52,6 +52,11 @@
 
     BOOST_CONCEPT_USAGE(MultiPoint)
     {
+ Geometry* mp = 0;
+ traits::clear<Geometry>::apply(*mp);
+ traits::resize<Geometry>::apply(*mp, 0);
+ point_type* point = 0;
+ traits::push_back<Geometry>::apply(*mp, *point);
     }
 #endif
 };

Modified: trunk/boost/geometry/multi/geometries/concepts/multi_polygon_concept.hpp
==============================================================================
--- trunk/boost/geometry/multi/geometries/concepts/multi_polygon_concept.hpp Wed Sep 4 07:58:33 2013 (r85564)
+++ trunk/boost/geometry/multi/geometries/concepts/multi_polygon_concept.hpp 2013-09-04 11:16:29 EDT (Wed, 04 Sep 2013) (r85565)
@@ -52,6 +52,11 @@
 
     BOOST_CONCEPT_USAGE(MultiPolygon)
     {
+ Geometry* mp = 0;
+ traits::clear<Geometry>::apply(*mp);
+ traits::resize<Geometry>::apply(*mp, 0);
+ polygon_type* poly = 0;
+ traits::push_back<Geometry>::apply(*mp, *poly);
     }
 #endif
 };


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