Lines 25-30
Link Here
|
25 |
|
25 |
|
26 |
// wrapper for map key, can access Sortedtore to get sortOrder() |
26 |
// wrapper for map key, can access Sortedtore to get sortOrder() |
27 |
|
27 |
|
|
|
28 |
// compare two keys |
29 |
template <class SortedStore> class MapKey; |
30 |
|
31 |
template <class SortedStore> |
32 |
bool operator<(const MapKey<SortedStore> &x, |
33 |
const MapKey<SortedStore> &y); |
34 |
template <class SortedStore> |
35 |
bool operator==(const MapKey<SortedStore> &x, |
36 |
const MapKey<SortedStore> &y); |
37 |
|
28 |
template <class SortedStore> class MapKey |
38 |
template <class SortedStore> class MapKey |
29 |
{ |
39 |
{ |
30 |
SortedStore &_myStore; // my store |
40 |
SortedStore &_myStore; // my store |
Lines 47-66
Link Here
|
47 |
|
57 |
|
48 |
friend |
58 |
friend |
49 |
bool operator< |
59 |
bool operator< |
50 |
#ifndef WIN32 |
60 |
<SortedStore> |
51 |
<> |
|
|
52 |
#endif |
53 |
(const MapKey<SortedStore> &x, |
61 |
(const MapKey<SortedStore> &x, |
54 |
const MapKey<SortedStore> &y); |
62 |
const MapKey<SortedStore> &y); |
55 |
friend |
63 |
friend |
56 |
bool operator== |
64 |
bool operator== |
57 |
#ifndef WIN32 |
65 |
<SortedStore> |
58 |
<> |
|
|
59 |
#endif |
60 |
(const MapKey<SortedStore> &x, |
66 |
(const MapKey<SortedStore> &x, |
61 |
const MapKey<SortedStore> &y); |
67 |
const MapKey<SortedStore> &y); |
62 |
}; |
68 |
}; |
63 |
|
69 |
/* |
64 |
// compare two keys |
70 |
// compare two keys |
65 |
template <class SortedStore> |
71 |
template <class SortedStore> |
66 |
extern bool operator<(const MapKey<SortedStore> &x, |
72 |
extern bool operator<(const MapKey<SortedStore> &x, |
Lines 68-74
Link Here
|
68 |
template <class SortedStore> |
74 |
template <class SortedStore> |
69 |
extern bool operator==(const MapKey<SortedStore> &x, |
75 |
extern bool operator==(const MapKey<SortedStore> &x, |
70 |
const MapKey<SortedStore> &y); |
76 |
const MapKey<SortedStore> &y); |
71 |
|
77 |
*/ |
72 |
// MapKey members |
78 |
// MapKey members |
73 |
|
79 |
|
74 |
template <class SortedStore> |
80 |
template <class SortedStore> |