x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
invoke_procedure.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\fusion\functional\invocation\invoke_procedure.hpp
旋转
特效
属性
历史版本
/*============================================================================= Copyright (c) 2005-2006 João Abecasis Copyright (c) 2006-2007 Tobias Schwinger Use modification and distribution are 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_FUSION_FUNCTIONAL_INVOCATION_INVOKE_PROCEDURE_HPP_INCLUDED) #if !defined(BOOST_PP_IS_ITERATING) #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
namespace boost { namespace fusion { namespace result_of { template
struct invoke_procedure { typedef void type; }; } template
inline void invoke_procedure(Function, Sequence &); template
inline void invoke_procedure(Function, Sequence const &); //----- ---- --- -- - - - - namespace detail { namespace ft = function_types; template< typename Function, class Sequence, int N = result_of::size
::value, bool MFP = ft::is_member_function_pointer
::value, bool RandomAccess = traits::is_random_access
::value > struct invoke_procedure_impl; #define BOOST_PP_FILENAME_1 \
#define BOOST_PP_ITERATION_LIMITS \ (0, BOOST_FUSION_INVOKE_PROCEDURE_MAX_ARITY) #include BOOST_PP_ITERATE() } template
inline void invoke_procedure(Function f, Sequence & s) { detail::invoke_procedure_impl< typename boost::remove_reference
::type,Sequence >::call(f,s); } template
inline void invoke_procedure(Function f, Sequence const & s) { detail::invoke_procedure_impl< typename boost::remove_reference
::type,Sequence const >::call(f,s); } }} #define BOOST_FUSION_FUNCTIONAL_INVOCATION_INVOKE_PROCEDURE_HPP_INCLUDED #else // defined(BOOST_PP_IS_ITERATING) /////////////////////////////////////////////////////////////////////////////// // // Preprocessor vertical repetition code // /////////////////////////////////////////////////////////////////////////////// #define N BOOST_PP_ITERATION() #define M(z,j,data) fusion::at_c
(s) template
struct invoke_procedure_impl
{ static inline void call(Function & f, Sequence & s) { f(BOOST_PP_ENUM(N,M,~)); } }; #if N > 0 template
struct invoke_procedure_impl
{ static inline void call(Function & f, Sequence & s) { (that_ptr
>::type >::get(fusion::at_c<0>(s))->*f)(BOOST_PP_ENUM_SHIFTED(N,M,~)); } }; #endif #undef M #define M(z,j,data) \ typedef typename result_of::next< BOOST_PP_CAT(I,BOOST_PP_DEC(j)) \ >::type I ## j ; \ I##j i##j = fusion::next(BOOST_PP_CAT(i,BOOST_PP_DEC(j))); template
struct invoke_procedure_impl
{ static inline void call(Function & f, Sequence & s) { #if N > 0 typedef typename result_of::begin
::type I0; I0 i0 = fusion::begin(s); BOOST_PP_REPEAT_FROM_TO(1,N,M,~) #endif f( BOOST_PP_ENUM_PARAMS(N,*i) ); } }; #if N > 0 template
struct invoke_procedure_impl
{ static inline void call(Function & f, Sequence & s) { typedef typename result_of::begin
::type I0; I0 i0 = fusion::begin(s); BOOST_PP_REPEAT_FROM_TO(1,N,M,~) (that_ptr
>::type >::get(*i0)->*f)(BOOST_PP_ENUM_SHIFTED_PARAMS(N,*i)); } }; #endif #undef M #undef N #endif // defined(BOOST_PP_IS_ITERATING) #endif
invoke_procedure.hpp
网页地址
文件地址
上一页
3/4
下一页
下载
( 5 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.