comparison src/pt-const.h @ 1277:db4f4009d6e8

[project @ 1995-04-24 20:35:06 by jwe]
author jwe
date Mon, 24 Apr 1995 20:35:06 +0000
parents 68d147abe7ca
children c6f21b933f95
comparison
equal deleted inserted replaced
1276:cbdf7db98554 1277:db4f4009d6e8
253 int is_true (void) const { return rep->is_true (); } 253 int is_true (void) const { return rep->is_true (); }
254 254
255 // Is at least one of the dimensions of this constant zero? 255 // Is at least one of the dimensions of this constant zero?
256 256
257 int is_empty (void) const 257 int is_empty (void) const
258 { 258 { return rep->is_empty (); }
259 return ((! (is_magic_colon () || is_all_va_args () || is_unknown ()))
260 && (rows () == 0 || columns () == 0));
261 }
262 259
263 // Are the dimensions of this constant zero by zero? 260 // Are the dimensions of this constant zero by zero?
264 261
265 int is_zero_by_zero (void) const 262 int is_zero_by_zero (void) const
266 { 263 {
288 Range range_value (void) const 285 Range range_value (void) const
289 { return rep->range_value (); } 286 { return rep->range_value (); }
290 287
291 Octave_map map_value (void) const; 288 Octave_map map_value (void) const;
292 289
293 tree_constant lookup_map_element (SLList<char*>& list); 290 tree_constant lookup_map_element (const char *ref, int insert = 0,
291 int silent = 0);
292
293 tree_constant lookup_map_element (SLList<char*>& list,
294 int insert = 0, int silent = 0);
294 295
295 ColumnVector vector_value (int force_string_conversion = 0, 296 ColumnVector vector_value (int force_string_conversion = 0,
296 int force_vector_conversion = 0) const 297 int force_vector_conversion = 0) const
297 { return rep->vector_value (); } 298 { return rep->vector_value (); }
298 299