Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82402 - sandbox-branches/geometry/index/boost/geometry/extensions/index/rtree
From: adam.wulkiewicz_at_[hidden]
Date: 2013-01-08 09:40:58


Author: awulkiew
Date: 2013-01-08 09:40:57 EST (Tue, 08 Jan 2013)
New Revision: 82402
URL: http://svn.boost.org/trac/boost/changeset/82402

Log:
added qbk params in rtree description
Text files modified:
   sandbox-branches/geometry/index/boost/geometry/extensions/index/rtree/rtree.hpp | 293 ++++++++++++++++++++++++++++-----------
   1 files changed, 209 insertions(+), 84 deletions(-)

Modified: sandbox-branches/geometry/index/boost/geometry/extensions/index/rtree/rtree.hpp
==============================================================================
--- sandbox-branches/geometry/index/boost/geometry/extensions/index/rtree/rtree.hpp (original)
+++ sandbox-branches/geometry/index/boost/geometry/extensions/index/rtree/rtree.hpp 2013-01-08 09:40:57 EST (Tue, 08 Jan 2013)
@@ -124,11 +124,14 @@
     /*!
     \brief The constructor.
 
- \exception nothrow
-
     \param parameters The parameters object.
     \param translator The translator object.
     \param allocator The allocator object.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline explicit rtree(parameters_type parameters = parameters_type(),
                           translator_type const& translator = translator_type(),
@@ -144,13 +147,16 @@
     /*!
     \brief The constructor.
 
- \exception strong
-
     \param first The beginning of the range of Values.
     \param last The end of the range of Values.
     \param parameters The parameters object.
     \param translator The translator object.
     \param allocator The allocator object.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template<typename Iterator>
     inline rtree(Iterator first, Iterator last,
@@ -178,12 +184,15 @@
     /*!
     \brief The constructor.
 
- \exception strong
-
     \param rng The range of Values.
     \param parameters The parameters object.
     \param translator The translator object.
     \param allocator The allocator object.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template<typename Range>
     inline explicit rtree(Range const& rng,
@@ -211,7 +220,10 @@
     /*!
     \brief The destructor.
 
- \exception nothrow
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline ~rtree()
     {
@@ -223,9 +235,12 @@
 
     The copy constructor. It uses parameters, translator and allocator from the source tree.
 
- \exception strong
-
     \param src The rtree which content will be copied.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     inline rtree(rtree const& src)
         : m_translator(src.m_translator) // SHOULDN'T THROW
@@ -241,12 +256,17 @@
     }
 
     /*!
- \brief The copy constructor. It uses Parameters and translator from the source tree.
+ \brief The copy constructor.
 
- \exception strong
+ The copy constructor. It uses Parameters and translator from the source tree.
 
     \param src The rtree which content will be copied.
     \param allocator The allocator which will be used.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     inline rtree(rtree const& src, allocator_type const& allocator)
         : m_translator(src.m_translator) // SHOULDN'T THROW
@@ -264,9 +284,12 @@
 
     The moving constructor. It uses parameters, translator and allocator from the source tree.
 
- \exception nothrow
-
     \param src The rtree which content will be moved.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline rtree(BOOST_RV_REF(rtree) src)
 // TODO - use boost::move()
@@ -287,9 +310,12 @@
 
     The assignment operator. It uses parameters and translator from the source tree.
 
- \exception strong
-
     \param src The rtree which content will be copied.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     inline rtree & operator=(BOOST_COPY_ASSIGN_REF(rtree) src)
     {
@@ -309,9 +335,12 @@
 
     The moving assignment. It uses parameters and translator from the source tree.
 
- \exception nothrow (if allocators are equal), strong (if allocators aren't equal)
-
     \param src The rtree which content will be moved.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow (if allocators are equal), strong (if allocators aren't equal)
+ }
     */
     inline rtree & operator=(BOOST_RV_REF(rtree) src)
     {
@@ -349,9 +378,12 @@
 
     Swaps contents of two rtrees. Parameters, translator and allocators are swapped as well.
 
- \exception nothrow
-
     \param other The rtree which content will be swapped with this rtree content.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     void swap(rtree & other)
     {
@@ -369,10 +401,13 @@
     /*!
     \brief Insert a value to the index.
 
- \exception not safe - if this operation throws, the R-tree may be left in
- an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
-
     \param value The value which will be stored in the container.
+
+ \qbk{
+ [heading Exception-safety]
+ not safe - if this operation throws, the R-tree may be left in
+ an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
+ }
     */
     inline void insert(value_type const& value)
     {
@@ -385,11 +420,14 @@
     /*!
     \brief Insert a range of values to the index.
 
- \exception not safe - if this operation throws, the R-tree may be left in
- an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
-
     \param first The beginning of the range of values.
     \param last The end of the range of values.
+
+ \qbk{
+ [heading Exception-safety]
+ not safe - if this operation throws, the R-tree may be left in
+ an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
+ }
     */
     template <typename Iterator>
     inline void insert(Iterator first, Iterator last)
@@ -404,10 +442,13 @@
     /*!
     \brief Insert a range of values to the index.
 
- \exception not safe - if this operation throws, the R-tree may be left in
- an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
-
     \param rng The range of values.
+
+ \qbk{
+ [heading Exception-safety]
+ not safe - if this operation throws, the R-tree may be left in
+ an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
+ }
     */
     template <typename Range>
     inline void insert(Range const& rng)
@@ -426,12 +467,15 @@
     In contrast to the STL set/map erase() method
     this method removes only one value from the container.
 
- \exception not safe - if this operation throws, the R-tree may be left in
- an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
-
     \param value The value which will be removed from the container.
 
     \return 1 if the value was removed, 0 otherwise.
+
+ \qbk{
+ [heading Exception-safety]
+ not safe - if this operation throws, the R-tree may be left in
+ an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
+ }
     */
     inline size_type remove(value_type const& value)
     {
@@ -446,13 +490,16 @@
     to these passed as a range. Furthermore this method removes only one value for each one passed
     in the range, not all equal values.
 
- \exception not safe - if this operation throws, the R-tree may be left in
- an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
-
     \param first The beginning of the range of values.
     \param last The end of the range of values.
 
     \return The number of removed values.
+
+ \qbk{
+ [heading Exception-safety]
+ not safe - if this operation throws, the R-tree may be left in
+ an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
+ }
     */
     template <typename Iterator>
     inline size_type remove(Iterator first, Iterator last)
@@ -470,12 +517,15 @@
     it removes values equal to these passed as a range. Furthermore, this method removes only
     one value for each one passed in the range, not all equal values.
 
- \exception not safe - if this operation throws, the R-tree may be left in
- an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
-
     \param rng The range of values.
 
     \return The number of removed values.
+
+ \qbk{
+ [heading Exception-safety]
+ not safe - if this operation throws, the R-tree may be left in
+ an inconsistent state, elements must not be inserted or removed, methods may return invalid data.
+ }
     */
     template <typename Range>
     inline size_type remove(Range const& rng)
@@ -490,10 +540,13 @@
     /*
     Assign new elements to the rtree. This method replaces the content of the rtree.
 
- \exception strong
-
     \param first The beginning of the range of values.
     \param last The end of the range of values.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     /*template <typename Iterator>
     inline void assign(Iterator first, Iterator last)
@@ -505,9 +558,12 @@
     /*
     Assign new elements to the rtree. This method replaces the content of the rtree.
 
- \exception strong
-
     \param rng The range of values.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     /*template <typename Range>
     inline void assign(Range const& rng)
@@ -527,13 +583,16 @@
     or bgi::value(func). Those predicates may be passed together in std::pair
     or boost::tuple.
 
- \exception strong
-
     \param pred The spatial predicates or a Geometry.
     \param out_it The output iterator of the result range. E.g. an iterator generated by
                     std::back_inserter(container)
 
     \return The number of values found.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename Predicates, typename OutIter>
     inline size_type spatial_query(Predicates const& pred, OutIter out_it) const
@@ -562,13 +621,16 @@
     MinRelation and MaxRelation describes bounds and may be generated by bgi::to_nearest(dist_bound),
     bgi::to_centroid(dist_bound) or bgi::to_furthest(dist_bound).
 
- \exception strong
-
     \param dpred The distances predicates or a Point.
 
     \param v The reference to the object which will contain the result.
 
     \return The number of values found.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename DistancesPredicates>
     inline size_type nearest_query(DistancesPredicates const& dpred, value_type & v) const
@@ -598,13 +660,16 @@
     or bgi::value(func). Those predicates may be passed together in std::pair
     or boost::tuple.
 
- \exception strong
-
     \param dpred The distances predicates or a Point.
     \param pred The spatial predicates or a Geometry
     \param v The reference to the object which will contain the result.
 
     \return The number of values found.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename DistancesPredicates, typename Predicates>
     inline size_type nearest_query(DistancesPredicates const& dpred, Predicates const& pred, value_type & v) const
@@ -625,13 +690,16 @@
     MinRelation and MaxRelation describes bounds and may be generated by bgi::to_nearest(dist_bound),
     bgi::to_centroid(dist_bound) or bgi::to_furthest(dist_bound).
 
- \exception strong
-
     \param dpred The distances predicates or a Point.
     \param k The max number of values.
     \param out_it The output iterator of the result range. E.g. a back_insert_iterator.
 
     \return The number of values found.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename DistancesPredicates, typename OutIter>
     inline size_type nearest_query(DistancesPredicates const& dpred, size_t k, OutIter out_it) const
@@ -661,14 +729,17 @@
     or bgi::value(func). Those predicates may be passed together in std::pair
     or boost::tuple.
 
- \exception strong
-
     \param dpred The distances predicates or a Point
     \param k The max number of values.
     \param pred The spatial predicates or a Geometry.
     \param out_it The output iterator of the result range. E.g. a back_insert_iterator.
 
     \return The number of values found.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename DistancesPredicates, typename Predicates, typename OutIter>
     inline size_type nearest_query(DistancesPredicates const& dpred, size_t k, Predicates const& pred, OutIter out_it) const
@@ -679,9 +750,12 @@
     /*!
     \brief Returns the number of stored values.
 
- \exception nothrow
-
     \return The number of stored values.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline size_type size() const
     {
@@ -691,9 +765,12 @@
     /*!
     \brief Query if the container is empty.
 
- \exception nothrow
-
     \return true if the container is empty.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline bool empty() const
     {
@@ -703,7 +780,10 @@
     /*!
     \brief Removes all values stored in the container.
 
- \exception nothrow.
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline void clear()
     {
@@ -716,11 +796,14 @@
     Returns the box containing all values stored in the container.
     If the container is empty the result of geometry::assign_inverse() is returned.
 
- \exception nothrow (if Indexable's CoordinateType copy assignment doesn't throw),
- strong (if Indexable's CoordinateType copy assignment throws).
-
     \return The box containing all values stored in the container or an invalid box if
                 there are no values in the container.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow (if Indexable's CoordinateType copy assignment doesn't throw),
+ strong (if Indexable's CoordinateType copy assignment throws).
+ }
     */
     inline box_type box() const
     {
@@ -745,11 +828,14 @@
     For indexable_type it returns the number of values which indexables equals the parameter.
     For value_type it returns the number of values which equals the parameter.
 
- \exception nothrow.
-
     \param vori The value or indexable which will be counted.
 
     \return The number of values found.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     template <typename ValueOrIndexable>
     size_type count(ValueOrIndexable const& vori) const
@@ -768,9 +854,12 @@
     /*!
     \brief Returns parameters.
 
- \exception nothrow.
-
     \return The parameters object.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline parameters_type const& parameters() const
     {
@@ -780,9 +869,12 @@
     /*!
     \brief Returns the translator object.
 
- \exception nothrow.
-
     \return The translator object.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline translator_type const& translator() const
     {
@@ -792,9 +884,12 @@
     /*!
     \brief Returns allocator used by the rtree.
 
- \exception nothrow
-
     \return The allocator.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     allocator_type get_allocator() const
     {
@@ -810,9 +905,12 @@
     This function is not a part of the 'official' interface. However it makes
     possible e.g. to pass a visitor drawing the tree structure.
 
- \exception the same as Visitor::operator().
-
     \param visitor The visitor object.
+
+ \qbk{
+ [heading Exception-safety]
+ the same as Visitor::operator().
+ }
     */
     template <typename Visitor>
     inline void apply_visitor(Visitor & visitor) const
@@ -826,9 +924,12 @@
 
     This function is not a part of the 'official' interface.
 
- \exception nothrow
-
     \return The number of stored objects.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline size_type values_count() const
     {
@@ -840,9 +941,12 @@
 
     This function is not a part of the 'official' interface.
 
- \exception nothrow.
-
     \return The depth of the R-tree.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline size_type depth() const
     {
@@ -855,9 +959,12 @@
 
     \brief Insert a value to the index.
 
- \exception basic
-
     \param value The value which will be stored in the container.
+
+ \qbk{
+ [heading Exception-safety]
+ basic
+ }
     */
     inline void raw_insert(value_type const& value)
     {
@@ -884,9 +991,12 @@
     /*!
     \brief Remove the value from the container.
 
- \exception basic
-
     \param value The value which will be removed from the container.
+
+ \qbk{
+ [heading Exception-safety]
+ basic
+ }
     */
     inline size_type raw_remove(value_type const& value)
     {
@@ -914,7 +1024,10 @@
     /*!
     \brief Create an empty R-tree i.e. new empty root node and clear other attributes.
 
- \exception strong.
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     inline void raw_create()
     {
@@ -928,9 +1041,12 @@
     /*!
     \brief Destroy the R-tree i.e. all nodes and clear attributes.
 
- \exception nothrow.
-
     \param t The container which is going to be destroyed.
+
+ \qbk{
+ [heading Exception-safety]
+ nothrow
+ }
     */
     inline void raw_destroy(rtree & t)
     {
@@ -949,10 +1065,13 @@
     \brief Copy the R-tree i.e. whole nodes structure, values and other attributes.
     It uses destination's allocators to create the new structure.
 
- \exception strong.
-
     \param src The source R-tree.
     \param dst The destination R-tree.
+
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     inline void raw_copy(rtree const& src, rtree & dst, bool copy_all_internals) const
     {
@@ -984,7 +1103,10 @@
     /*!
     \brief Find one value meeting distances and spatial predicates.
 
- \exception strong.
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename DistancesPredicates, typename Predicates>
     inline size_type raw_nearest_one(DistancesPredicates const& dpred, Predicates const& pred, value_type & v) const
@@ -1022,7 +1144,10 @@
     /*!
     \brief Find k values meeting distances and spatial predicates.
 
- \exception strong.
+ \qbk{
+ [heading Exception-safety]
+ strong
+ }
     */
     template <typename DistancesPredicates, typename Predicates, typename OutIter>
     inline size_type raw_nearest_k(DistancesPredicates const& dpred, size_t k, Predicates const& pred, OutIter out_it) const


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