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_SIGNAL_BASE_HEADER #define BOOST_SIGNALS_SIGNAL_BASE_HEADER #include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_PREFIX #endif namespace boost { namespace BOOST_SIGNALS_NAMESPACE { namespace detail { // Must be constructed before calling the slots, because it safely // manages call depth class BOOST_SIGNALS_DECL call_notification { public: call_notification(const shared_ptr
&); ~call_notification(); shared_ptr
impl; }; // Implementation of base class for all signals. It handles the // management of the underlying slot lists. class BOOST_SIGNALS_DECL signal_base_impl { public: friend class call_notification; typedef function2
compare_type; // Make sure that an exception does not cause the "clearing" flag to // remain set class temporarily_set_clearing { public: temporarily_set_clearing(signal_base_impl* b) : base(b) { base->flags.clearing = true; } ~temporarily_set_clearing() { base->flags.clearing = false; } private: signal_base_impl* base; }; friend class temporarily_set_clearing; signal_base_impl(const compare_type&, const any&); ~signal_base_impl(); // Disconnect all slots connected to this signal void disconnect_all_slots(); // Are there any connected slots? bool empty() const; // The number of connected slots std::size_t num_slots() const; // Disconnect all slots in the given group void disconnect(const stored_group&); // We're being notified that a slot has disconnected static void slot_disconnected(void* obj, void* data); connection connect_slot(const any& slot, const stored_group& name, shared_ptr
data, connect_position at); private: // Remove all of the slots that have been marked "disconnected" void remove_disconnected_slots() const; public: // Our call depth when invoking slots (> 1 when we have a loop) mutable int call_depth; struct { // True if some slots have disconnected, but we were not able to // remove them from the list of slots because there are valid // iterators into the slot list mutable bool delayed_disconnect:1; // True if we are disconnecting all disconnected slots bool clearing:1; } flags; // Slots mutable named_slot_map slots_; any combiner_; // Types typedef named_slot_map::iterator iterator; }; class BOOST_SIGNALS_DECL signal_base : public noncopyable { public: typedef signal_base_impl::compare_type compare_type; friend class call_notification; signal_base(const compare_type& comp, const any& combiner); ~signal_base(); public: // Disconnect all slots connected to this signal void disconnect_all_slots() { impl->disconnect_all_slots(); } // Are there any connected slots? bool empty() const { return impl->empty(); } // How many slots are connected? std::size_t num_slots() const { return impl->num_slots(); } protected: connection connect_slot(const any& slot, const stored_group& name, shared_ptr
data, connect_position at) { return impl->connect_slot(slot, name, data, at); } typedef named_slot_map::iterator iterator; shared_ptr
impl; }; } // end namespace detail } // end namespace BOOST_SIGNALS_NAMESPACE } // end namespace boost #ifdef BOOST_HAS_ABI_HEADERS # include BOOST_ABI_SUFFIX #endif #endif // BOOST_SIGNALS_SIGNAL_BASE_HEADER
signal_base.hpp
Page URL
File URL
Prev
4/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.