A basic_ostream 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_obufferstream (std::ios_base::openmode mode=std::ios_base::out) | |
Constructor. More... | |
basic_obufferstream (CharT *buf, std::size_t length, std::ios_base::openmode mode=std::ios_base::out) | |
Constructor. More... | |
~basic_obufferstream () | |
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_ostream class that uses a fixed size character buffer as its formatting buffer.
typedef std::basic_ios<CharT, CharTraits>::char_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::char_type |
typedef std::basic_ios<char_type, CharTraits>::int_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::int_type |
typedef std::basic_ios<char_type, CharTraits>::off_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::off_type |
typedef std::basic_ios<char_type, CharTraits>::pos_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::pos_type |
typedef std::basic_ios<char_type, CharTraits>::traits_type boost::interprocess::basic_obufferstream< 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.