]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/wave/grammars/cpp_expression_grammar_gen.hpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / boost / wave / grammars / cpp_expression_grammar_gen.hpp
CommitLineData
7c673cae
FG
1/*=============================================================================
2 Boost.Wave: A Standard compliant C++ preprocessor library
3
4 http://www.boost.org/
5
6 Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
7 Software License, Version 1.0. (See accompanying file
8 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9=============================================================================*/
10
20effc67
TL
11#if !defined(BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)
12#define BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED
7c673cae
FG
13
14#include <boost/wave/wave_config.hpp>
15#include <boost/wave/cpp_iteration_context.hpp>
16#include <boost/wave/grammars/cpp_value_error.hpp>
17
18#include <list>
19#include <boost/pool/pool_alloc.hpp>
20
21// this must occur after all of the includes and before any code appears
22#ifdef BOOST_HAS_ABI_HEADERS
23#include BOOST_ABI_PREFIX
24#endif
25
26// suppress warnings about dependent classes not being exported from the dll
27#ifdef BOOST_MSVC
28#pragma warning(push)
29#pragma warning(disable : 4251 4231 4660)
30#endif
31
32///////////////////////////////////////////////////////////////////////////////
33namespace boost {
34namespace wave {
35namespace grammars {
36
37///////////////////////////////////////////////////////////////////////////////
b32b8144 38//
7c673cae
FG
39// expression_grammar_gen template class
40//
b32b8144
FG
41// This template helps separating the compilation of the
42// expression_grammar class from the compilation of the main
7c673cae
FG
43// pp_iterator. This is done to safe compilation time.
44//
45///////////////////////////////////////////////////////////////////////////////
46
47template <typename TokenT>
48struct BOOST_WAVE_DECL expression_grammar_gen {
49
50 typedef TokenT token_type;
51 typedef std::list<token_type, boost::fast_pool_allocator<token_type> >
52 token_sequence_type;
53
54 static bool evaluate(
b32b8144
FG
55 typename token_sequence_type::const_iterator const &first,
56 typename token_sequence_type::const_iterator const &last,
7c673cae
FG
57 typename token_type::position_type const &tok,
58 bool if_block_status, value_error &status);
59};
60
61///////////////////////////////////////////////////////////////////////////////
62} // namespace grammars
b32b8144 63} // namespace wave
7c673cae
FG
64} // namespace boost
65
66#ifdef BOOST_MSVC
67#pragma warning(pop)
68#endif
69
70// the suffix header occurs after all of the code
71#ifdef BOOST_HAS_ABI_HEADERS
72#include BOOST_ABI_SUFFIX
73#endif
74
20effc67 75#endif // !defined(BOOST_CPP_EXPRESSION_GRAMMAR_GEN_HPP_42399258_6CDC_4101_863D_5C7D95B5A6CA_INCLUDED)