Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] Using ranges in point set processing?
- Date: Wed, 4 May 2016 08:41:38 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:AJh69hK5bN765zaUrtmcpTZWNBhigK39O0sv0rFitYgUL/TxwZ3uMQTl6Ol3ixeRBMOAu6MC07Od6vi8EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35Xxj7n5osWPKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxcK08CLBZFz87KHsd5cvxtBCFQxHcyGEbVzAtkx9PBUDq7QvzQ5v2rmOuret43y/cMszsRK04XiiK4KpsTRL0kjYJPjUl93vGzMd3ifQI81qauxVjztuMM8muP/1kc/aFcA==
Le 04/05/2016 01:25, Marc Glisse a écrit :
On Tue, 3 May 2016, Andreas Fabri wrote:Thanks for the document. Indeed, it seems that removing the requirement for a size() operator would make the CGAL Range concept would make it compatible (or as you pointed, turning it into a SizedRange concept).
A related question is if the CGAL Range concept
http://doc.cgal.org/latest/Circulator/classRange.html
is the way it should be, or if it has design flaws.
The future seems to be
https://github.com/ericniebler/stl2/raw/master/D4569.pdf
The CGAL concept doesn't look fundamentally incompatible with SizedRange...
Something already available and based on free functions (instead of methods, similarly to the "get" mechanism that we already use in CGAL) is the Boost Range: http://www.boost.org/doc/libs/1_39_0/libs/range/doc/boost_range.html
It seems to be even more generic (accepting also pairs of iterators –which would make the transition from pairs of iterators to range really straightfoward– and built-in arrays).
--
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/
- [cgal-discuss] Using ranges in point set processing?, Simon Giraudot, 05/03/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Andreas Fabri, 05/03/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Frédérik Paradis, 05/04/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Marc Glisse, 05/04/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Simon Giraudot, 05/04/2016
- Re: [cgal-discuss] Using ranges in point set processing?, Andreas Fabri, 05/03/2016
Archive powered by MHonArc 2.6.18.