746
|
1 // oct-map.h -*- C -*- |
|
2 /* |
|
3 |
1009
|
4 Copyright (C) 1994, 1995 John W. Eaton |
746
|
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 |
1315
|
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
746
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_oct_map_h) |
|
25 #define octave_oct_map_h 1 |
|
26 |
1297
|
27 #if defined (__GNUG__) |
|
28 #pragma interface |
|
29 #endif |
|
30 |
746
|
31 #include "Map.h" |
|
32 |
|
33 #include "tree-const.h" |
|
34 |
|
35 class |
|
36 Octave_map : public CHMap<tree_constant> |
|
37 { |
|
38 public: |
|
39 Octave_map (void) : CHMap<tree_constant> (tree_constant ()) { } |
|
40 |
|
41 Octave_map (const char *key, const tree_constant& value) |
|
42 : CHMap<tree_constant> (tree_constant ()) |
|
43 { |
|
44 CHMap<tree_constant>::operator [] (key) = value; |
|
45 } |
|
46 |
|
47 Octave_map (const Octave_map& m) : CHMap<tree_constant> (m) { } |
|
48 |
|
49 ~Octave_map (void) { } |
1279
|
50 |
|
51 char **make_name_list (void); |
746
|
52 }; |
|
53 |
|
54 #endif |
|
55 |
|
56 /* |
|
57 ;;; Local Variables: *** |
|
58 ;;; mode: C++ *** |
|
59 ;;; page-delimiter: "^/\\*" *** |
|
60 ;;; End: *** |
|
61 */ |