1739
|
1 /* |
|
2 |
1827
|
3 Copyright (C) 1996 John W. Eaton |
1739
|
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_mvr_h) |
|
24 #define octave_tree_mvr_h 1 |
|
25 |
|
26 #if defined (__GNUG__) |
|
27 #pragma interface |
|
28 #endif |
|
29 |
2086
|
30 class octave_value; |
|
31 class octave_value_list; |
1739
|
32 |
|
33 #include "pt-exp-base.h" |
|
34 |
|
35 // A base class for objects that can be return multiple values |
|
36 |
|
37 class |
|
38 tree_multi_val_ret : public tree_expression |
|
39 { |
|
40 public: |
|
41 tree_multi_val_ret (int l = -1, int c = -1) : tree_expression (l, c) { } |
|
42 |
|
43 tree_multi_val_ret (int l = -1, int c = -1, tree_expression::type et) |
|
44 : tree_expression (l, c, et) { } |
|
45 |
|
46 ~tree_multi_val_ret (void) { } |
|
47 |
1827
|
48 bool is_multi_val_ret_expression (void) const |
|
49 { return true; } |
1739
|
50 |
2086
|
51 octave_value eval (bool print); |
1739
|
52 |
2086
|
53 virtual octave_value_list eval (bool print, int nargout, |
|
54 const octave_value_list& args) = 0; |
1739
|
55 }; |
|
56 |
|
57 #endif |
|
58 |
|
59 /* |
|
60 ;;; Local Variables: *** |
|
61 ;;; mode: C++ *** |
|
62 ;;; End: *** |
|
63 */ |