A basic_iostream class that uses a fixed size character buffer as its formatting buffer. More...
#include <bufferstream.hpp>
Public Types | |
typedef std::basic_ios< CharT, CharTraits >::char_type | char_type |
typedef std::basic_ios < char_type, CharTraits > ::int_type | int_type |
typedef std::basic_ios < char_type, CharTraits > ::pos_type | pos_type |
typedef std::basic_ios < char_type, CharTraits > ::off_type | off_type |
typedef std::basic_ios < char_type, CharTraits > ::traits_type | traits_type |
Public Member Functions | |
basic_bufferstream (std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) | |
Constructor. More... | |
basic_bufferstream (CharT *buf, std::size_t length, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out) | |
Constructor. More... | |
~basic_bufferstream () | |
basic_bufferbuf< CharT, CharTraits > * | rdbuf () const |
Returns the address of the stored stream buffer. More... | |
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. More... | |
Private 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 basic_iostream class that uses a fixed size character buffer as its formatting buffer.
typedef std::basic_ios<CharT, CharTraits>::char_type boost::interprocess::basic_bufferstream< CharT, CharTraits >::char_type |
typedef std::basic_ios<char_type, CharTraits>::int_type boost::interprocess::basic_bufferstream< CharT, CharTraits >::int_type |
typedef std::basic_ios<char_type, CharTraits>::off_type boost::interprocess::basic_bufferstream< CharT, CharTraits >::off_type |
typedef std::basic_ios<char_type, CharTraits>::pos_type boost::interprocess::basic_bufferstream< CharT, CharTraits >::pos_type |
typedef std::basic_ios<char_type, CharTraits>::traits_type boost::interprocess::basic_bufferstream< CharT, CharTraits >::traits_type |
|
inline |
Constructor.
Does not throw.
|
inline |
Constructor.
Assigns formatting buffer. Does not throw.
|
inline |
|
inline |
Returns the pointer and size of the internal buffer.
Does not throw.
References boost::interprocess::basic_bufferbuf< CharT, CharTraits >::buffer().
|
inline |
Sets the underlying buffer to a new value.
Resets stream position. Does not throw.
References boost::interprocess::basic_bufferbuf< CharT, CharTraits >::buffer().
|
inline |
Returns the address of the stored stream buffer.