]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | /*============================================================================= |
2 | Copyright (c) 2006 Tobias Schwinger | |
3 | http://spirit.sourceforge.net/ | |
4 | ||
5 | Distributed under the Boost Software License, Version 1.0. (See accompanying | |
6 | file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
7 | =============================================================================*/ | |
8 | #if !defined(BOOST_SPIRIT_ATTRIBUTE_TYPEOF_HPP) | |
9 | #define BOOST_SPIRIT_ATTRIBUTE_TYPEOF_HPP | |
10 | ||
11 | #include <boost/typeof/typeof.hpp> | |
12 | ||
13 | #include <boost/spirit/home/classic/namespace.hpp> | |
14 | #include <boost/spirit/home/classic/core/typeof.hpp> | |
15 | #include <boost/spirit/home/classic/attribute/closure_fwd.hpp> | |
16 | ||
17 | namespace boost { namespace spirit { | |
18 | ||
19 | BOOST_SPIRIT_CLASSIC_NAMESPACE_BEGIN | |
20 | ||
21 | // parametric.hpp | |
22 | template<typename ChGenT> struct f_chlit; | |
23 | template<typename ChGenAT, typename ChGenBT> struct f_range; | |
24 | template<typename IterGenAT, typename IterGenBT> class f_chseq; | |
25 | template<typename IterGenAT, typename IterGenBT> class f_strlit; | |
26 | ||
27 | BOOST_SPIRIT_CLASSIC_NAMESPACE_END | |
28 | ||
29 | }} // namespace BOOST_SPIRIT_CLASSIC_NS | |
30 | ||
31 | ||
32 | #include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP() | |
33 | ||
34 | ||
35 | // parametric.hpp | |
36 | ||
37 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_chlit,1) | |
38 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_range,2) | |
39 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_chseq,2) | |
40 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::f_strlit,2) | |
41 | ||
42 | ||
43 | // closure.hpp (has forward header) | |
44 | ||
45 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure,BOOST_SPIRIT_CLOSURE_LIMIT) | |
46 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure_context,1) | |
47 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::init_closure_context,1) | |
48 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::init_closure_parser,2) | |
49 | ||
50 | ||
51 | #if BOOST_SPIRIT_CLOSURE_LIMIT > 12 | |
52 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure,12) | |
53 | #endif | |
54 | #if BOOST_SPIRIT_CLOSURE_LIMIT > 9 | |
55 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure, 9) | |
56 | #endif | |
57 | #if BOOST_SPIRIT_CLOSURE_LIMIT > 6 | |
58 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure, 6) | |
59 | #endif | |
60 | #if BOOST_SPIRIT_CLOSURE_LIMIT > 3 | |
61 | BOOST_TYPEOF_REGISTER_TEMPLATE(BOOST_SPIRIT_CLASSIC_NS::closure, 3) | |
62 | #endif | |
63 | ||
64 | ||
65 | ||
66 | #endif | |
67 |