1742
|
1 // pt-fvc-base.h -*- C++ -*- |
1739
|
2 /* |
|
3 |
1827
|
4 Copyright (C) 1996 John W. Eaton |
1739
|
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 |
|
10 Free Software Foundation; either version 2, or (at your option) any |
|
11 later version. |
|
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 |
|
19 along with Octave; see the file COPYING. If not, write to the Free |
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_tree_fvc_h) |
|
25 #define octave_tree_fvc_h 1 |
|
26 |
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
|
31 #include <ctime> |
|
32 |
|
33 class ostream; |
|
34 |
1755
|
35 #include <string> |
|
36 |
1739
|
37 #include <SLList.h> |
|
38 |
|
39 class tree_constant; |
|
40 class Octave_object; |
|
41 |
|
42 #include "pt-mvr-base.h" |
|
43 |
|
44 // A base class for objects that can be evaluated with argument lists. |
|
45 |
|
46 class |
|
47 tree_fvc : public tree_multi_val_ret |
|
48 { |
|
49 public: |
|
50 tree_fvc (int l = -1, int c = -1) : tree_multi_val_ret (l, c) { } |
|
51 |
|
52 ~tree_fvc (void) { } |
|
53 |
|
54 virtual tree_constant assign (tree_constant& t, |
|
55 const Octave_object& args); |
|
56 |
1755
|
57 virtual string name (void) const; |
1739
|
58 |
|
59 virtual void bump_value (tree_expression::type); |
|
60 |
1755
|
61 virtual tree_constant lookup_map_element (SLList<string>& list, |
1827
|
62 bool insert = false, |
|
63 bool silent = false); |
1739
|
64 |
1755
|
65 virtual string fcn_file_name (void) |
|
66 { return string (); } |
1739
|
67 |
|
68 virtual time_t time_parsed (void); |
|
69 |
1827
|
70 virtual bool is_system_fcn_file (void) const |
|
71 { return false; } |
1739
|
72 |
1827
|
73 virtual int save (ostream& /* os */, bool /* mark_as_global */ = false, |
1739
|
74 int /* precision */ = 17); |
|
75 }; |
|
76 |
|
77 #endif |
|
78 |
|
79 /* |
|
80 ;;; Local Variables: *** |
|
81 ;;; mode: C++ *** |
|
82 ;;; page-delimiter: "^/\\*" *** |
|
83 ;;; End: *** |
|
84 */ |