Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:53:40

0001 /*=============================================================================
0002     Boost.Wave: A Standard compliant C++ preprocessor library
0003 
0004     http://www.boost.org/
0005 
0006     Copyright (c) 2001-2012 Hartmut Kaiser. Distributed under the Boost
0007     Software License, Version 1.0. (See accompanying file
0008     LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0009 =============================================================================*/
0010 
0011 #if !defined(BOOST_CPP_HAS_INCLUDE_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED)
0012 #define BOOST_CPP_HAS_INCLUDE_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED
0013 
0014 #include <boost/wave/wave_config.hpp>
0015 
0016 #include <list>
0017 
0018 #include <boost/spirit/include/classic_parser.hpp>
0019 #include <boost/pool/pool_alloc.hpp>
0020 
0021 #include <boost/wave/util/unput_queue_iterator.hpp>
0022 
0023 // this must occur after all of the includes and before any code appears
0024 #ifdef BOOST_HAS_ABI_HEADERS
0025 #include BOOST_ABI_PREFIX
0026 #endif
0027 
0028 // suppress warnings about dependent classes not being exported from the dll
0029 #ifdef BOOST_MSVC
0030 #pragma warning(push)
0031 #pragma warning(disable : 4251 4231 4660)
0032 #endif
0033 
0034 ///////////////////////////////////////////////////////////////////////////////
0035 namespace boost {
0036 namespace wave {
0037 namespace grammars {
0038 
0039 template <typename LexIteratorT>
0040 struct BOOST_WAVE_DECL has_include_grammar_gen
0041 {
0042     typedef typename LexIteratorT::token_type token_type;
0043     typedef std::list<token_type, boost::fast_pool_allocator<token_type> >
0044         token_sequence_type;
0045 
0046 //  The parse_operator_has_include function is instantiated manually twice to
0047 //  simplify the explicit specialization of this template. This way the user
0048 //  has only to specify one template parameter (the lexer iterator type) to
0049 //  correctly formulate the required explicit specialization.
0050 //  This results in no code overhead, because otherwise the function would be
0051 //  generated by the compiler twice anyway.
0052 
0053     typedef boost::wave::util::unput_queue_iterator<
0054             typename token_sequence_type::iterator, token_type, token_sequence_type>
0055         iterator1_type;
0056 
0057     typedef boost::wave::util::unput_queue_iterator<
0058             LexIteratorT, token_type, token_sequence_type>
0059         iterator2_type;
0060 
0061     //  parse the operator has_include and return the found qualified name
0062     static boost::spirit::classic::parse_info<iterator1_type>
0063     parse_operator_has_include (iterator1_type const &first,
0064         iterator1_type const &last, token_sequence_type &found_qualified_name,
0065         bool &is_quoted_filename, bool &is_system);
0066 
0067     static boost::spirit::classic::parse_info<iterator2_type>
0068     parse_operator_has_include (iterator2_type const &first,
0069         iterator2_type const &last, token_sequence_type &found_qualified_name,
0070         bool &is_quoted_filename, bool &is_system);
0071 };
0072 
0073 ///////////////////////////////////////////////////////////////////////////////
0074 }   // namespace grammars
0075 }   // namespace wave
0076 }   // namespace boost
0077 
0078 #ifdef BOOST_MSVC
0079 #pragma warning(pop)
0080 #endif
0081 
0082 // the suffix header occurs after all of the code
0083 #ifdef BOOST_HAS_ABI_HEADERS
0084 #include BOOST_ABI_SUFFIX
0085 #endif
0086 
0087 #endif // !defined(BOOST_CPP_HAS_INCLUDE_GRAMMAR_GEN_HPP_825BE9F5_98A3_400D_A97C_AD76B3B08632_INCLUDED)