[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Toon-members] TooN/internal vector.hh
From: |
Edward Rosten |
Subject: |
[Toon-members] TooN/internal vector.hh |
Date: |
Mon, 01 Feb 2010 19:34:08 +0000 |
CVSROOT: /cvsroot/toon
Module name: TooN
Changes by: Edward Rosten <edrosten> 10/02/01 19:34:08
Modified files:
internal : vector.hh
Log message:
Complete addition of extra parameterization
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/TooN/internal/vector.hh?cvsroot=toon&r1=1.54&r2=1.55
Patches:
Index: vector.hh
===================================================================
RCS file: /cvsroot/toon/TooN/internal/vector.hh,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- vector.hh 18 Jan 2010 15:32:13 -0000 1.54
+++ vector.hh 1 Feb 2010 19:34:08 -0000 1.55
@@ -128,6 +128,7 @@
struct Vector : public Base::template VLayout<Size, Precision> {
protected:
public:
+ typedef typename Base::template VLayout<Size, Precision>::PointerType
PointerType;
// sneaky hack: only one of these constructors will work with any given base
// class but they don't generate errors unless the user tries to use one of
them
// although the error message may be less than helpful - maybe this can be
changed?
@@ -153,7 +154,7 @@
/// double[] d = {1,2,3};
/// Vector<3,double,Reference> v(d);
/// @endcode
- explicit inline Vector(Precision* data) : Base::template VLayout<Size,
Precision> (data) {}
+ explicit inline Vector(PointerType data) : Base::template VLayout<Size,
Precision> (data) {}
/// Constructor used when constructing a dynamic vector which references
@@ -162,10 +163,10 @@
/// double[] d = {1,2,3};
/// Vector<Dynamic,double,Reference> v(d,3);
/// @endcode
- inline Vector(Precision* data, int size_in) : Base::template
VLayout<Size, Precision> (data, size_in) {}
+ inline Vector(PointerType data, int size_in) : Base::template
VLayout<Size, Precision> (data, size_in) {}
/// internal constructor
- inline Vector(Precision* data_in, int size_in, int stride_in,
Internal::Slicing)
+ inline Vector(PointerType data_in, int size_in, int stride_in,
Internal::Slicing)
: Base::template VLayout<Size, Precision>(data_in, size_in, stride_in) {}
using Base::template VLayout<Size, Precision>::size;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Toon-members] TooN/internal vector.hh,
Edward Rosten <=