comparison src/pt-select.h @ 2988:daa1ed1f5462

[project @ 1997-05-16 07:23:15 by jwe]
author jwe
date Fri, 16 May 1997 07:23:17 +0000
parents 20f5cec4f11c
children 0689afb1d001
comparison
equal deleted inserted replaced
2987:ae20b3f37f5e 2988:daa1ed1f5462
70 // The condition to test. 70 // The condition to test.
71 tree_expression *expr; 71 tree_expression *expr;
72 72
73 // The list of statements to evaluate if expr is true. 73 // The list of statements to evaluate if expr is true.
74 tree_statement_list *list; 74 tree_statement_list *list;
75
76 // No copying!
77
78 tree_if_clause (const tree_if_clause&);
79
80 tree_if_clause& operator = (const tree_if_clause&);
75 }; 81 };
76 82
77 class 83 class
78 tree_if_command_list : public SLList<tree_if_clause *> 84 tree_if_command_list : public SLList<tree_if_clause *>
79 { 85 {
95 } 101 }
96 102
97 void eval (void); 103 void eval (void);
98 104
99 void accept (tree_walker& tw); 105 void accept (tree_walker& tw);
106
107 private:
108
109 // No copying!
110
111 tree_if_command_list (const tree_if_command_list&);
112
113 tree_if_command_list& operator = (const tree_if_command_list&);
100 }; 114 };
101 115
102 class 116 class
103 tree_if_command : public tree_command 117 tree_if_command : public tree_command
104 { 118 {
120 134
121 private: 135 private:
122 136
123 // List of if commands (if, elseif, elseif, ... else, endif) 137 // List of if commands (if, elseif, elseif, ... else, endif)
124 tree_if_command_list *list; 138 tree_if_command_list *list;
139
140 // No copying!
141
142 tree_if_command (const tree_if_command&);
143
144 tree_if_command& operator = (const tree_if_command&);
125 }; 145 };
126 146
127 // Switch. 147 // Switch.
128 148
129 class 149 class
162 // The case label. 182 // The case label.
163 tree_expression *label; 183 tree_expression *label;
164 184
165 // The list of statements to evaluate if the label matches. 185 // The list of statements to evaluate if the label matches.
166 tree_statement_list *list; 186 tree_statement_list *list;
187
188 // No copying!
189
190 tree_switch_case (const tree_switch_case&);
191
192 tree_switch_case& operator = (const tree_switch_case&);
167 }; 193 };
168 194
169 class 195 class
170 tree_switch_case_list : public SLList<tree_switch_case *> 196 tree_switch_case_list : public SLList<tree_switch_case *>
171 { 197 {
187 } 213 }
188 214
189 void eval (const octave_value& val); 215 void eval (const octave_value& val);
190 216
191 void accept (tree_walker& tw); 217 void accept (tree_walker& tw);
218
219 private:
220
221 // No copying!
222
223 tree_switch_case_list (const tree_switch_case_list&);
224
225 tree_switch_case_list& operator = (const tree_switch_case_list&);
192 }; 226 };
193 227
194 class 228 class
195 tree_switch_command : public tree_command 229 tree_switch_command : public tree_command
196 { 230 {
220 // Value on which to switch. 254 // Value on which to switch.
221 tree_expression *expr; 255 tree_expression *expr;
222 256
223 // List of cases (case 1, case 2, ..., default) 257 // List of cases (case 1, case 2, ..., default)
224 tree_switch_case_list *list; 258 tree_switch_case_list *list;
259
260 // No copying!
261
262 tree_switch_command (const tree_switch_command&);
263
264 tree_switch_command& operator = (const tree_switch_command&);
225 }; 265 };
226 266
227 #endif 267 #endif
228 268
229 /* 269 /*