• Home
  • Raw
  • Download

Lines Matching defs:basic_pipebuf

100 struct basic_pipebuf : std::basic_streambuf<CharT, Traits>  struct
102 typedef basic_pipe<CharT, Traits> pipe_type;
104 typedef CharT char_type ;
105 typedef Traits traits_type;
106 typedef typename Traits::int_type int_type ;
107 typedef typename Traits::pos_type pos_type ;
108 typedef typename Traits::off_type off_type ;
110 constexpr static int default_buffer_size = BOOST_PROCESS_PIPE_SIZE;
113 basic_pipebuf() : _write(default_buffer_size), _read(default_buffer_size) in basic_pipebuf() argument
124 ~basic_pipebuf() in ~basic_pipebuf()
131 basic_pipebuf(pipe_type && p) : _pipe(std::move(p)), in basic_pipebuf() argument
139 basic_pipebuf(const pipe_type & p) : _pipe(p), in basic_pipebuf() argument
151 basic_pipebuf& operator=(pipe_type && p) in operator =()
157 basic_pipebuf& operator=(const pipe_type & p) in operator =()
163 int_type overflow(int_type ch = traits_type::eof()) override in overflow()
191 int sync() override { return this->_write_impl() ? 0 : -1; } in sync()
194 int_type underflow() override in underflow()
218 void pipe(pipe_type&& p) {_pipe = std::move(p); } in pipe()
220 void pipe(const pipe_type& p) {_pipe = p; } in pipe()
222 pipe_type & pipe() & {return _pipe;} in pipe()
224 const pipe_type &pipe() const & {return _pipe;} in pipe()
226 pipe_type && pipe() && {return std::move(_pipe);} in pipe()
229 bool is_open() const {return _pipe.is_open(); } in is_open()
232 basic_pipebuf<CharT, Traits>* open() in open()
241 basic_pipebuf<CharT, Traits>* open(const std::string & name) in open()
250 basic_pipebuf<CharT, Traits>* close() in close()
258 pipe_type _pipe;
259 std::vector<char_type> _write;
260 std::vector<char_type> _read;
262 bool _write_impl() in _write_impl()