/
usr
/
include
/
boost
/
iostreams
/
/usr/include/boost/iostreams
mkdir
upload
Name
Size
Mode
Actions
detail/
-
0755
rm
device/
-
0755
rm
filter/
-
0755
rm
categories.hpp
4737
0644
edit
dl
rm
chain.hpp
21725
0644
edit
dl
rm
char_traits.hpp
2433
0644
edit
dl
rm
checked_operations.hpp
4899
0644
edit
dl
rm
close.hpp
7012
0644
edit
dl
rm
code_converter.hpp
14429
0644
edit
dl
rm
combine.hpp
8686
0644
edit
dl
rm
compose.hpp
18155
0644
edit
dl
rm
concepts.hpp
3957
0644
edit
dl
rm
constants.hpp
1363
0644
edit
dl
rm
copy.hpp
9430
0644
edit
dl
rm
filtering_stream.hpp
6970
0644
edit
dl
rm
filtering_streambuf.hpp
3081
0644
edit
dl
rm
flush.hpp
3205
0644
edit
dl
rm
get.hpp
545
0644
edit
dl
rm
imbue.hpp
2221
0644
edit
dl
rm
input_sequence.hpp
1991
0644
edit
dl
rm
invert.hpp
5556
0644
edit
dl
rm
operations.hpp
940
0644
edit
dl
rm
operations_fwd.hpp
1036
0644
edit
dl
rm
optimal_buffer_size.hpp
2433
0644
edit
dl
rm
output_sequence.hpp
2005
0644
edit
dl
rm
pipeline.hpp
3646
0644
edit
dl
rm
positioning.hpp
4102
0644
edit
dl
rm
put.hpp
546
0644
edit
dl
rm
putback.hpp
557
0644
edit
dl
rm
read.hpp
7303
0644
edit
dl
rm
restrict.hpp
945
0644
edit
dl
rm
seek.hpp
5457
0644
edit
dl
rm
skip.hpp
3872
0644
edit
dl
rm
slice.hpp
1018
0644
edit
dl
rm
stream.hpp
6133
0644
edit
dl
rm
stream_buffer.hpp
3904
0644
edit
dl
rm
tee.hpp
7495
0644
edit
dl
rm
traits.hpp
11846
0644
edit
dl
rm
traits_fwd.hpp
2020
0644
edit
dl
rm
write.hpp
4856
0644
edit
dl
rm
Edit:
/usr/include/boost/iostreams/filtering_stream.hpp
(6970B)
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2004-2007 Jonathan Turkanis // 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. #ifndef BOOST_IOSTREAMS_FILTER_STREAM_HPP_INCLUDED #define BOOST_IOSTREAMS_FILTER_STREAM_HPP_INCLUDED #if defined(_MSC_VER) # pragma once #endif #include <memory> // allocator. #include <boost/iostreams/detail/access_control.hpp> #include <boost/iostreams/detail/char_traits.hpp> #include <boost/iostreams/detail/iostream.hpp> // standard streams. #include <boost/iostreams/detail/push.hpp> #include <boost/iostreams/detail/select.hpp> #include <boost/iostreams/detail/streambuf.hpp> // pubsync. #include <boost/iostreams/filtering_streambuf.hpp> #include <boost/mpl/and.hpp> #include <boost/mpl/bool.hpp> #include <boost/static_assert.hpp> #include <boost/type_traits/is_convertible.hpp> // Must come last. #include <boost/iostreams/detail/config/disable_warnings.hpp> // MSVC. namespace boost { namespace iostreams { //--------------Definition of filtered_istream--------------------------------// namespace detail { template<typename Mode, typename Ch, typename Tr> struct filtering_stream_traits { typedef typename iostreams::select< // Disambiguation for Tru64 mpl::and_< is_convertible<Mode, input>, is_convertible<Mode, output> >, BOOST_IOSTREAMS_BASIC_IOSTREAM(Ch, Tr), is_convertible<Mode, input>, BOOST_IOSTREAMS_BASIC_ISTREAM(Ch, Tr), else_, BOOST_IOSTREAMS_BASIC_OSTREAM(Ch, Tr) >::type stream_type; typedef typename iostreams::select< // Dismbiguation required for Tru64. mpl::and_< is_convertible<Mode, input>, is_convertible<Mode, output> >, iostream_tag, is_convertible<Mode, input>, istream_tag, else_, ostream_tag >::type stream_tag; }; #if defined(BOOST_MSVC) && (BOOST_MSVC == 1700) # pragma warning(push) // https://connect.microsoft.com/VisualStudio/feedback/details/733720/ # pragma warning(disable: 4250) #endif template<typename Chain, typename Access> class filtering_stream_base : public access_control< boost::iostreams::detail::chain_client<Chain>, Access >, public filtering_stream_traits< typename Chain::mode, typename Chain::char_type, typename Chain::traits_type >::stream_type { public: typedef Chain chain_type; typedef access_control< boost::iostreams::detail::chain_client<Chain>, Access > client_type; protected: typedef typename filtering_stream_traits< typename Chain::mode, typename Chain::char_type, typename Chain::traits_type >::stream_type stream_type; filtering_stream_base() : stream_type(0) { this->set_chain(&chain_); } private: void notify() { this->rdbuf(chain_.empty() ? 0 : &chain_.front()); } Chain chain_; }; #if defined(BOOST_MSVC) && (BOOST_MSVC == 1700) # pragma warning(pop) #endif } // End namespace detail. // // Macro: BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(name_, chain_type_, default_char_) // Description: Defines a template derived from std::basic_streambuf which uses // a chain to perform i/o. The template has the following parameters: // Mode - the i/o mode. // Ch - The character type. // Tr - The character traits type. // Alloc - The allocator type. // Access - Indicates accessibility of the chain interface; must be either // public_ or protected_; defaults to public_. // Macro parameters: // name_ - The name of the template to be defined. // chain_type_ - The name of the chain template. // default_char_ - The default value for the char template parameter. // #define BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(name_, chain_type_, default_char_) \ template< typename Mode, \ typename Ch = default_char_, \ typename Tr = BOOST_IOSTREAMS_CHAR_TRAITS(Ch), \ typename Alloc = std::allocator<Ch>, \ typename Access = public_ > \ class name_ \ : public boost::iostreams::detail::filtering_stream_base< \ chain_type_<Mode, Ch, Tr, Alloc>, Access \ > \ { \ public: \ typedef Ch char_type; \ struct category \ : Mode, \ closable_tag, \ detail::filtering_stream_traits<Mode, Ch, Tr>::stream_tag \ { }; \ BOOST_IOSTREAMS_STREAMBUF_TYPEDEFS(Tr) \ typedef Mode mode; \ typedef chain_type_<Mode, Ch, Tr, Alloc> chain_type; \ name_() { } \ BOOST_IOSTREAMS_DEFINE_PUSH_CONSTRUCTOR(name_, mode, Ch, push_impl) \ ~name_() { \ if (this->is_complete()) \ this->rdbuf()->BOOST_IOSTREAMS_PUBSYNC(); \ } \ private: \ typedef access_control< \ boost::iostreams::detail::chain_client< \ chain_type_<Mode, Ch, Tr, Alloc> \ >, \ Access \ > client_type; \ template<typename T> \ void push_impl(const T& t BOOST_IOSTREAMS_PUSH_PARAMS()) \ { client_type::push(t BOOST_IOSTREAMS_PUSH_ARGS()); } \ }; \ /**/ #if defined(BOOST_MSVC) && (BOOST_MSVC == 1700) # pragma warning(push) // https://connect.microsoft.com/VisualStudio/feedback/details/733720/ # pragma warning(disable: 4250) #endif BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(filtering_stream, boost::iostreams::chain, char) BOOST_IOSTREAMS_DEFINE_FILTER_STREAM(wfiltering_stream, boost::iostreams::chain, wchar_t) #if defined(BOOST_MSVC) && (BOOST_MSVC == 1700) # pragma warning(pop) #endif typedef filtering_stream<input> filtering_istream; typedef filtering_stream<output> filtering_ostream; typedef wfiltering_stream<input> filtering_wistream; typedef wfiltering_stream<output> filtering_wostream; //----------------------------------------------------------------------------// } } // End namespace iostreams, boost #include <boost/iostreams/detail/config/enable_warnings.hpp> // MSVC #endif // #ifndef BOOST_IOSTREAMS_FILTER_STREAM_HPP_INCLUDED
Save
cmd:
run