LRDE Tiger Compiler
1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
Main Page
Namespaces
Classes
Files
File List
File Members
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
:
24
typedef
map<T, T>
super_type
;
25
26
// Import overloaded virtual functions.
27
using
super_type::operator[];
28
using
super_type::operator();
29
30
enum
strictness_type
31
{
33
nonstrict
,
35
strict
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
:
62
strictness_type
strictness_
;
63
};
64
65
}
66
67
#include <
misc/endomap.hxx
>
68
69
#endif // !MISC_ENDOMAP_HH
misc
endomap.hh
Generated on Wed Mar 5 2014 15:47:36 for LRDE Tiger Compiler by
1.8.1.2