3353
|
1 /* |
|
2 |
7017
|
3 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 |
|
4 John W. Eaton |
3353
|
5 |
|
6 This file is part of Octave. |
|
7 |
|
8 Octave is free software; you can redistribute it and/or modify it |
|
9 under the terms of the GNU General Public License as published by the |
7016
|
10 Free Software Foundation; either version 3 of the License, or (at your |
|
11 option) any later version. |
3353
|
12 |
|
13 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
16 for more details. |
|
17 |
|
18 You should have received a copy of the GNU General Public License |
7016
|
19 along with Octave; see the file COPYING. If not, see |
|
20 <http://www.gnu.org/licenses/>. |
3353
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_tree_cell_h) |
|
25 #define octave_tree_cell_h 1 |
|
26 |
3503
|
27 #include <iostream> |
3353
|
28 |
|
29 class octave_value; |
|
30 class octave_value_list; |
|
31 class tree_argument_list; |
|
32 |
|
33 class tree_walker; |
|
34 |
|
35 #include "pt-mat.h" |
|
36 |
|
37 // General cells. |
|
38 |
|
39 class |
|
40 tree_cell : public tree_matrix |
|
41 { |
|
42 public: |
|
43 |
4587
|
44 tree_cell (tree_argument_list *row = 0, int l = -1, int c = -1) |
|
45 : tree_matrix (row, l, c) { } |
3353
|
46 |
|
47 ~tree_cell (void) { } |
|
48 |
3933
|
49 bool rvalue_ok (void) const { return true; } |
3353
|
50 |
|
51 octave_value rvalue (void); |
|
52 |
3556
|
53 octave_value_list rvalue (int); |
|
54 |
5861
|
55 tree_expression *dup (symbol_table *sym_tab); |
|
56 |
3353
|
57 void accept (tree_walker& tw); |
|
58 |
|
59 private: |
|
60 |
|
61 // No copying! |
|
62 |
|
63 tree_cell (const tree_cell&); |
|
64 |
|
65 tree_cell& operator = (const tree_cell&); |
|
66 }; |
|
67 |
|
68 #endif |
|
69 |
|
70 /* |
|
71 ;;; Local Variables: *** |
|
72 ;;; mode: C++ *** |
|
73 ;;; End: *** |
|
74 */ |