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

[SVN r85565]
This commit is contained in:
Barend Gehrels
2013-09-04 15:16:29 +00:00
parent bfff854c0c
commit 154e4504e9
3 changed files with 15 additions and 0 deletions

View File

@@ -53,6 +53,11 @@ public :
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
};

View File

@@ -52,6 +52,11 @@ public :
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
};

View File

@@ -52,6 +52,11 @@ public :
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
};