From 801f16755cec7f35912b16e1a177aa0e4b982f7e Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Tue, 26 Nov 2013 12:48:01 +0100 Subject: [PATCH] [PointVec] Documented private method uniqueInsert(). --- GeoLib/PointVec.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/GeoLib/PointVec.h b/GeoLib/PointVec.h index 1aad6c17f5d..ad936eef806 100644 --- a/GeoLib/PointVec.h +++ b/GeoLib/PointVec.h @@ -127,6 +127,17 @@ private: // this way the compiler does not create a (possible unwanted) assignment operator PointVec& operator= (const PointVec& rhs); + /** + * Inserts the instance of the Point into internal data structures + * (@see TemplateVec::_data_vec, _pnt_id_map) if and only if there + * does not exist a point with the same coordinates (upto + * std::numeric_limits<double>::epsilon()). In case there exists + * already a point with the same coordinates the given pnt-object + * will be deleted! + * @param pnt Pointer to GeooLib::Point instance + * @return either the new id or the id of the existing point with + * the same coordinates + */ std::size_t uniqueInsert (Point* pnt); /** the type of the point (\sa enum PointType) */ -- GitLab