DriveHQ Start Menu
Cloud Drive Mapping
Folder Sync
True Drop Box
FTP/SFTP Hosting
Group Account
Team Anywhere
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
|
Cloud-to-Cloud Backup
|
DVR/Camera Backup
FTP, Email & Web Service
FTP/SFTP Hosting
|
Email Hosting
|
Web Hosting
|
Webcam Hosting
Other Products & Services
Team Anywhere
|
Connect to Remote PC
|
Cloud Surveillance
|
Virtual CCTV NVR
Quick Links
Security and Privacy
Customer Support
Service Manual
Use Cases
Group Account
Online Help
Support Forum
Contact Us
About DriveHQ
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
Personal Features
Personal Cloud Drive
Backup All Devices
Mobile APPs
Personal Web Hosting
Sub-Account (for Kids)
Home/PC/Kids Monitoring
Other Features
Team Anywhere (Remote Desktop Service)
CameraFTP Cloud Surveillance
Software
DriveHQ Drive Mapping Tool
DriveHQ FileManager
DriveHQ Online Backup
DriveHQ Team Anywhere for Windows (Beta)
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
/* * 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.) * * See http://www.boost.org/libs/iostreams for documentation. * File: boost/iostreams/detail/functional.hpp * Date: Sun Dec 09 05:38:03 MST 2007 * Copyright: 2007-2008 CodeRage, LLC * Author: Jonathan Turkanis * Contact: turkanis at coderage dot com * Defines several function objects and object generators for use with * execute_all() */ #ifndef BOOST_IOSTREAMS_DETAIL_FUNCTIONAL_HPP_INCLUDED #define BOOST_IOSTREAMS_DETAIL_FUNCTIONAL_HPP_INCLUDED #if defined(_MSC_VER) && (_MSC_VER >= 1020) # pragma once #endif #include
#include
// BOOST_IOS namespace boost { namespace iostreams { namespace detail { // Function objects and object generators for invoking // boost::iostreams::close template
class device_close_operation { public: typedef void result_type; device_close_operation(T& t, BOOST_IOS::openmode which) : t_(t), which_(which) { } void operator()() const { boost::iostreams::close(t_, which_); } private: device_close_operation& operator=(const device_close_operation&); T& t_; BOOST_IOS::openmode which_; }; template
class filter_close_operation { public: typedef void result_type; filter_close_operation(T& t, Sink& snk, BOOST_IOS::openmode which) : t_(t), snk_(snk), which_(which) { } void operator()() const { boost::iostreams::close(t_, snk_, which_); } private: filter_close_operation& operator=(const filter_close_operation&); T& t_; Sink& snk_; BOOST_IOS::openmode which_; }; template
device_close_operation
call_close(T& t, BOOST_IOS::openmode which) { return device_close_operation
(t, which); } template
filter_close_operation
call_close(T& t, Sink& snk, BOOST_IOS::openmode which) { return filter_close_operation
(t, snk, which); } // Function objects and object generators for invoking // boost::iostreams::detail::close_all template
class device_close_all_operation { public: typedef void result_type; device_close_all_operation(T& t) : t_(t) { } void operator()() const { detail::close_all(t_); } private: device_close_all_operation& operator=(const device_close_all_operation&); T& t_; }; template
class filter_close_all_operation { public: typedef void result_type; filter_close_all_operation(T& t, Sink& snk) : t_(t), snk_(snk) { } void operator()() const { detail::close_all(t_, snk_); } private: filter_close_all_operation& operator=(const filter_close_all_operation&); T& t_; Sink& snk_; }; template
device_close_all_operation
call_close_all(T& t) { return device_close_all_operation
(t); } template
filter_close_all_operation
call_close_all(T& t, Sink& snk) { return filter_close_all_operation
(t, snk); } // Function object and object generator for invoking a // member function void close(std::ios_base::openmode) template
class member_close_operation { public: typedef void result_type; member_close_operation(T& t, BOOST_IOS::openmode which) : t_(t), which_(which) { } void operator()() const { t_.close(which_); } private: member_close_operation& operator=(const member_close_operation&); T& t_; BOOST_IOS::openmode which_; }; template
member_close_operation
call_member_close(T& t, BOOST_IOS::openmode which) { return member_close_operation
(t, which); } // Function object and object generator for invoking a // member function void reset() template
class reset_operation { public: reset_operation(T& t) : t_(t) { } void operator()() const { t_.reset(); } private: reset_operation& operator=(const reset_operation&); T& t_; }; template
reset_operation
call_reset(T& t) { return reset_operation
(t); } // Function object and object generator for clearing a flag template
class clear_flags_operation { public: typedef void result_type; clear_flags_operation(T& t) : t_(t) { } void operator()() const { t_ = 0; } private: clear_flags_operation& operator=(const clear_flags_operation&); T& t_; }; template
clear_flags_operation
clear_flags(T& t) { return clear_flags_operation
(t); } // Function object and generator for flushing a buffer // Function object for use with execute_all() template
class flush_buffer_operation { public: typedef void result_type; flush_buffer_operation(Buffer& buf, Device& dev, bool flush) : buf_(buf), dev_(dev), flush_(flush) { } void operator()() const { if (flush_) buf_.flush(dev_); } private: flush_buffer_operation& operator=(const flush_buffer_operation&); Buffer& buf_; Device& dev_; bool flush_; }; template
flush_buffer_operation
flush_buffer(Buffer& buf, Device& dev, bool flush) { return flush_buffer_operation
(buf, dev, flush); } } } } // End namespaces detail, iostreams, boost. #endif // #ifndef BOOST_IOSTREAMS_DETAIL_FUNCTIONAL_HPP_INCLUDED
functional.hpp
Page URL
File URL
Prev
20/38
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.