comparison src/pt-exp.h @ 8913:35cd375d4bb3

make tree::dup functions const
author John W. Eaton <jwe@octave.org>
date Thu, 05 Mar 2009 13:50:25 -0500
parents 73c4516fae10
children eb63fbe60fab
comparison
equal deleted inserted replaced
8912:57c3155754d6 8913:35cd375d4bb3
46 virtual ~tree_expression (void) { } 46 virtual ~tree_expression (void) { }
47 47
48 virtual bool has_magic_end (void) const = 0; 48 virtual bool has_magic_end (void) const = 0;
49 49
50 virtual tree_expression *dup (symbol_table::scope_id, 50 virtual tree_expression *dup (symbol_table::scope_id,
51 symbol_table::context_id context) = 0; 51 symbol_table::context_id context) const = 0;
52 52
53 virtual bool is_constant (void) const { return false; } 53 virtual bool is_constant (void) const { return false; }
54 54
55 virtual bool is_matrix_constant (void) const { return false; } 55 virtual bool is_matrix_constant (void) const { return false; }
56 56
108 { 108 {
109 print_flag = print; 109 print_flag = print;
110 return this; 110 return this;
111 } 111 }
112 112
113 virtual void copy_base (tree_expression& e) 113 virtual void copy_base (const tree_expression& e)
114 { 114 {
115 num_parens = e.num_parens; 115 num_parens = e.num_parens;
116 postfix_indexed = e.postfix_indexed; 116 postfix_indexed = e.postfix_indexed;
117 print_flag = e.print_flag; 117 print_flag = e.print_flag;
118 } 118 }