]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/spirit/include/boost/spirit/home/classic/utility/chset_operators.hpp
bump version to 12.2.2-pve1
[ceph.git] / ceph / src / boost / libs / spirit / include / boost / spirit / home / classic / utility / chset_operators.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Copyright (c) 2001-2003 Joel de Guzman
3 Copyright (c) 2001-2003 Daniel Nuffer
4 http://spirit.sourceforge.net/
5
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8=============================================================================*/
9#ifndef BOOST_SPIRIT_CHSET_OPERATORS_HPP
10#define BOOST_SPIRIT_CHSET_OPERATORS_HPP
11
12///////////////////////////////////////////////////////////////////////////////
13#include <boost/spirit/home/classic/namespace.hpp>
14#include <boost/spirit/home/classic/utility/chset.hpp>
15
16///////////////////////////////////////////////////////////////////////////////
17namespace boost { namespace spirit {
18
19BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN
20
21///////////////////////////////////////////////////////////////////////////////
22//
23// chset free operators
24//
25// Where a and b are both chsets, implements:
26//
27// a | b, a & b, a - b, a ^ b
28//
29// Where a is a chset, implements:
30//
31// ~a
32//
33///////////////////////////////////////////////////////////////////////////////
34template <typename CharT>
35chset<CharT>
36operator~(chset<CharT> const& a);
37
38//////////////////////////////////
39template <typename CharT>
40chset<CharT>
41operator|(chset<CharT> const& a, chset<CharT> const& b);
42
43//////////////////////////////////
44template <typename CharT>
45chset<CharT>
46operator&(chset<CharT> const& a, chset<CharT> const& b);
47
48//////////////////////////////////
49template <typename CharT>
50chset<CharT>
51operator-(chset<CharT> const& a, chset<CharT> const& b);
52
53//////////////////////////////////
54template <typename CharT>
55chset<CharT>
56operator^(chset<CharT> const& a, chset<CharT> const& b);
57
58///////////////////////////////////////////////////////////////////////////////
59//
60// range <--> chset free operators
61//
62// Where a is a chset and b is a range, and vice-versa, implements:
63//
64// a | b, a & b, a - b, a ^ b
65//
66///////////////////////////////////////////////////////////////////////////////
67template <typename CharT>
68chset<CharT>
69operator|(chset<CharT> const& a, range<CharT> const& b);
70
71//////////////////////////////////
72template <typename CharT>
73chset<CharT>
74operator&(chset<CharT> const& a, range<CharT> const& b);
75
76//////////////////////////////////
77template <typename CharT>
78chset<CharT>
79operator-(chset<CharT> const& a, range<CharT> const& b);
80
81//////////////////////////////////
82template <typename CharT>
83chset<CharT>
84operator^(chset<CharT> const& a, range<CharT> const& b);
85
86//////////////////////////////////
87template <typename CharT>
88chset<CharT>
89operator|(range<CharT> const& a, chset<CharT> const& b);
90
91//////////////////////////////////
92template <typename CharT>
93chset<CharT>
94operator&(range<CharT> const& a, chset<CharT> const& b);
95
96//////////////////////////////////
97template <typename CharT>
98chset<CharT>
99operator-(range<CharT> const& a, chset<CharT> const& b);
100
101//////////////////////////////////
102template <typename CharT>
103chset<CharT>
104operator^(range<CharT> const& a, chset<CharT> const& b);
105
106///////////////////////////////////////////////////////////////////////////////
107//
108// chlit <--> chset free operators
109//
110// Where a is a chset and b is a chlit, and vice-versa, implements:
111//
112// a | b, a & b, a - b, a ^ b
113//
114///////////////////////////////////////////////////////////////////////////////
115template <typename CharT>
116chset<CharT>
117operator|(chset<CharT> const& a, chlit<CharT> const& b);
118
119//////////////////////////////////
120template <typename CharT>
121chset<CharT>
122operator&(chset<CharT> const& a, chlit<CharT> const& b);
123
124//////////////////////////////////
125template <typename CharT>
126chset<CharT>
127operator-(chset<CharT> const& a, chlit<CharT> const& b);
128
129//////////////////////////////////
130template <typename CharT>
131chset<CharT>
132operator^(chset<CharT> const& a, chlit<CharT> const& b);
133
134//////////////////////////////////
135template <typename CharT>
136chset<CharT>
137operator|(chlit<CharT> const& a, chset<CharT> const& b);
138
139//////////////////////////////////
140template <typename CharT>
141chset<CharT>
142operator&(chlit<CharT> const& a, chset<CharT> const& b);
143
144//////////////////////////////////
145template <typename CharT>
146chset<CharT>
147operator-(chlit<CharT> const& a, chset<CharT> const& b);
148
149//////////////////////////////////
150template <typename CharT>
151chset<CharT>
152operator^(chlit<CharT> const& a, chset<CharT> const& b);
153
154///////////////////////////////////////////////////////////////////////////////
155//
156// negated_char_parser<range> <--> chset free operators
157//
158// Where a is a chset and b is a range, and vice-versa, implements:
159//
160// a | b, a & b, a - b, a ^ b
161//
162///////////////////////////////////////////////////////////////////////////////
163template <typename CharT>
164chset<CharT>
165operator|(chset<CharT> const& a, negated_char_parser<range<CharT> > const& b);
166
167//////////////////////////////////
168template <typename CharT>
169chset<CharT>
170operator&(chset<CharT> const& a, negated_char_parser<range<CharT> > const& b);
171
172//////////////////////////////////
173template <typename CharT>
174chset<CharT>
175operator-(chset<CharT> const& a, negated_char_parser<range<CharT> > const& b);
176
177//////////////////////////////////
178template <typename CharT>
179chset<CharT>
180operator^(chset<CharT> const& a, negated_char_parser<range<CharT> > const& b);
181
182//////////////////////////////////
183template <typename CharT>
184chset<CharT>
185operator|(negated_char_parser<range<CharT> > const& a, chset<CharT> const& b);
186
187//////////////////////////////////
188template <typename CharT>
189chset<CharT>
190operator&(negated_char_parser<range<CharT> > const& a, chset<CharT> const& b);
191
192//////////////////////////////////
193template <typename CharT>
194chset<CharT>
195operator-(negated_char_parser<range<CharT> > const& a, chset<CharT> const& b);
196
197//////////////////////////////////
198template <typename CharT>
199chset<CharT>
200operator^(negated_char_parser<range<CharT> > const& a, chset<CharT> const& b);
201
202///////////////////////////////////////////////////////////////////////////////
203//
204// negated_char_parser<chlit> <--> chset free operators
205//
206// Where a is a chset and b is a chlit, and vice-versa, implements:
207//
208// a | b, a & b, a - b, a ^ b
209//
210///////////////////////////////////////////////////////////////////////////////
211template <typename CharT>
212chset<CharT>
213operator|(chset<CharT> const& a, negated_char_parser<chlit<CharT> > const& b);
214
215//////////////////////////////////
216template <typename CharT>
217chset<CharT>
218operator&(chset<CharT> const& a, negated_char_parser<chlit<CharT> > const& b);
219
220//////////////////////////////////
221template <typename CharT>
222chset<CharT>
223operator-(chset<CharT> const& a, negated_char_parser<chlit<CharT> > const& b);
224
225//////////////////////////////////
226template <typename CharT>
227chset<CharT>
228operator^(chset<CharT> const& a, negated_char_parser<chlit<CharT> > const& b);
229
230//////////////////////////////////
231template <typename CharT>
232chset<CharT>
233operator|(negated_char_parser<chlit<CharT> > const& a, chset<CharT> const& b);
234
235//////////////////////////////////
236template <typename CharT>
237chset<CharT>
238operator&(negated_char_parser<chlit<CharT> > const& a, chset<CharT> const& b);
239
240//////////////////////////////////
241template <typename CharT>
242chset<CharT>
243operator-(negated_char_parser<chlit<CharT> > const& a, chset<CharT> const& b);
244
245//////////////////////////////////
246template <typename CharT>
247chset<CharT>
248operator^(negated_char_parser<chlit<CharT> > const& a, chset<CharT> const& b);
249
250///////////////////////////////////////////////////////////////////////////////
251//
252// literal primitives <--> chset free operators
253//
254// Where a is a chset and b is a literal primitive,
255// and vice-versa, implements:
256//
257// a | b, a & b, a - b, a ^ b
258//
259///////////////////////////////////////////////////////////////////////////////
260template <typename CharT>
261chset<CharT>
262operator|(chset<CharT> const& a, CharT b);
263
264//////////////////////////////////
265template <typename CharT>
266chset<CharT>
267operator&(chset<CharT> const& a, CharT b);
268
269//////////////////////////////////
270template <typename CharT>
271chset<CharT>
272operator-(chset<CharT> const& a, CharT b);
273
274//////////////////////////////////
275template <typename CharT>
276chset<CharT>
277operator^(chset<CharT> const& a, CharT b);
278
279//////////////////////////////////
280template <typename CharT>
281chset<CharT>
282operator|(CharT a, chset<CharT> const& b);
283
284//////////////////////////////////
285template <typename CharT>
286chset<CharT>
287operator&(CharT a, chset<CharT> const& b);
288
289//////////////////////////////////
290template <typename CharT>
291chset<CharT>
292operator-(CharT a, chset<CharT> const& b);
293
294//////////////////////////////////
295template <typename CharT>
296chset<CharT>
297operator^(CharT a, chset<CharT> const& b);
298
299///////////////////////////////////////////////////////////////////////////////
300//
301// anychar_parser <--> chset free operators
302//
303// Where a is chset and b is a anychar_parser, and vice-versa, implements:
304//
305// a | b, a & b, a - b, a ^ b
306//
307///////////////////////////////////////////////////////////////////////////////
308template <typename CharT>
309chset<CharT>
310operator|(chset<CharT> const& a, anychar_parser b);
311
312//////////////////////////////////
313template <typename CharT>
314chset<CharT>
315operator&(chset<CharT> const& a, anychar_parser b);
316
317//////////////////////////////////
318template <typename CharT>
319chset<CharT>
320operator-(chset<CharT> const& a, anychar_parser b);
321
322//////////////////////////////////
323template <typename CharT>
324chset<CharT>
325operator^(chset<CharT> const& a, anychar_parser b);
326
327//////////////////////////////////
328template <typename CharT>
329chset<CharT>
330operator|(anychar_parser a, chset<CharT> const& b);
331
332//////////////////////////////////
333template <typename CharT>
334chset<CharT>
335operator&(anychar_parser a, chset<CharT> const& b);
336
337//////////////////////////////////
338template <typename CharT>
339chset<CharT>
340operator-(anychar_parser a, chset<CharT> const& b);
341
342//////////////////////////////////
343template <typename CharT>
344chset<CharT>
345operator^(anychar_parser a, chset<CharT> const& b);
346
347///////////////////////////////////////////////////////////////////////////////
348//
349// nothing_parser <--> chset free operators
350//
351// Where a is chset and b is nothing_parser, and vice-versa, implements:
352//
353// a | b, a & b, a - b, a ^ b
354//
355///////////////////////////////////////////////////////////////////////////////
356template <typename CharT>
357chset<CharT>
358operator|(chset<CharT> const& a, nothing_parser b);
359
360//////////////////////////////////
361template <typename CharT>
362chset<CharT>
363operator&(chset<CharT> const& a, nothing_parser b);
364
365//////////////////////////////////
366template <typename CharT>
367chset<CharT>
368operator-(chset<CharT> const& a, nothing_parser b);
369
370//////////////////////////////////
371template <typename CharT>
372chset<CharT>
373operator^(chset<CharT> const& a, nothing_parser b);
374
375//////////////////////////////////
376template <typename CharT>
377chset<CharT>
378operator|(nothing_parser a, chset<CharT> const& b);
379
380//////////////////////////////////
381template <typename CharT>
382chset<CharT>
383operator&(nothing_parser a, chset<CharT> const& b);
384
385//////////////////////////////////
386template <typename CharT>
387chset<CharT>
388operator-(nothing_parser a, chset<CharT> const& b);
389
390//////////////////////////////////
391template <typename CharT>
392chset<CharT>
393operator^(nothing_parser a, chset<CharT> const& b);
394
395///////////////////////////////////////////////////////////////////////////////
396BOOST_SPIRIT_CLASSIC_NAMESPACE_END
397
398}} // namespace BOOST_SPIRIT_CLASSIC_NS
399
400#endif
401
402#include <boost/spirit/home/classic/utility/impl/chset_operators.ipp>