/usr/include/boost/iostreams
NameSizeModeActions
detail/-0755rm
device/-0755rm
filter/-0755rm
categories.hpp47370644editdlrm
chain.hpp217250644editdlrm
char_traits.hpp24330644editdlrm
checked_operations.hpp48990644editdlrm
close.hpp70120644editdlrm
code_converter.hpp144290644editdlrm
combine.hpp86860644editdlrm
compose.hpp181550644editdlrm
concepts.hpp39570644editdlrm
constants.hpp13630644editdlrm
copy.hpp94300644editdlrm
filtering_stream.hpp69700644editdlrm
filtering_streambuf.hpp30810644editdlrm
flush.hpp32050644editdlrm
get.hpp5450644editdlrm
imbue.hpp22210644editdlrm
input_sequence.hpp19910644editdlrm
invert.hpp55560644editdlrm
operations.hpp9400644editdlrm
operations_fwd.hpp10360644editdlrm
optimal_buffer_size.hpp24330644editdlrm
output_sequence.hpp20050644editdlrm
pipeline.hpp36460644editdlrm
positioning.hpp41020644editdlrm
put.hpp5460644editdlrm
putback.hpp5570644editdlrm
read.hpp73030644editdlrm
restrict.hpp9450644editdlrm
seek.hpp54570644editdlrm
skip.hpp38720644editdlrm
slice.hpp10180644editdlrm
stream.hpp61330644editdlrm
stream_buffer.hpp39040644editdlrm
tee.hpp74950644editdlrm
traits.hpp118460644editdlrm
traits_fwd.hpp20200644editdlrm
write.hpp48560644editdlrm
Edit: /usr/include/boost/iostreams/pipeline.hpp (3646B)
// (C) Copyright 2008 CodeRage, LLC (turkanis at coderage dot com) // (C) Copyright 2003-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_PIPABLE_HPP_INCLUDED #define BOOST_IOSTREAMS_PIPABLE_HPP_INCLUDED #if defined(_MSC_VER) # pragma once #endif #include // BOOST_MSVC. #include #include #include #include #include #include #include #define BOOST_IOSTREAMS_PIPABLE(filter, arity) \ template< BOOST_PP_ENUM_PARAMS(arity, typename T) \ BOOST_PP_COMMA_IF(arity) typename Component> \ ::boost::iostreams::pipeline< \ ::boost::iostreams::detail::pipeline_segment< \ filter BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, T) \ >, \ Component \ > operator|( const filter BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, T)& f, \ const Component& c ) \ { \ typedef ::boost::iostreams::detail::pipeline_segment< \ filter BOOST_IOSTREAMS_TEMPLATE_ARGS(arity, T) \ > segment; \ return ::boost::iostreams::pipeline \ (segment(f), c); \ } \ /**/ namespace boost { namespace iostreams { template struct pipeline; namespace detail { #if BOOST_WORKAROUND(__BORLANDC__, < 0x600) template struct is_pipeline : mpl::false_ { }; template struct is_pipeline< pipeline > : mpl::true_ { }; #endif template class pipeline_segment { public: pipeline_segment(const Component& component) : component_(component) { } template void for_each(Fn fn) const { fn(component_); } template void push(Chain& chn) const { chn.push(component_); } private: pipeline_segment operator=(const pipeline_segment&); const Component& component_; }; } // End namespace detail. //------------------Definition of Pipeline------------------------------------// template struct pipeline : Pipeline { typedef Pipeline pipeline_type; typedef Component component_type; pipeline(const Pipeline& p, const Component& component) : Pipeline(p), component_(component) { } template void for_each(Fn fn) const { Pipeline::for_each(fn); fn(component_); } template void push(Chain& chn) const { Pipeline::push(chn); chn.push(component_); } const Pipeline& tail() const { return *this; } const Component& head() const { return component_; } private: pipeline operator=(const pipeline&); const Component& component_; }; template pipeline, Component> operator|(const pipeline& p, const Component& cmp) { BOOST_STATIC_ASSERT(is_filter::value); return pipeline, Component>(p, cmp); } } } // End namespaces iostreams, boost. #endif // #ifndef BOOST_IOSTREAMS_PIPABLE_HPP_INCLUDED