From 8e18e667dfba887298783bacfdad76c0fac0c643 Mon Sep 17 00:00:00 2001
From: Thomas Fischer <thomas.fischer@ufz.de>
Date: Thu, 6 Sep 2012 08:31:26 +0200
Subject: [PATCH] added standard constructor and changed formating a little bit

---
 GeoLib/PointWithID.h | 25 ++++++++++++++++---------
 1 file changed, 16 insertions(+), 9 deletions(-)

diff --git a/GeoLib/PointWithID.h b/GeoLib/PointWithID.h
index a09b800e717..7d6a1dddf08 100644
--- a/GeoLib/PointWithID.h
+++ b/GeoLib/PointWithID.h
@@ -20,22 +20,29 @@ namespace GeoLib
  * class PointWithID is derived from class Point in
  * order to extend the class Point with an ID.
  */
-class PointWithID : public Point
-{
+class PointWithID: public Point {
 public:
-	PointWithID (double x0, double x1, double x2, size_t id) :
-		Point (x0, x1, x2), _id (id)
+	PointWithID(double x0, double x1, double x2, size_t id) :
+		Point(x0, x1, x2), _id(id)
+	{}
+
+	PointWithID(double const* const coords, size_t id) :
+		Point(coords), _id(id)
 	{}
 
-	PointWithID (double const* const coords, size_t id) :
-		Point (coords), _id (id)
+	PointWithID(GeoLib::Point const& pnt, size_t id) :
+		Point(pnt), _id(id)
 	{}
 
-	PointWithID (GeoLib::Point const& pnt, size_t id) :
-		Point (pnt), _id (id)
+	/**
+	 * standard constructor that initializes the id with 0 and calls
+	 * the standard constructor of class Point
+	 */
+	PointWithID() :
+		Point(), _id(0)
 	{}
 
-	size_t getID () const { return _id; }
+	size_t getID() const { return _id; }
 
 protected:
 	size_t _id;
-- 
GitLab