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
transform_view.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\fusion\view\transform_view\transform_view.hpp
Girar
Efecto
Propiedad
Historial
/*============================================================================= Copyright (c) 2001-2006 Joel de Guzman Distributed under 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(FUSION_TRANSFORM_VIEW_07162005_1037) #define FUSION_TRANSFORM_VIEW_07162005_1037 #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion { struct void_; struct transform_view_tag; struct transform_view2_tag; struct fusion_sequence_tag; // Binary Version template
struct transform_view : sequence_base
> { BOOST_STATIC_ASSERT(result_of::size
::value == result_of::size
::value); typedef transform_view2_tag fusion_tag; typedef fusion_sequence_tag tag; // this gets picked up by MPL typedef mpl::true_ is_view; typedef typename traits::category_of
::type category1; typedef typename traits::category_of
::type category2; typedef typename detail::strictest_traversal< fusion::vector2
>::type category; typedef typename result_of::begin
::type first1_type; typedef typename result_of::begin
::type first2_type; typedef typename result_of::end
::type last1_type; typedef typename result_of::end
::type last2_type; typedef typename result_of::size
::type size; typedef Sequence1 sequence1_type; typedef Sequence2 sequence2_type; typedef F transform_type; transform_view(Sequence1& seq1, Sequence2& seq2, F const& binop) : f(binop) , seq1(seq1) , seq2(seq2) {} first1_type first1() const { return fusion::begin(seq1); } first2_type first2() const { return fusion::begin(seq2); } last1_type last1() const { return fusion::end(seq1); } last2_type last2() const { return fusion::end(seq2); } transform_type f; typename mpl::if_
, Sequence1, Sequence1&>::type seq1; typename mpl::if_
, Sequence2, Sequence2&>::type seq2; }; // Unary Version template
#if defined(BOOST_PARTIAL_SPECIALIZATION_EXPLICT_ARGS) struct transform_view
: sequence_base
> #else struct transform_view
: sequence_base
> #endif { typedef transform_view_tag fusion_tag; typedef fusion_sequence_tag tag; // this gets picked up by MPL typedef mpl::true_ is_view; typedef typename traits::category_of
::type category; typedef typename result_of::begin
::type first_type; typedef typename result_of::end
::type last_type; typedef typename result_of::size
::type size; typedef Sequence sequence_type; typedef F transform_type; transform_view(Sequence& seq, F const& f) : seq(seq) , f(f) {} first_type first() const { return fusion::begin(seq); } last_type last() const { return fusion::end(seq); } typename mpl::if_
, Sequence, Sequence&>::type seq; transform_type f; }; }} #endif
transform_view.hpp
Dirección de la página
Dirección del archivo
Anterior 1/3
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.