x
Yes
No
Do you want to visit DriveHQ English website?
首页
产品服务
价格
免费试用
下载客户端
关于我们
云文件服务
|
云备份服务
|
FTP服务
|
企业邮箱服务
|
网站托管
|
客户端软件
云文件服务
云备份服务
FTP服务
企业级邮箱服务
网站托管
客户端软件
proxy.hpp - Hosted on DriveHQ Cloud IT Platform
返回上层目录
上传
下载
共享
发布
新建文件夹
新建文件
复制
剪切
删除
粘贴
评论
升级服务
路径: \\game3dprogramming\materials\GameFactory\GameFactoryDemo\references\boost_1_35_0\boost\python\proxy.hpp
旋转
特效
属性
历史版本
// Copyright David Abrahams 2002. // 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) #ifndef PROXY_DWA2002615_HPP # define PROXY_DWA2002615_HPP # include
# include
# include
namespace boost { namespace python { namespace api { template
class proxy : public object_operators
> { typedef typename Policies::key_type key_type; # if !defined(BOOST_MSVC) || BOOST_MSVC >= 1300 typedef proxy const& assignment_self; # else typedef proxy assignment_self; # endif public: proxy(object const& target, key_type const& key); operator object() const; // to support a[b] = c[d] proxy const& operator=(assignment_self) const; template
inline proxy const& operator=(T const& rhs) const { Policies::set(m_target, m_key, object(rhs)); return *this; } public: // implementation detail void del() const; private: object m_target; key_type m_key; }; template
inline void del(proxy
const& x) { x.del(); } // // implementation // template
inline proxy
::proxy(object const& target, key_type const& key) : m_target(target), m_key(key) {} template
inline proxy
::operator object() const { return Policies::get(m_target, m_key); } // to support a[b] = c[d] template
inline proxy
const& proxy
::operator=(typename proxy::assignment_self rhs) const { return *this = python::object(rhs); } # define BOOST_PYTHON_PROXY_INPLACE(op) \ template
\ proxy
const& operator op(proxy
const& lhs, R const& rhs) \ { \ object old(lhs); \ return lhs = (old op rhs); \ } BOOST_PYTHON_PROXY_INPLACE(+=) BOOST_PYTHON_PROXY_INPLACE(-=) BOOST_PYTHON_PROXY_INPLACE(*=) BOOST_PYTHON_PROXY_INPLACE(/=) BOOST_PYTHON_PROXY_INPLACE(%=) BOOST_PYTHON_PROXY_INPLACE(<<=) BOOST_PYTHON_PROXY_INPLACE(>>=) BOOST_PYTHON_PROXY_INPLACE(&=) BOOST_PYTHON_PROXY_INPLACE(^=) BOOST_PYTHON_PROXY_INPLACE(|=) # undef BOOST_PYTHON_PROXY_INPLACE template
inline void proxy
::del() const { Policies::del(m_target, m_key); } }}} // namespace boost::python::api #endif // PROXY_DWA2002615_HPP
proxy.hpp
网页地址
文件地址
上一页
59/85
下一页
下载
( 2 KB )
Comments
Total ratings:
0
Average rating:
无评论
of 10
Would you like to comment?
Join now
, or
Logon
if you are already a member.