x
Yes
No
Do you want to visit DriveHQ English website?
Inicio
Características
Precios
Prueba gratuita
Software cliente
Acerca de nosotros
Servidor de archivos
|
Solución de copias de seguridad
|
Servidor FTP
|
Servidor de correo electrónico
|
Alojamiento web
|
Software cliente
Servidor de archivos
Solución de copia de seguridad
Servidor FTP
Servidor de correo electrónico
Alojamiento web
Software cliente
no_actions.hpp - Hosted on DriveHQ Cloud IT Platform
Arriba
Subir
Descargar
Compartir
Publicar
Nueva carpeta
Nuevo archivo
Copiar
Cortar
Eliminar
Pegar
Clasificación
Actualizar
Ruta de la carpeta: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\spirit\core\composite\no_actions.hpp
Girar
Efecto
Propiedad
Historial
/*============================================================================= Copyright (c) 1998-2003 Joel de Guzman Copyright (c) 2003 Vaclav Vesely 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_NO_ACTIONS_HPP) #define BOOST_SPIRIT_NO_ACTIONS_HPP #include
#include
#include
namespace boost { namespace spirit { //----------------------------------------------------------------------------- // no_actions_action_policy template
struct no_actions_action_policy: public BaseT { typedef BaseT base_t; no_actions_action_policy(): BaseT() {} template
no_actions_action_policy(PolicyT const& other): BaseT(other) {} template
void do_action( ActorT const& actor, AttrT& val, IteratorT const& first, IteratorT const& last) const {} }; //----------------------------------------------------------------------------- // no_actions_scanner namespace detail { template
struct compute_no_actions_action_policy { typedef no_actions_action_policy
type; }; template
struct compute_no_actions_action_policy
> { typedef no_actions_action_policy
type; }; } template
> struct no_actions_scanner { typedef scanner_policies< typename ScannerT::iteration_policy_t, typename ScannerT::match_policy_t, typename detail::compute_no_actions_action_policy
::type > policies_t; typedef typename rebind_scanner_policies
::type type; }; #if BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT > 1 template
> struct no_actions_scanner_list { typedef scanner_list< ScannerT, typename no_actions_scanner
::type > type; }; #endif // BOOST_SPIRIT_RULE_SCANNERTYPE_LIMIT > 1 //----------------------------------------------------------------------------- // no_actions_parser struct no_actions_parser_gen; template
struct no_actions_parser: public unary
> > { typedef no_actions_parser
self_t; typedef unary_parser_category parser_category_t; typedef no_actions_parser_gen parser_generator_t; typedef unary
> base_t; template
struct result { typedef typename parser_result
::type type; }; no_actions_parser(ParserT const& p) : base_t(p) {} template
typename result
::type parse(ScannerT const& scan) const { typedef typename no_actions_scanner
::policies_t policies_t; return this->subject().parse(scan.change_policies(policies_t(scan))); } }; //----------------------------------------------------------------------------- // no_actions_parser_gen struct no_actions_parser_gen { template
struct result { typedef no_actions_parser
type; }; template
static no_actions_parser
generate(parser
const& subject) { return no_actions_parser
(subject.derived()); } template
no_actions_parser
operator[](parser
const& subject) const { return no_actions_parser
(subject.derived()); } }; //----------------------------------------------------------------------------- // no_actions_d const no_actions_parser_gen no_actions_d = no_actions_parser_gen(); //----------------------------------------------------------------------------- } // namespace spirit } // namespace boost #endif // !defined(BOOST_SPIRIT_NO_ACTIONS_HPP)
no_actions.hpp
Dirección de la página
Dirección del archivo
Anterior
11/17
Siguiente
Descargar
( 4 KB )
Comments
Total ratings:
0
Average rating:
No clasificado
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.