ossrv_pub/boost_apis/boost/spirit/attribute/typeof.hpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 16:27:53 +0300
branchRCL_3
changeset 75 254b651f304e
parent 0 e4d67989cc36
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*=============================================================================
    Copyright (c) 2006 Tobias Schwinger
    http://spirit.sourceforge.net/

    Use, modification and distribution is subject to the Boost Software
    License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
    http://www.boost.org/LICENSE_1_0.txt)
=============================================================================*/
#if !defined(BOOST_SPIRIT_ATTRIBUTE_TYPEOF_HPP)
#define BOOST_SPIRIT_ATTRIBUTE_TYPEOF_HPP

#include <boost/typeof/typeof.hpp>

#include <boost/spirit/core/typeof.hpp>

#include <boost/spirit/attribute/closure_fwd.hpp>

namespace boost { namespace spirit {

    // parametric.hpp
    template<typename ChGenT>                        struct f_chlit;
    template<typename ChGenAT, typename ChGenBT>     struct f_range;
    template<typename IterGenAT, typename IterGenBT> struct f_chseq;
    template<typename IterGenAT, typename IterGenBT> struct f_strlit;

}} // namespace boost::spirit


#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()


// parametric.hpp

BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::f_chlit,1)
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::f_range,2)
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::f_chseq,2)
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::f_strlit,2)


// closure.hpp (has forward header)

BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::closure,BOOST_SPIRIT_CLOSURE_LIMIT)
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::closure_context,1)
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::init_closure_context,1)
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::init_closure_parser,2)


#if BOOST_SPIRIT_CLOSURE_LIMIT  > 12
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::closure,12)
#endif
#if BOOST_SPIRIT_CLOSURE_LIMIT > 9
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::closure, 9)
#endif
#if BOOST_SPIRIT_CLOSURE_LIMIT > 6
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::closure, 6)
#endif
#if BOOST_SPIRIT_CLOSURE_LIMIT > 3
BOOST_TYPEOF_REGISTER_TEMPLATE(boost::spirit::closure, 3)
#endif



#endif