[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars/htmesh
From:       Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date:       2011-02-27 19:48:57
Message-ID: 20110227194857.49DB1AC8C8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1222971 by khudyakov:

Remove friends from SpatialVector

Move inline functions to the class declaration

 M  +8 -4      SpatialVector.h  
 D             SpatialVector.hxx  


--- trunk/KDE/kdeedu/kstars/kstars/htmesh/SpatialVector.h #1222970:1222971
@@ -71,13 +71,13 @@
   float64 length() const;
 
   /// return x (only as rvalue)
-  float64 x() const;
+  float64 x() const { return x_; }
 
   /// return y
-  float64 y() const;
+  float64 y() const { return y_; }
 
   /// return z
-  float64 z() const;
+  float64 z() const { return z_; }
 
   /// return ra - this norms the vector to 1 if not already done so
   float64 ra();
@@ -128,7 +128,11 @@
   friend class SpatialIndex;
 };
 
-#include "SpatialVector.hxx"
+// Friend operators
+SpatialVector operator *(float64, const SpatialVector&);
+SpatialVector operator *(int, const SpatialVector&);
+SpatialVector operator *(const SpatialVector&, float64);
+SpatialVector operator *(const SpatialVector&, int);
 
 #endif
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic