From 33c6c42c101ad7b19e6cdce7820c6f5100a299e8 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Wed, 17 Jun 2015 14:00:00 +0200
Subject: [PATCH] [GL] Add protected method Point::setID().

The method is used from the friend class PointVec.
---
 GeoLib/Point.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/GeoLib/Point.h b/GeoLib/Point.h
index 011e00e9f10..4b27f267e0d 100644
--- a/GeoLib/Point.h
+++ b/GeoLib/Point.h
@@ -27,6 +27,9 @@ namespace GeoLib
  * \ingroup GeoLib
  */
 
+// forward declaration
+class PointVec;
+
 class Point : public MathLib::Point3dWithID, public GeoLib::GeoObject
 {
 public:
@@ -56,6 +59,11 @@ public:
 
 	/// return a geometry type
 	virtual GEOTYPE getGeoType() const {return GEOTYPE::POINT;}
+
+protected:
+	friend GeoLib::PointVec;
+	/// Resets the id.
+	void setID(std::size_t id) { _id = id; }
 };
 
 static const Point ORIGIN(0, 0, 0);
-- 
GitLab