basic_omemstream< _CharT, _Traits > Class Template Reference
[Shared memory buffering]

Output memory stream template. More...

#include <memstream.hh>

List of all members.

Public Types

typedef _CharT char_type
 Character type.
typedef _Traits traits_type
 Traits type.
typedef traits_type::int_type int_type
 Integer type.
typedef traits_type::pos_type pos_type
 Position type.
typedef traits_type::off_type off_type
 Offset type.
typedef basic_membuf< _CharT,
_Traits > 
__membuf_type
 Memory stream buffer data type.
typedef std::basic_ostream
< char_type, traits_type
__ostream_type
 Output memory stream data type.

Public Member Functions

 basic_omemstream (std::ios_base::openmode __mode=std::ios_base::out)
 basic_omemstream (char_type *__buf, int_type __len, std::ios_base::openmode __mode=std::ios_base::out)
 ~basic_omemstream ()
__membuf_typerdbuf () const
 Get a streambuf pointer.


Detailed Description

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
class basic_omemstream< _CharT, _Traits >

Output memory stream template.

Output memory stream template using the stream buffer defined above.

Author:
John Zweizig
Version:
1.1; Last modified March 4, 2008

Constructor & Destructor Documentation

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
basic_omemstream< _CharT, _Traits >::basic_omemstream ( std::ios_base::openmode  __mode = std::ios_base::out  )  [inline, explicit]

Construct an output memory stream with no associated buffer.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
basic_omemstream< _CharT, _Traits >::basic_omemstream ( char_type __buf,
int_type  __len,
std::ios_base::openmode  __mode = std::ios_base::out 
) [inline]

Construct an output memory stream and associate a buffer with the specified length.

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
basic_omemstream< _CharT, _Traits >::~basic_omemstream (  )  [inline]

Destroy an output memory stream.


Member Function Documentation

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
__membuf_type* basic_omemstream< _CharT, _Traits >::rdbuf (  )  const [inline]

Get a streambuf pointer.

Get the memory stream buffer associated with this stream.

Returns:
Pointer to the stream buffer.


The documentation for this class was generated from the following file:
Generated on Sun Mar 8 19:21:05 2009 for dmt by  doxygen 1.5.4