Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::interprocess::basic_obufferstream< CharT, CharTraits > Class Template Reference

A basic_ostream class that uses a fixed size character buffer as its formatting buffer. More...

#include <bufferstream.hpp>

Inheritance diagram for boost::interprocess::basic_obufferstream< CharT, CharTraits >:
Collaboration diagram for boost::interprocess::basic_obufferstream< CharT, CharTraits >:

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)
 

Detailed Description

template<class CharT, class CharTraits>
class boost::interprocess::basic_obufferstream< CharT, CharTraits >

A basic_ostream class that uses a fixed size character buffer as its formatting buffer.

Member Typedef Documentation

template<class CharT , class CharTraits >
typedef std::basic_ios<CharT, CharTraits>::char_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::char_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::int_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::int_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::off_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::off_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::pos_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::pos_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::traits_type boost::interprocess::basic_obufferstream< CharT, CharTraits >::traits_type

Constructor & Destructor Documentation

template<class CharT , class CharTraits >
boost::interprocess::basic_obufferstream< CharT, CharTraits >::basic_obufferstream ( std::ios_base::openmode  mode = std::ios_base::out)
inline

Constructor.

Does not throw.

template<class CharT , class CharTraits >
boost::interprocess::basic_obufferstream< CharT, CharTraits >::basic_obufferstream ( CharT *  buf,
std::size_t  length,
std::ios_base::openmode  mode = std::ios_base::out 
)
inline

Constructor.

Assigns formatting buffer. Does not throw.

template<class CharT , class CharTraits >
boost::interprocess::basic_obufferstream< CharT, CharTraits >::~basic_obufferstream ( )
inline

Member Function Documentation

template<class CharT , class CharTraits >
std::pair<CharT *, std::size_t> boost::interprocess::basic_obufferstream< CharT, CharTraits >::buffer ( ) const
inline

Returns the pointer and size of the internal buffer.

Does not throw.

References boost::interprocess::basic_bufferbuf< CharT, CharTraits >::buffer().

template<class CharT , class CharTraits >
void boost::interprocess::basic_obufferstream< CharT, CharTraits >::buffer ( CharT *  buf,
std::size_t  length 
)
inline

Sets the underlying buffer to a new value.

Resets stream position. Does not throw.

References boost::interprocess::basic_bufferbuf< CharT, CharTraits >::buffer().

template<class CharT , class CharTraits >
basic_bufferbuf<CharT, CharTraits>* boost::interprocess::basic_obufferstream< CharT, CharTraits >::rdbuf ( ) const
inline

Returns the address of the stored stream buffer.


The documentation for this class was generated from the following files: