comparison src/pt-const.h @ 2124:97a566037a75

[project @ 1996-05-12 07:16:36 by jwe]
author jwe
date Sun, 12 May 1996 07:16:36 +0000
parents 4dcc8b77e84a
children 45052dc60643
comparison
equal deleted inserted replaced
2123:ee55d81f585a 2124:97a566037a75
39 39
40 #include "pt-fvc.h" 40 #include "pt-fvc.h"
41 41
42 class Octave_map; 42 class Octave_map;
43 class octave_value_list; 43 class octave_value_list;
44
45 class tree_walker;
44 46
45 // Constants. 47 // Constants.
46 48
47 class 49 class
48 octave_value : public tree_fvc 50 octave_value : public tree_fvc
237 void resize (int i, int j); 239 void resize (int i, int j);
238 void resize (int i, int j, double val); 240 void resize (int i, int j, double val);
239 241
240 void stash_original_text (const string& s); 242 void stash_original_text (const string& s);
241 243
244 string original_text (void) { return orig_text; }
245
242 void maybe_mutate (void); 246 void maybe_mutate (void);
243 247
244 void print (void); 248 void print (void);
245 void print (ostream& os); 249 void print (ostream& os);
246
247 void print_code (ostream& os);
248 250
249 void gripe_wrong_type_arg (const char *name, 251 void gripe_wrong_type_arg (const char *name,
250 const octave_value_rep& tcr) const; 252 const octave_value_rep& tcr) const;
251 253
252 char *type_as_string (void) const; 254 char *type_as_string (void) const;
491 bool is_unknown (void) const { return rep->is_unknown (); } 493 bool is_unknown (void) const { return rep->is_unknown (); }
492 bool is_real_scalar (void) const { return rep->is_real_scalar (); } 494 bool is_real_scalar (void) const { return rep->is_real_scalar (); }
493 bool is_real_matrix (void) const { return rep->is_real_matrix (); } 495 bool is_real_matrix (void) const { return rep->is_real_matrix (); }
494 bool is_complex_scalar (void) const { return rep->is_complex_scalar (); } 496 bool is_complex_scalar (void) const { return rep->is_complex_scalar (); }
495 bool is_complex_matrix (void) const { return rep->is_complex_matrix (); } 497 bool is_complex_matrix (void) const { return rep->is_complex_matrix (); }
498 bool is_char_matrix (void) const { return rep->is_char_matrix (); }
496 bool is_string (void) const { return rep->is_string (); } 499 bool is_string (void) const { return rep->is_string (); }
497 bool is_range (void) const { return rep->is_range (); } 500 bool is_range (void) const { return rep->is_range (); }
498 bool is_map (void) const { return rep->is_map (); } 501 bool is_map (void) const { return rep->is_map (); }
499 bool is_magic_colon (void) const { return rep->is_magic_colon (); } 502 bool is_magic_colon (void) const { return rep->is_magic_colon (); }
500 bool is_all_va_args (void) const { return rep->is_all_va_args (); } 503 bool is_all_va_args (void) const { return rep->is_all_va_args (); }
643 // pretty printing. 646 // pretty printing.
644 647
645 void stash_original_text (const string& s) 648 void stash_original_text (const string& s)
646 { rep->stash_original_text (s); } 649 { rep->stash_original_text (s); }
647 650
648 // Pretty print this constant. 651 string original_text (void) { return rep->original_text (); }
649 652
650 void print_code (ostream& os); 653 void accept (tree_walker& tw);
651 654
652 char *type_as_string (void) const 655 char *type_as_string (void) const
653 { return rep->type_as_string (); } 656 { return rep->type_as_string (); }
654 657
655 // We really do need this, and it should be private: 658 // We really do need this, and it should be private: