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_SLOT_HEADER #define BOOST_SIGNALS_SLOT_HEADER #include
#include
#include
#include
#include
#include
#ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif namespace boost { namespace BOOST_SIGNALS_NAMESPACE { namespace detail { class BOOST_SIGNALS_DECL slot_base { // We would have to enumerate all of the signalN classes here as // friends to make this private (as it otherwise should be). We can't // name all of them because we don't know how many there are. public: struct data_t { std::vector
bound_objects; connection watch_bound_objects; }; shared_ptr
get_data() const { return data; } // Get the set of bound objects std::vector
& get_bound_objects() const { return data->bound_objects; } // Determine if this slot is still "active", i.e., all of the bound // objects still exist bool is_active() const { return data->watch_bound_objects.connected(); } protected: // Create a connection for this slot void create_connection(); shared_ptr
data; private: static void bound_object_destructed(void*, void*) {} }; } // end namespace detail // Get the slot so that it can be copied template
reference_wrapper
get_invocable_slot(const F& f, BOOST_SIGNALS_NAMESPACE::detail::signal_tag) { return reference_wrapper
(f); } template
const F& get_invocable_slot(const F& f, BOOST_SIGNALS_NAMESPACE::detail::reference_tag) { return f; } template
const F& get_invocable_slot(const F& f, BOOST_SIGNALS_NAMESPACE::detail::value_tag) { return f; } // Get the slot so that it can be inspected for trackable objects template
const F& get_inspectable_slot(const F& f, BOOST_SIGNALS_NAMESPACE::detail::signal_tag) { return f; } template
const F& get_inspectable_slot(const reference_wrapper
& f, BOOST_SIGNALS_NAMESPACE::detail::reference_tag) { return f.get(); } template
const F& get_inspectable_slot(const F& f, BOOST_SIGNALS_NAMESPACE::detail::value_tag) { return f; } // Determines the type of the slot - is it a signal, a reference to a // slot or just a normal slot. template
typename BOOST_SIGNALS_NAMESPACE::detail::get_slot_tag
::type tag_type(const F&) { typedef typename BOOST_SIGNALS_NAMESPACE::detail::get_slot_tag
::type the_tag_type; the_tag_type tag = the_tag_type(); return tag; } } // end namespace BOOST_SIGNALS_NAMESPACE template
class slot : public BOOST_SIGNALS_NAMESPACE::detail::slot_base { typedef BOOST_SIGNALS_NAMESPACE::detail::slot_base inherited; typedef typename inherited::data_t data_t; public: template
slot(const F& f) : slot_function(BOOST_SIGNALS_NAMESPACE::get_invocable_slot(f, BOOST_SIGNALS_NAMESPACE::tag_type(f))) { this->data.reset(new data_t); // Visit each of the bound objects and store them for later use // An exception thrown here will allow the basic_connection to be // destroyed when this goes out of scope, and no other connections // have been made. BOOST_SIGNALS_NAMESPACE::detail::bound_objects_visitor do_bind(this->data->bound_objects); visit_each(do_bind, BOOST_SIGNALS_NAMESPACE::get_inspectable_slot (f, BOOST_SIGNALS_NAMESPACE::tag_type(f))); create_connection(); } #ifdef __BORLANDC__ template
slot(F* f) : slot_function(f) { this->data.reset(new data_t); create_connection(); } #endif // __BORLANDC__ // We would have to enumerate all of the signalN classes here as friends // to make this private (as it otherwise should be). We can't name all of // them because we don't know how many there are. public: // Get the slot function to call the actual slot const SlotFunction& get_slot_function() const { return slot_function; } void release() const { data->watch_bound_objects.set_controlling(false); } private: slot(); // no default constructor slot& operator=(const slot&); // no assignment operator SlotFunction slot_function; }; } // end namespace boost #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #endif // BOOST_SIGNALS_SLOT_HEADER
slot.hpp
Page URL
File URL
Prev
14/15
Next
Download
( 5 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.