toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] TooN vbase.hh vclasses.hh


From: Gerhard Reitmayr
Subject: [Toon-members] TooN vbase.hh vclasses.hh
Date: Fri, 08 Sep 2006 09:23:46 +0000

CVSROOT:        /cvsroot/toon
Module name:    TooN
Changes by:     Gerhard Reitmayr <gerhard>      06/09/08 09:23:46

Modified files:
        .              : vbase.hh vclasses.hh 

Log message:
        older change: moved assignment from VectorCreater up in the inheritance 
chain to make it more useable (for example rows from matrices etc.)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/vbase.hh?cvsroot=toon&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/TooN/vclasses.hh?cvsroot=toon&r1=1.22&r2=1.23

Patches:
Index: vbase.hh
===================================================================
RCS file: /cvsroot/toon/TooN/vbase.hh,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- vbase.hh    17 Jul 2006 14:15:50 -0000      1.12
+++ vbase.hh    8 Sep 2006 09:23:46 -0000       1.13
@@ -102,10 +102,11 @@
     return VectorMagic::VectorFiller<N,Size, FixedVector<Size,Accessor>, 
VectorMagic::InsertionStyle>(*this);
   }
 
-
-
-
-
+  template<class A, int I> FixedVector<Size, Accessor>& operator=(const 
VectorMagic::VectorCreator<A,I>& v)
+  {
+    v.assign(*this);
+    return *this;
+  }
 
 };
 
@@ -126,6 +127,13 @@
     VectorCopy<Accessor,Accessor>::eval(*this,from);
     return *this;
   }
+
+  template<class A, int I> DynamicVector<Accessor> & operator=(const 
VectorMagic::VectorCreator<A,I>& v)
+  {
+    v.assign(*this);
+    return *this;
+  }
+
 };
 
 

Index: vclasses.hh
===================================================================
RCS file: /cvsroot/toon/TooN/vclasses.hh,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -b -r1.22 -r1.23
--- vclasses.hh 17 Jul 2006 14:15:50 -0000      1.22
+++ vclasses.hh 8 Sep 2006 09:23:46 -0000       1.23
@@ -85,12 +85,6 @@
     return VectorMagic::VectorFiller<N,Size, 
Vector<Size>,VectorMagic::CommaStyle>(*this);
   }
        
-  template<class A, int I> Vector<Size>& operator=(const 
VectorMagic::VectorCreator<A,I>& v)
-  {
-    *this = (Vector<Size>)v;
-    return *this;
-  }
-
 };
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]