Changeset 1026
- Timestamp:
- Feb 1, 2008, 7:34:35 PM (16 years ago)
- Location:
- trunk/yat/utility
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/utility/VectorView.cc
r1015 r1026 142 142 143 143 144 const Vector Base& VectorView::assign(const VectorBase& other )144 const VectorView& VectorView::assign(const VectorBase& other ) 145 145 { 146 146 if (size()!=other.size()) … … 161 161 162 162 163 const Vector Base& VectorView::operator=(const VectorView& other )163 const VectorView& VectorView::operator=(const VectorView& other ) 164 164 { 165 165 return assign(other); … … 167 167 168 168 169 const Vector Base& VectorView::operator=(const VectorBase& other )169 const VectorView& VectorView::operator=(const VectorBase& other ) 170 170 { 171 171 return assign(other); … … 174 174 175 175 /* 176 const Vector Base& VectorView::operator=(proxy p)176 const VectorView& VectorView::operator=(proxy p) 177 177 { 178 178 if (size()!=p.vec_->size) -
trunk/yat/utility/VectorView.h
r1015 r1026 170 170 \throw GSL_error if dimensions mis-match. 171 171 */ 172 const Vector Base& operator=(const VectorBase&);173 const Vector Base& operator=(const VectorView&);172 const VectorView& operator=(const VectorBase&); 173 const VectorView& operator=(const VectorView&); 174 174 175 175 //const VectorBase& operator=(proxy); 176 176 177 177 private: 178 const Vector Base& assign(const VectorBase& other);178 const VectorView& assign(const VectorBase& other); 179 179 void delete_allocated_memory(void); 180 180 -
trunk/yat/utility/vector.cc
r1015 r1026 206 206 */ 207 207 208 const VectorBase& vector::operator=( const vector& other )208 const vector& vector::operator=( const vector& other ) 209 209 { 210 210 return assign(other); … … 218 218 */ 219 219 220 const VectorBase& vector::assign(const VectorBase& other)220 const vector& vector::assign(const VectorBase& other) 221 221 { 222 222 if (!other.size()) -
trunk/yat/utility/vector.h
r1015 r1026 167 167 */ 168 168 //const VectorBase& operator=(const VectorBase&); 169 const VectorBase& operator=(const vector&);169 const vector& operator=(const vector&); 170 170 171 171 private: 172 const VectorBase& assign(const VectorBase& other);172 const vector& assign(const VectorBase& other); 173 173 //const VectorBase& assign(VectorBase& other); 174 174
Note: See TracChangeset
for help on using the changeset viewer.