LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
endomap.hh
Go to the documentation of this file.
1 
6 #ifndef MISC_ENDOMAP_HH
7 # define MISC_ENDOMAP_HH
8 
9 # include <list>
10 # include <map>
11 # include <misc/map.hh>
12 
13 namespace misc
14 {
19  template <class T>
20  class endo_map : public map<T, T>
21  {
22  public:
25 
26  // Import overloaded virtual functions.
27  using super_type::operator[];
28  using super_type::operator();
29 
31  {
36  };
37 
40  endo_map();
41  virtual ~endo_map();
43 
45  virtual endo_map* clone() const;
46 
54  virtual T& operator[](const T& t);
55 
57  virtual T operator()(const T& t) const override;
58 
59 
60  protected:
63  };
64 
65 }
66 
67 #include <misc/endomap.hxx>
68 
69 #endif // !MISC_ENDOMAP_HH