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_fvc_h) |
|
24 #define octave_tree_fvc_h 1 |
|
25 |
|
26 #if defined (__GNUG__) |
|
27 #pragma interface |
|
28 #endif |
|
29 |
|
30 #include <ctime> |
|
31 |
|
32 class ostream; |
|
33 |
1755
|
34 #include <string> |
|
35 |
1739
|
36 #include <SLList.h> |
|
37 |
2086
|
38 class octave_value; |
|
39 class octave_value_list; |
1739
|
40 |
|
41 #include "pt-mvr-base.h" |
|
42 |
|
43 // A base class for objects that can be evaluated with argument lists. |
|
44 |
|
45 class |
|
46 tree_fvc : public tree_multi_val_ret |
|
47 { |
|
48 public: |
|
49 tree_fvc (int l = -1, int c = -1) : tree_multi_val_ret (l, c) { } |
|
50 |
|
51 ~tree_fvc (void) { } |
|
52 |
2086
|
53 virtual octave_value assign (octave_value& t, |
|
54 const octave_value_list& args); |
1739
|
55 |
1755
|
56 virtual string name (void) const; |
1739
|
57 |
|
58 virtual void bump_value (tree_expression::type); |
|
59 |
2086
|
60 virtual octave_value lookup_map_element (SLList<string>& list, |
1827
|
61 bool insert = false, |
|
62 bool silent = false); |
1739
|
63 |
1755
|
64 virtual string fcn_file_name (void) |
|
65 { return string (); } |
1739
|
66 |
|
67 virtual time_t time_parsed (void); |
|
68 |
1827
|
69 virtual bool is_system_fcn_file (void) const |
|
70 { return false; } |
1739
|
71 |
1827
|
72 virtual int save (ostream& /* os */, bool /* mark_as_global */ = false, |
1739
|
73 int /* precision */ = 17); |
|
74 }; |
|
75 |
|
76 #endif |
|
77 |
|
78 /* |
|
79 ;;; Local Variables: *** |
|
80 ;;; mode: C++ *** |
|
81 ;;; End: *** |
|
82 */ |