2982
|
1 /* |
|
2 |
|
3 Copyright (C) 1996, 1997 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 |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
|
23 #if !defined (octave_tree_arg_list_h) |
|
24 #define octave_tree_arg_list_h 1 |
|
25 |
4066
|
26 #if defined (__GNUG__) && ! defined (NO_PRAGMA_INTERFACE_IMPLEMENTATION) |
2982
|
27 #pragma interface |
|
28 #endif |
|
29 |
|
30 #include <SLList.h> |
|
31 |
|
32 class octave_value_list; |
|
33 |
|
34 class tree_expression; |
|
35 |
|
36 class tree_walker; |
|
37 |
|
38 #include "str-vec.h" |
|
39 |
|
40 // Argument lists. Used to hold the list of expressions that are the |
|
41 // arguments in a function call or index expression. |
|
42 |
|
43 class |
|
44 tree_argument_list : public SLList<tree_expression *> |
|
45 { |
|
46 public: |
|
47 |
|
48 tree_argument_list (void) |
|
49 : SLList<tree_expression *> () { } |
|
50 |
|
51 tree_argument_list (tree_expression *t) |
|
52 : SLList<tree_expression *> () { append (t); } |
|
53 |
|
54 ~tree_argument_list (void); |
|
55 |
3977
|
56 int nargout_count (void) const; |
|
57 |
2982
|
58 bool all_elements_are_constant (void) const; |
|
59 |
|
60 octave_value_list convert_to_const_vector (void); |
|
61 |
|
62 string_vector get_arg_names (void) const; |
|
63 |
|
64 void accept (tree_walker& tw); |
2988
|
65 |
|
66 private: |
|
67 |
|
68 // No copying! |
|
69 |
|
70 tree_argument_list (const tree_argument_list&); |
|
71 |
|
72 tree_argument_list& operator = (const tree_argument_list&); |
2982
|
73 }; |
|
74 |
|
75 #endif |
|
76 |
|
77 /* |
|
78 ;;; Local Variables: *** |
|
79 ;;; mode: C++ *** |
|
80 ;;; End: *** |
|
81 */ |