comparison liboctave/oct-sort.h @ 12122:f4689107dd8c

Explicitly disallow copying in some classes.
author Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
date Sat, 22 Jan 2011 02:21:52 -0500
parents 12df7854fa7c
children 72c96de7a403
comparison
equal deleted inserted replaced
11598:62b7ea59a6ff 12122:f4689107dd8c
216 // 216 //
217 // so we could cut the storage for this, but it's a minor amount, 217 // so we could cut the storage for this, but it's a minor amount,
218 // and keeping all the info explicit simplifies the code. 218 // and keeping all the info explicit simplifies the code.
219 octave_idx_type n; 219 octave_idx_type n;
220 struct s_slice pending[MAX_MERGE_PENDING]; 220 struct s_slice pending[MAX_MERGE_PENDING];
221
222 // No copying!
223
224 MergeState (const MergeState&);
225
226 MergeState& operator = (const MergeState&);
221 }; 227 };
222 228
223 compare_fcn_type compare; 229 compare_fcn_type compare;
224 230
225 MergeState *ms; 231 MergeState *ms;
320 326
321 template <class Comp> 327 template <class Comp>
322 void nth_element (T *data, octave_idx_type nel, 328 void nth_element (T *data, octave_idx_type nel,
323 octave_idx_type lo, octave_idx_type up, 329 octave_idx_type lo, octave_idx_type up,
324 Comp comp); 330 Comp comp);
331
332 // No copying!
333
334 octave_sort (const octave_sort&);
335
336 octave_sort& operator = (const octave_sort&);
325 }; 337 };
326 338
327 template <class T> 339 template <class T>
328 class 340 class
329 vec_index 341 vec_index