A streambuf class that controls the transmission of elements to and from a basic_xbufferstream. More...
#include <bufferstream.hpp>
Public Types | |
typedef CharT | char_type |
typedef CharTraits::int_type | int_type |
typedef CharTraits::pos_type | pos_type |
typedef CharTraits::off_type | off_type |
typedef CharTraits | traits_type |
typedef std::basic_streambuf < char_type, traits_type > | base_t |
Public Member Functions | |
basic_bufferbuf (std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) | |
Constructor. More... | |
basic_bufferbuf (CharT *buf, std::size_t length, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) | |
Constructor. More... | |
virtual | ~basic_bufferbuf () |
std::pair< CharT *, std::size_t > | buffer () const |
Returns the pointer and size of the internal buffer. More... | |
void | buffer (CharT *buf, std::size_t length) |
Sets the underlying buffer to a new value Does not throw. More... | |
Protected Member Functions | |
virtual int_type | underflow () |
virtual int_type | pbackfail (int_type c=CharTraits::eof()) |
virtual int_type | overflow (int_type c=CharTraits::eof()) |
virtual pos_type | seekoff (off_type off, std::ios_base::seekdir dir, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) |
virtual pos_type | seekpos (pos_type pos, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) |
A streambuf class that controls the transmission of elements to and from a basic_xbufferstream.
The elements are transmitted from a to a fixed size buffer
typedef std::basic_streambuf<char_type, traits_type> boost::interprocess::basic_bufferbuf< CharT, CharTraits >::base_t |
typedef CharT boost::interprocess::basic_bufferbuf< CharT, CharTraits >::char_type |
typedef CharTraits::int_type boost::interprocess::basic_bufferbuf< CharT, CharTraits >::int_type |
typedef CharTraits::off_type boost::interprocess::basic_bufferbuf< CharT, CharTraits >::off_type |
typedef CharTraits::pos_type boost::interprocess::basic_bufferbuf< CharT, CharTraits >::pos_type |
typedef CharTraits boost::interprocess::basic_bufferbuf< CharT, CharTraits >::traits_type |
|
inlineexplicit |
Constructor.
Does not throw.
|
inlineexplicit |
Constructor.
Assigns formatting buffer. Does not throw.
|
inlinevirtual |
|
inline |
Returns the pointer and size of the internal buffer.
Does not throw.
Referenced by boost::interprocess::basic_ibufferstream< CharT, CharTraits >::buffer(), boost::interprocess::basic_obufferstream< CharT, CharTraits >::buffer(), and boost::interprocess::basic_bufferstream< CharT, CharTraits >::buffer().
|
inline |
Sets the underlying buffer to a new value Does not throw.
|
inlineprotectedvirtual |
References boost::multiprecision::backends::c, boost::asio::error::eof, and boost::out.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
References boost::asio::end, boost::flyweights::in, boost::math::concepts::mode(), boost::n, and boost::out.
Referenced by boost::interprocess::basic_bufferbuf< CharT, CharTraits >::seekpos().
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
References boost::asio::error::eof.