[Lemon-commits] [lemon_svn] marci: r335 - in hugo/trunk/src/work: athos/xy marci

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:38:50 CET 2006


Author: marci
Date: Tue Mar 23 12:12:48 2004
New Revision: 335

Modified:
   hugo/trunk/src/work/athos/xy/xy.h
   hugo/trunk/src/work/marci/graph_wrapper.h

Log:
.


Modified: hugo/trunk/src/work/athos/xy/xy.h
==============================================================================
--- hugo/trunk/src/work/athos/xy/xy.h	(original)
+++ hugo/trunk/src/work/athos/xy/xy.h	Tue Mar 23 12:12:48 2004
@@ -17,10 +17,10 @@
     public:
       
       ///Default constructor: both coordinates become 0
-      xy() { _x=_y=0; }
+      xy() : _x(0), _y(0 ){ /*_x=_y=0;*/ }
 
       ///Constructing from coordinates
-      xy(T a, T b) { _x=a; _y=b; }
+      xy(T a, T b) : _x(a), _x(b) { /*_x=a; _y=b;*/ }
 
       ///Gives back the x coordinate
       T x(){

Modified: hugo/trunk/src/work/marci/graph_wrapper.h
==============================================================================
--- hugo/trunk/src/work/marci/graph_wrapper.h	(original)
+++ hugo/trunk/src/work/marci/graph_wrapper.h	Tue Mar 23 12:12:48 2004
@@ -328,8 +328,15 @@
   template<typename GraphWrapper>
   class RevGraphWrapper : public GraphWrapperSkeleton<GraphWrapper> {
   public:
+    typedef typename GraphWrapperSkeleton<GraphWrapper>::Node Node;
+    typedef typename GraphWrapperSkeleton<GraphWrapper>::Edge Edge;
     typedef typename GraphWrapperSkeleton<GraphWrapper>::OutEdgeIt InEdgeIt;
     typedef typename GraphWrapperSkeleton<GraphWrapper>::InEdgeIt OutEdgeIt;
+
+    Node head(const Edge& e) const 
+      { return GraphWrapperSkeleton<GraphWrapper>::tail(e); }
+    Node tail(const Edge& e) const 
+      { return GraphWrapperSkeleton<GraphWrapper>::head(e); }
     
     RevGraphWrapper(GraphWrapper _gw) : 
       GraphWrapperSkeleton<GraphWrapper>(_gw) { }  



More information about the Lemon-commits mailing list