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_ibufferstream< CharT, CharTraits > Class Template Reference

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

#include <bufferstream.hpp>

Inheritance diagram for boost::interprocess::basic_ibufferstream< CharT, CharTraits >:
Collaboration diagram for boost::interprocess::basic_ibufferstream< 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_ibufferstream (std::ios_base::openmode mode=std::ios_base::in)
 Constructor. More...
 
 basic_ibufferstream (const CharT *buf, std::size_t length, std::ios_base::openmode mode=std::ios_base::in)
 Constructor. More...
 
 ~basic_ibufferstream ()
 
basic_bufferbuf< CharT,
CharTraits > * 
rdbuf () const
 Returns the address of the stored stream buffer. More...
 
std::pair< const CharT
*, std::size_t > 
buffer () const
 Returns the pointer and size of the internal buffer. More...
 
void buffer (const CharT *buf, std::size_t length)
 Sets the underlying buffer to a new value. More...
 

Private Member Functions

void buffer (CharT *buf, std::size_t length)
 Sets the underlying buffer to a new value Does not throw. More...
 
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_ibufferstream< CharT, CharTraits >

A basic_istream 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_ibufferstream< CharT, CharTraits >::char_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::int_type boost::interprocess::basic_ibufferstream< CharT, CharTraits >::int_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::off_type boost::interprocess::basic_ibufferstream< CharT, CharTraits >::off_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::pos_type boost::interprocess::basic_ibufferstream< CharT, CharTraits >::pos_type
template<class CharT , class CharTraits >
typedef std::basic_ios<char_type, CharTraits>::traits_type boost::interprocess::basic_ibufferstream< CharT, CharTraits >::traits_type

Constructor & Destructor Documentation

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

Constructor.

Does not throw.

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

Constructor.

Assigns formatting buffer. Does not throw.

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

Member Function Documentation

template<class CharT , class CharTraits >
std::pair<const CharT *, std::size_t> boost::interprocess::basic_ibufferstream< 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_ibufferstream< CharT, CharTraits >::buffer ( const 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_ibufferstream< CharT, CharTraits >::rdbuf ( ) const
inline

Returns the address of the stored stream buffer.


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