Mercurial > hg > octave-jordi
diff liboctave/oct-sort.h @ 4998:3f3d6eec0a2c
[project @ 2004-09-15 21:00:01 by jwe]
author | jwe |
---|---|
date | Wed, 15 Sep 2004 21:00:13 +0000 (2004-09-15) |
parents | 14027e0bafa4 |
children | 4c8a2e4e0717 |
line wrap: on
line diff
--- a/liboctave/oct-sort.h +++ b/liboctave/oct-sort.h @@ -109,16 +109,20 @@ class octave_sort { - public: +public: + octave_sort (void); octave_sort (bool (*comp) (T, T)); - ~octave_sort (void) { merge_freemem ( ); } + ~octave_sort (void) { merge_freemem (); } + + void set_compare (bool (*comp) (T, T)) { compare = comp; } void sort (T *v, int elements); - private: +private: + /* One MergeState exists on the stack per invocation of mergesort. It's just * a convenient way to pass state around among the helper functions. *