3353
|
1 /* |
|
2 |
|
3 Copyright (C) 1999 John W. Eaton |
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
5307
|
19 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
|
20 02110-1301, USA. |
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 |
3353
|
55 void accept (tree_walker& tw); |
|
56 |
|
57 private: |
|
58 |
|
59 // No copying! |
|
60 |
|
61 tree_cell (const tree_cell&); |
|
62 |
|
63 tree_cell& operator = (const tree_cell&); |
|
64 }; |
|
65 |
|
66 #endif |
|
67 |
|
68 /* |
|
69 ;;; Local Variables: *** |
|
70 ;;; mode: C++ *** |
|
71 ;;; End: *** |
|
72 */ |