x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
transform_view.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\fusion\view\transform_view\transform_view.hpp
旋转
特效
属性
历史版本
/*============================================================================= 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
网页地址
文件地址
上一页 1/3
下一页
下载
( 4 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.