/usr/include/boost/iostreams/detail
NameSizeModeActions
adapter/-0755rm
broken_overload_resolution/-0755rm
config/-0755rm
streambuf/-0755rm
absolute_path.hpp15980644editdlrm
access_control.hpp29080644editdlrm
add_facet.hpp15720644editdlrm
bool_trait_def.hpp19640644editdlrm
buffer.hpp74880644editdlrm
call_traits.hpp9810644editdlrm
char_traits.hpp25420644editdlrm
codecvt_helper.hpp72770644editdlrm
codecvt_holder.hpp19700644editdlrm
counted_array.hpp23500644editdlrm
current_directory.hpp23120644editdlrm
default_arg.hpp7000644editdlrm
dispatch.hpp16040644editdlrm
double_object.hpp39200644editdlrm
enable_if_stream.hpp12330644editdlrm
error.hpp15340644editdlrm
execute.hpp45260644editdlrm
file_handle.hpp10330644editdlrm
forward.hpp52190644editdlrm
fstream.hpp12620644editdlrm
functional.hpp57830644editdlrm
ios.hpp20600644editdlrm
iostream.hpp12880644editdlrm
is_dereferenceable.hpp24240644editdlrm
is_iterator_range.hpp11030644editdlrm
newline.hpp8690644editdlrm
optional.hpp32890644editdlrm
param_type.hpp8730644editdlrm
path.hpp59940644editdlrm
push.hpp74160644editdlrm
push_params.hpp7670644editdlrm
resolve.hpp84530644editdlrm
restrict_impl.hpp168980644editdlrm
select.hpp30950644editdlrm
select_by_size.hpp56620644editdlrm
streambuf.hpp12050644editdlrm
system_failure.hpp26610644editdlrm
template_params.hpp9670644editdlrm
translate_int_type.hpp20250644editdlrm
wrap_unwrap.hpp33280644editdlrm
Edit: /usr/include/boost/iostreams/detail/functional.hpp (5783B)
/* * 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) # 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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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: BOOST_DELETED_FUNCTION(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