comparison liboctave/Array3.h @ 4645:bd2067547b40

[project @ 2003-11-23 08:07:52 by jwe]
author jwe
date Sun, 23 Nov 2003 08:07:53 +0000
parents 508238e65af7
children e35b034d3523
comparison
equal deleted inserted replaced
4644:3b74f1a86750 4645:bd2067547b40
67 ~Array3 (void) { } 67 ~Array3 (void) { }
68 68
69 Array3<T>& operator = (const Array3<T>& a) 69 Array3<T>& operator = (const Array3<T>& a)
70 { 70 {
71 if (this != &a) 71 if (this != &a)
72 { 72 Array<T>::operator = (a);
73 Array<T>::operator = (a);
74
75 dimensions = a.dimensions;
76 }
77 73
78 return *this; 74 return *this;
79 } 75 }
80 76
81 void resize (int r, int c, int p) { resize_no_fill (r, c, p); } 77 void resize (int r, int c, int p) { this->resize_no_fill (r, c, p); }
82 78
83 void resize (int r, int c, int p, const T& val) 79 void resize (int r, int c, int p, const T& val)
84 { resize_and_fill (r, c, p, val); } 80 { this->resize_and_fill (r, c, p, val); }
85 }; 81 };
86 82
87 #endif 83 #endif
88 84
89 /* 85 /*