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

Input memory stream template. More...

#include <memstream.hh>

List of all members.

Public Types

typedef _CharT char_type
 Character data type.
typedef _Traits traits_type
 Trait data type.
typedef traits_type::int_type int_type
 Integer data 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
 Stream buffer type.
typedef std::basic_istream
< char_type, traits_type
__istream_type
 Input stream type.

Public Member Functions

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


Detailed Description

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

Input memory stream template.

Input 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_imemstream< _CharT, _Traits >::basic_imemstream ( std::ios_base::openmode  __mode = std::ios_base::in  )  [inline, explicit]

Construct a closed memory dtream

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

Construct a memory input stream and assign a buffer to the stream.

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

Destructor.

Destroy a memory input stream.


Member Function Documentation

template<typename _CharT, typename _Traits = std::char_traits<_CharT>>
__membuf_type* basic_imemstream< _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:04 2009 for dmt by  doxygen 1.5.4