Mercurial > hg > octave-nkf
comparison liboctave/idx-vector.h @ 4461:af308ca1a354
[project @ 2003-07-11 22:21:17 by jwe]
author | jwe |
---|---|
date | Fri, 11 Jul 2003 22:21:18 +0000 |
parents | 5719210fff4c |
children | f6a61399bc5c |
comparison
equal
deleted
inserted
replaced
4460:cef48c4b902d | 4461:af308ca1a354 |
---|---|
109 | 109 |
110 // other stuff | 110 // other stuff |
111 | 111 |
112 void shorten (int n); // Unsafe. Avoid at all cost. | 112 void shorten (int n); // Unsafe. Avoid at all cost. |
113 | 113 |
114 int freeze (int z_len, const char *tag, int resize_ok); | 114 int freeze (int z_len, const char *tag, bool resize_ok, bool warn_resize); |
115 | 115 |
116 // i/o | 116 // i/o |
117 | 117 |
118 std::ostream& print (std::ostream& os) const; | 118 std::ostream& print (std::ostream& os) const; |
119 | 119 |
255 // Unsafe. Avoid at all cost. | 255 // Unsafe. Avoid at all cost. |
256 void shorten (int n) { rep->shorten (n); } | 256 void shorten (int n) { rep->shorten (n); } |
257 | 257 |
258 // i/o | 258 // i/o |
259 | 259 |
260 int freeze (int z_len, const char *tag, int resize_ok = 0) | 260 int freeze (int z_len, const char *tag, bool resize_ok = false, |
261 { return rep->freeze (z_len, tag, resize_ok); } | 261 bool warn_resize = false) |
262 { return rep->freeze (z_len, tag, resize_ok, warn_resize); } | |
262 | 263 |
263 std::ostream& print (std::ostream& os) const { return rep->print (os); } | 264 std::ostream& print (std::ostream& os) const { return rep->print (os); } |
264 | 265 |
265 friend std::ostream& operator << (std::ostream& os, const idx_vector& a) | 266 friend std::ostream& operator << (std::ostream& os, const idx_vector& a) |
266 { return a.print (os); } | 267 { return a.print (os); } |