Mercurial > hg > octave-lyh
comparison liboctave/MArray.h @ 3585:d9803711e047
[project @ 2000-02-08 04:35:39 by jwe]
author | jwe |
---|---|
date | Tue, 08 Feb 2000 04:35:47 +0000 |
parents | 6ae6f1180e62 |
children | 1222153daafb |
comparison
equal
deleted
inserted
replaced
3584:aa31644d9779 | 3585:d9803711e047 |
---|---|
37 #include "MArray-defs.h" | 37 #include "MArray-defs.h" |
38 | 38 |
39 MARRAY_OPS_FORWARD_DECLS (MArray) | 39 MARRAY_OPS_FORWARD_DECLS (MArray) |
40 | 40 |
41 template <class T> | 41 template <class T> |
42 class MArray : public Array<T> | 42 class |
43 MArray : public Array<T> | |
43 { | 44 { |
44 protected: | 45 protected: |
45 | 46 |
46 MArray (T *d, int l) : Array<T> (d, l) { } | 47 MArray (T *d, int l) : Array<T> (d, l) { } |
47 | 48 |
48 public: | 49 public: |
49 | 50 |
50 MArray (void) : Array<T> () { } | 51 MArray (void) : Array<T> () { } |
51 MArray (int n) : Array<T> (n) { } | 52 |
53 explicit MArray (int n) : Array<T> (n) { } | |
54 | |
52 MArray (int n, const T& val) : Array<T> (n, val) { } | 55 MArray (int n, const T& val) : Array<T> (n, val) { } |
56 | |
57 MArray (const MArray<T>& a) : Array<T> (a) { } | |
58 | |
53 MArray (const Array<T>& a) : Array<T> (a) { } | 59 MArray (const Array<T>& a) : Array<T> (a) { } |
54 MArray (const MArray<T>& a) : Array<T> (a) { } | |
55 | 60 |
56 ~MArray (void) { } | 61 ~MArray (void) { } |
57 | 62 |
58 MArray<T>& operator = (const MArray<T>& a) | 63 MArray<T>& operator = (const MArray<T>& a) |
59 { | 64 { |