Chris@101
|
1 /* Copyright 2003-2013 Joaquin M Lopez Munoz.
|
Chris@16
|
2 * Distributed under the Boost Software License, Version 1.0.
|
Chris@16
|
3 * (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@16
|
4 * http://www.boost.org/LICENSE_1_0.txt)
|
Chris@16
|
5 *
|
Chris@16
|
6 * See http://www.boost.org/libs/multi_index for library home page.
|
Chris@16
|
7 */
|
Chris@16
|
8
|
Chris@16
|
9 #ifndef BOOST_MULTI_INDEX_ORDERED_INDEX_FWD_HPP
|
Chris@16
|
10 #define BOOST_MULTI_INDEX_ORDERED_INDEX_FWD_HPP
|
Chris@16
|
11
|
Chris@101
|
12 #if defined(_MSC_VER)
|
Chris@16
|
13 #pragma once
|
Chris@16
|
14 #endif
|
Chris@16
|
15
|
Chris@16
|
16 #include <boost/multi_index/detail/ord_index_args.hpp>
|
Chris@16
|
17
|
Chris@16
|
18 namespace boost{
|
Chris@16
|
19
|
Chris@16
|
20 namespace multi_index{
|
Chris@16
|
21
|
Chris@16
|
22 namespace detail{
|
Chris@16
|
23
|
Chris@16
|
24 template<
|
Chris@16
|
25 typename KeyFromValue,typename Compare,
|
Chris@16
|
26 typename SuperMeta,typename TagList,typename Category
|
Chris@16
|
27 >
|
Chris@16
|
28 class ordered_index;
|
Chris@16
|
29
|
Chris@16
|
30 template<
|
Chris@16
|
31 typename KeyFromValue1,typename Compare1,
|
Chris@16
|
32 typename SuperMeta1,typename TagList1,typename Category1,
|
Chris@16
|
33 typename KeyFromValue2,typename Compare2,
|
Chris@16
|
34 typename SuperMeta2,typename TagList2,typename Category2
|
Chris@16
|
35 >
|
Chris@16
|
36 bool operator==(
|
Chris@16
|
37 const ordered_index<
|
Chris@16
|
38 KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x,
|
Chris@16
|
39 const ordered_index<
|
Chris@16
|
40 KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y);
|
Chris@16
|
41
|
Chris@16
|
42 template<
|
Chris@16
|
43 typename KeyFromValue1,typename Compare1,
|
Chris@16
|
44 typename SuperMeta1,typename TagList1,typename Category1,
|
Chris@16
|
45 typename KeyFromValue2,typename Compare2,
|
Chris@16
|
46 typename SuperMeta2,typename TagList2,typename Category2
|
Chris@16
|
47 >
|
Chris@16
|
48 bool operator<(
|
Chris@16
|
49 const ordered_index<
|
Chris@16
|
50 KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x,
|
Chris@16
|
51 const ordered_index<
|
Chris@16
|
52 KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y);
|
Chris@16
|
53
|
Chris@16
|
54 template<
|
Chris@16
|
55 typename KeyFromValue1,typename Compare1,
|
Chris@16
|
56 typename SuperMeta1,typename TagList1,typename Category1,
|
Chris@16
|
57 typename KeyFromValue2,typename Compare2,
|
Chris@16
|
58 typename SuperMeta2,typename TagList2,typename Category2
|
Chris@16
|
59 >
|
Chris@16
|
60 bool operator!=(
|
Chris@16
|
61 const ordered_index<
|
Chris@16
|
62 KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x,
|
Chris@16
|
63 const ordered_index<
|
Chris@16
|
64 KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y);
|
Chris@16
|
65
|
Chris@16
|
66 template<
|
Chris@16
|
67 typename KeyFromValue1,typename Compare1,
|
Chris@16
|
68 typename SuperMeta1,typename TagList1,typename Category1,
|
Chris@16
|
69 typename KeyFromValue2,typename Compare2,
|
Chris@16
|
70 typename SuperMeta2,typename TagList2,typename Category2
|
Chris@16
|
71 >
|
Chris@16
|
72 bool operator>(
|
Chris@16
|
73 const ordered_index<
|
Chris@16
|
74 KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x,
|
Chris@16
|
75 const ordered_index<
|
Chris@16
|
76 KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y);
|
Chris@16
|
77
|
Chris@16
|
78 template<
|
Chris@16
|
79 typename KeyFromValue1,typename Compare1,
|
Chris@16
|
80 typename SuperMeta1,typename TagList1,typename Category1,
|
Chris@16
|
81 typename KeyFromValue2,typename Compare2,
|
Chris@16
|
82 typename SuperMeta2,typename TagList2,typename Category2
|
Chris@16
|
83 >
|
Chris@16
|
84 bool operator>=(
|
Chris@16
|
85 const ordered_index<
|
Chris@16
|
86 KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x,
|
Chris@16
|
87 const ordered_index<
|
Chris@16
|
88 KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y);
|
Chris@16
|
89
|
Chris@16
|
90 template<
|
Chris@16
|
91 typename KeyFromValue1,typename Compare1,
|
Chris@16
|
92 typename SuperMeta1,typename TagList1,typename Category1,
|
Chris@16
|
93 typename KeyFromValue2,typename Compare2,
|
Chris@16
|
94 typename SuperMeta2,typename TagList2,typename Category2
|
Chris@16
|
95 >
|
Chris@16
|
96 bool operator<=(
|
Chris@16
|
97 const ordered_index<
|
Chris@16
|
98 KeyFromValue1,Compare1,SuperMeta1,TagList1,Category1>& x,
|
Chris@16
|
99 const ordered_index<
|
Chris@16
|
100 KeyFromValue2,Compare2,SuperMeta2,TagList2,Category2>& y);
|
Chris@16
|
101
|
Chris@16
|
102 template<
|
Chris@16
|
103 typename KeyFromValue,typename Compare,
|
Chris@16
|
104 typename SuperMeta,typename TagList,typename Category
|
Chris@16
|
105 >
|
Chris@16
|
106 void swap(
|
Chris@16
|
107 ordered_index<KeyFromValue,Compare,SuperMeta,TagList,Category>& x,
|
Chris@16
|
108 ordered_index<KeyFromValue,Compare,SuperMeta,TagList,Category>& y);
|
Chris@16
|
109
|
Chris@16
|
110 } /* namespace multi_index::detail */
|
Chris@16
|
111
|
Chris@16
|
112 /* ordered_index specifiers */
|
Chris@16
|
113
|
Chris@16
|
114 template<typename Arg1,typename Arg2=mpl::na,typename Arg3=mpl::na>
|
Chris@16
|
115 struct ordered_unique;
|
Chris@16
|
116
|
Chris@16
|
117 template<typename Arg1,typename Arg2=mpl::na,typename Arg3=mpl::na>
|
Chris@16
|
118 struct ordered_non_unique;
|
Chris@16
|
119
|
Chris@16
|
120 } /* namespace multi_index */
|
Chris@16
|
121
|
Chris@16
|
122 } /* namespace boost */
|
Chris@16
|
123
|
Chris@16
|
124 #endif
|