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
// Boost.Signals library // Copyright Douglas Gregor 2001-2004. Use, modification and // distribution is 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) // For more information, see http://www.boost.org #ifndef BOOST_SIGNALS_COMMON_HEADER #define BOOST_SIGNALS_COMMON_HEADER #ifndef BOOST_SIGNALS_NAMESPACE # define BOOST_SIGNALS_NAMESPACE signals #endif #include
#include
#include
#ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif namespace boost { namespace BOOST_SIGNALS_NAMESPACE { namespace detail { // The unusable class is a placeholder for unused function arguments // It is also completely unusable except that it constructable from // anything. This helps compilers without partial specialization // handle slots returning void. struct unusable { unusable() {} }; // Determine the result type of a slot call template
struct slot_result_type { typedef R type; }; template<> struct slot_result_type
{ typedef unusable type; }; // Determine if the given type T is a signal class signal_base; template
struct is_signal { BOOST_STATIC_CONSTANT(bool, value = (is_convertible
::value)); }; /* * The IF implementation is temporary code. When a Boost metaprogramming * library is introduced, Boost.Signals will use it instead. */ namespace intimate { struct SelectThen { template
struct Result { typedef Then type; }; }; struct SelectElse { template
struct Result { typedef Else type; }; }; template
struct Selector { typedef SelectThen type; }; template<> struct Selector
{ typedef SelectElse type; }; } // end namespace intimate template
struct IF { typedef typename intimate::Selector
::type select; typedef typename select::template Result
::type type; }; // Determine if the incoming argument is a reference_wrapper #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION template
struct is_ref { BOOST_STATIC_CONSTANT(bool, value = false); }; template
struct is_ref
> { BOOST_STATIC_CONSTANT(bool, value = true); }; #else // no partial specialization typedef char yes_type; typedef double no_type; no_type is_ref_tester(...); template
yes_type is_ref_tester(reference_wrapper
*); template
struct is_ref { static T* t; BOOST_STATIC_CONSTANT(bool, value = (sizeof(is_ref_tester(t)) == sizeof(yes_type))); }; #endif // BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION // A slot can be a signal, a reference to a function object, or a // function object. struct signal_tag {}; struct reference_tag {}; struct value_tag {}; // Classify the given slot as a signal, a reference-to-slot, or a // standard slot template
class get_slot_tag { typedef typename IF<(is_signal
::value), signal_tag, value_tag>::type signal_or_value; public: typedef typename IF<(is_ref
::value), reference_tag, signal_or_value>::type type; }; // Forward declaration needed in lots of places class signal_base_impl; class bound_objects_visitor; class slot_base; } // end namespace detail } // end namespace BOOST_SIGNALS_NAMESPACE } // end namespace boost #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #endif // BOOST_SIGNALS_COMMON_HEADER
signals_common.hpp
Page URL
File URL
Prev
5/6
Next
Download
( 4 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.