Mercurial > hg > octave-lyh
comparison src/pt-const.h @ 2447:e46137c06781
[project @ 1996-10-30 19:39:03 by jwe]
author | jwe |
---|---|
date | Wed, 30 Oct 1996 19:39:06 +0000 |
parents | 8426659cd60e |
children | 1573640a9994 |
comparison
equal
deleted
inserted
replaced
2446:b241766f293a | 2447:e46137c06781 |
---|---|
181 { | 181 { |
182 val.assign (idx, rhs); | 182 val.assign (idx, rhs); |
183 return val; | 183 return val; |
184 } | 184 } |
185 | 185 |
186 #if 0 | |
187 // Simple structure assignment. | |
188 | |
189 octave_value assign_map_element (SLList<string>& list, | |
190 const octave_value& rhs); | |
191 | |
192 // Indexed structure assignment. | |
193 | |
194 octave_value assign_map_element (SLList<string>& list, | |
195 const octave_value_list& args, | |
196 const octave_value& rhs); | |
197 #endif | |
198 | |
199 // Type. It would be nice to eliminate the need for this. | 186 // Type. It would be nice to eliminate the need for this. |
200 | 187 |
201 bool is_constant (void) const { return true; } | 188 bool is_constant (void) const { return true; } |
202 | 189 |
203 // Size. | 190 // Size. |
361 | 348 |
362 octave_value val; | 349 octave_value val; |
363 | 350 |
364 string orig_text; | 351 string orig_text; |
365 | 352 |
366 #if 0 | |
367 octave_value_rep *make_unique_map (void); | |
368 | |
369 // We want to eliminate this, or at least make it private. | |
370 | |
371 octave_value_rep::constant_type const_type (void) const | |
372 { return rep->const_type (); } | |
373 #endif | |
374 | |
375 void convert_to_matrix_type (bool make_complex) | 353 void convert_to_matrix_type (bool make_complex) |
376 { val.convert_to_matrix_type (make_complex); } | 354 { val.convert_to_matrix_type (make_complex); } |
377 | 355 |
378 // Can we make these go away? | 356 // Can we make these go away? |
379 | 357 |
381 | 359 |
382 void force_numeric (bool frc_str_conv = false) | 360 void force_numeric (bool frc_str_conv = false) |
383 { val.force_numeric (frc_str_conv); } | 361 { val.force_numeric (frc_str_conv); } |
384 | 362 |
385 octave_value make_numeric (bool frc_str_conv = false) const; | 363 octave_value make_numeric (bool frc_str_conv = false) const; |
386 #if 0 | |
387 { | |
388 if (is_numeric_type ()) | |
389 return *this; | |
390 else | |
391 return rep->make_numeric (frc_str_conv); | |
392 } | |
393 #endif | |
394 | 364 |
395 bool print_as_scalar (void) { return val.print_as_scalar (); } | 365 bool print_as_scalar (void) { return val.print_as_scalar (); } |
396 | 366 |
397 bool print_as_structure (void) { return val.print_as_structure (); } | 367 bool print_as_structure (void) { return val.print_as_structure (); } |
398 }; | 368 }; |