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 |
|
20 Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. |
|
21 |
|
22 */ |
|
23 |
|
24 #if !defined (octave_oct_map_h) |
|
25 #define octave_oct_map_h 1 |
|
26 |
|
27 #include "Map.h" |
|
28 |
|
29 #include "tree-const.h" |
|
30 |
|
31 class |
|
32 Octave_map : public CHMap<tree_constant> |
|
33 { |
|
34 public: |
|
35 Octave_map (void) : CHMap<tree_constant> (tree_constant ()) { } |
|
36 |
|
37 Octave_map (const char *key, const tree_constant& value) |
|
38 : CHMap<tree_constant> (tree_constant ()) |
|
39 { |
|
40 CHMap<tree_constant>::operator [] (key) = value; |
|
41 } |
|
42 |
|
43 Octave_map (const Octave_map& m) : CHMap<tree_constant> (m) { } |
|
44 |
|
45 ~Octave_map (void) { } |
1279
|
46 |
|
47 char **make_name_list (void); |
746
|
48 }; |
|
49 |
|
50 #endif |
|
51 |
|
52 /* |
|
53 ;;; Local Variables: *** |
|
54 ;;; mode: C++ *** |
|
55 ;;; page-delimiter: "^/\\*" *** |
|
56 ;;; End: *** |
|
57 */ |