Mercurial > hg > octave-nkf
annotate src/pt-cell.h @ 7767:71f068b22fcc
scope and context fixes for function handles
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 07 May 2008 13:45:30 -0400 |
parents | 745a8299c2b5 |
children | 73c4516fae10 |
rev | line source |
---|---|
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" | |
7336 | 36 #include "symtab.h" |
3353 | 37 |
38 // General cells. | |
39 | |
40 class | |
41 tree_cell : public tree_matrix | |
42 { | |
43 public: | |
44 | |
4587 | 45 tree_cell (tree_argument_list *row = 0, int l = -1, int c = -1) |
46 : tree_matrix (row, l, c) { } | |
3353 | 47 |
48 ~tree_cell (void) { } | |
49 | |
3933 | 50 bool rvalue_ok (void) const { return true; } |
3353 | 51 |
52 octave_value rvalue (void); | |
53 | |
3556 | 54 octave_value_list rvalue (int); |
55 | |
7767
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
56 tree_expression *dup (symbol_table::scope_id scope, |
71f068b22fcc
scope and context fixes for function handles
John W. Eaton <jwe@octave.org>
parents:
7336
diff
changeset
|
57 symbol_table::context_id context); |
5861 | 58 |
3353 | 59 void accept (tree_walker& tw); |
60 | |
61 private: | |
62 | |
63 // No copying! | |
64 | |
65 tree_cell (const tree_cell&); | |
66 | |
67 tree_cell& operator = (const tree_cell&); | |
68 }; | |
69 | |
70 #endif | |
71 | |
72 /* | |
73 ;;; Local Variables: *** | |
74 ;;; mode: C++ *** | |
75 ;;; End: *** | |
76 */ |