DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
Cloud Backup
True Drop Box
FTP/SFTP Hosting
Group Account
DriveHQ Start Menu
Online File Server
My Storage
|
Manage Shares
|
Publishes
|
Drop Boxes
|
Group Account
WebDAV Drive Mapping
Cloud Drive Home
|
WebDAV Guide
|
Drive Mapping Tool
|
Drive Mapping URL
Complete Data Backup
Backup Guide
|
Online Backup Tool
|
Cloud-to-Cloud Backup
FTP, Email & Web Service
FTP Home
|
FTP Hosting FAQ
|
Email Hosting
|
EmailManager
|
Web Hosting
Help & Resources
About
|
Enterprise Service
|
Partnership
|
Comparisons
|
Support
Quick Links
Security and Privacy
Download Software
Service Manual
Use Cases
Group Account
Online Help
Blog
Contact
Cloud Surveillance
Sign Up
Login
Features
Business Features
Online File Server
FTP Hosting
Cloud Drive Mapping
Cloud File Backup
Email Backup & Hosting
Cloud File Sharing
Folder Synchronization
Group Management
True Drop Box
Full-text Search
AD Integration/SSO
Mobile Access
IP Camera & DVR Solution
More...
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
More...
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Mobile Apps
Pricing
Business Plans & Pricing
Personal Plans & Pricing
Price Comparison with Others
Feature Comparison with Others
Install Mobile App
Sign up
Creating account...
Invalid character in username! Only 0-9, a-z, A-Z, _, -, . allowed.
Username is required!
Invalid email address!
E-mail is required!
Password is required!
Password is invalid!
Password and confirmation do not match.
Confirm password is required!
I accept
Membership Agreement
Please read the Membership Agreement and check "I accept"!
Free Quick Sign-up
Sign-up Page
Log in
Signing in...
Username or e-mail address is required!
Password is required!
Keep me logged in
Quick Login
Forgot Password
Up
Upload
Download
Share
Publish
New Folder
New File
Copy
Cut
Delete
Paste
Rate
Upgrade
Rotate
Effect
Edit
Slide
History
#ifndef BOOST_PP_IS_ITERATING /////////////////////////////////////////////////////////////////////////////// /// \file callable.hpp /// Definintion of callable_context\<\>, an evaluation context for /// proto::eval() that explodes each node and calls the derived context /// type with the expressions constituents. If the derived context doesn't /// have an overload that handles this node, fall-back to the default_context. /// TODO: make the fall-back configurable! // // Copyright 2007 Eric Niebler. 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 BOOST_PROTO_CONTEXT_CALLABLE_HPP_EAN_06_23_2007 #define BOOST_PROTO_CONTEXT_CALLABLE_HPP_EAN_06_23_2007 #include
// must be first include #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
// for arg_c #include
// must be last include namespace boost { namespace proto { namespace detail { struct private_type_ { private_type_ const &operator,(int) const; }; template
yes_type check_is_expr_handled(T const &); no_type check_is_expr_handled(private_type_ const &); template
struct callable_context_wrapper; template
struct is_expr_handled; } namespace context { /// callable_eval /// template
struct callable_eval {}; /// callable_context /// template
struct callable_context { /// callable_context::eval /// template
struct eval : mpl::if_< detail::is_expr_handled
, callable_eval
, typename DefaultCtx::template eval
>::type {}; }; } #define BOOST_PROTO_ARG_N_TYPE(Z, N, Expr) \ typename proto::result_of::arg_c
::const_reference \ /**/ #define BOOST_PROTO_ARG_N(Z, N, expr) \ proto::arg_c
(expr) \ /**/ #define BOOST_PP_ITERATION_PARAMS_1 \ (3, (0, BOOST_PROTO_MAX_ARITY,
)) \ /**/ #include BOOST_PP_ITERATE() #undef BOOST_PROTO_ARG_N_TYPE #undef BOOST_PROTO_ARG_N }} #endif #else #define N BOOST_PP_ITERATION() #define ARG_COUNT BOOST_PP_MAX(1, N) namespace detail { #if N > 0 template
struct callable_context_wrapper
: remove_cv
::type { callable_context_wrapper(); typedef private_type_ const &(*pointer_to_function)(BOOST_PP_ENUM_PARAMS(BOOST_PP_INC(ARG_COUNT), detail::dont_care BOOST_PP_INTERCEPT)); operator pointer_to_function() const; }; #endif template
struct is_expr_handled
{ static callable_context_wrapper
&sctx_; static Expr &sexpr_; BOOST_STATIC_CONSTANT(bool, value = ( sizeof(yes_type) == sizeof( detail::check_is_expr_handled( (sctx_( typename Expr::proto_tag() BOOST_PP_ENUM_TRAILING(ARG_COUNT, BOOST_PROTO_ARG_N, sexpr_) ), 0) ) ))); typedef mpl::bool_
type; }; } namespace context { template
struct callable_eval
{ typedef typename boost::result_of< Context( typename Expr::proto_tag BOOST_PP_ENUM_TRAILING(ARG_COUNT, BOOST_PROTO_ARG_N_TYPE, Expr) ) >::type result_type; result_type operator ()(Expr &expr, Context &context) const { return context( typename Expr::proto_tag() BOOST_PP_ENUM_TRAILING(ARG_COUNT, BOOST_PROTO_ARG_N, expr) ); } }; } #undef N #undef ARG_COUNT #endif
callable.hpp
Page URL
File URL
Prev 1/3
Next
Download
( 6 KB )
Note: The DriveHQ service banners will NOT be displayed if the file owner is a paid member.
Comments
Total ratings:
0
Average rating:
Not Rated
Would you like to comment?
Join DriveHQ
for a free account, or
Logon
if you are already a member.