Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

std::basic_stringbuf Class Template Reference

#include <std_sstream.h>

Inheritance diagram for std::basic_stringbuf:

Inheritance graph
[legend]
Collaboration diagram for std::basic_stringbuf:

Collaboration graph
[legend]
List of all members.

Public Types

typedef _CharT char_type
typedef _Traits traits_type
typedef traits_type::int_type int_type
typedef traits_type::pos_type pos_type
typedef traits_type::off_type off_type
typedef basic_streambuf<char_type,
traits_type
__streambuf_type
typedef basic_string<char_type,
_Traits, _Alloc
__string_type
typedef __string_type::size_type __size_type

Public Methods

 basic_stringbuf (ios_base::openmode __mode=ios_base::in|ios_base::out)
 basic_stringbuf (const __string_type &__str, ios_base::openmode __mode=ios_base::in|ios_base::out)
__string_type str () const
void str (const __string_type &__s)

Protected Methods

void _M_stringbuf_init (ios_base::openmode __mode)
virtual int_type underflow ()
virtual int_type pbackfail (int_type __c=traits_type::eof())
virtual int_type overflow (int_type __c=traits_type::eof())
virtual __streambuf_typesetbuf (char_type *__s, streamsize __n)
virtual pos_type seekoff (off_type __off, ios_base::seekdir __way, ios_base::openmode __mode=ios_base::in|ios_base::out)
virtual pos_type seekpos (pos_type __sp, ios_base::openmode __mode=ios_base::in|ios_base::out)
virtual int _M_really_sync (__size_type __i, __size_type __o)

Private Attributes

__string_type _M_string

template<typename _CharT, typename _Traits, typename _Alloc> class std::basic_stringbuf


Member Typedef Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
typedef __string_type::size_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::__size_type
 

Definition at line 58 of file std_sstream.h.

Referenced by str().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef basic_streambuf<char_type, traits_type> std::basic_stringbuf<_CharT, _Traits, _Alloc>::__streambuf_type
 

Reimplemented from std::basic_streambuf.

Definition at line 56 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef basic_string<char_type, _Traits, _Alloc> std::basic_stringbuf<_CharT, _Traits, _Alloc>::__string_type
 

Definition at line 57 of file std_sstream.h.

Referenced by setbuf(), and str().

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _CharT std::basic_stringbuf<_CharT, _Traits, _Alloc>::char_type
 

Reimplemented from std::basic_streambuf.

Definition at line 49 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef traits_type::int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::int_type
 

Reimplemented from std::basic_streambuf.

Definition at line 51 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef traits_type::off_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::off_type
 

Reimplemented from std::basic_streambuf.

Definition at line 53 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef traits_type::pos_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::pos_type
 

Reimplemented from std::basic_streambuf.

Definition at line 52 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
typedef _Traits std::basic_stringbuf<_CharT, _Traits, _Alloc>::traits_type
 

Reimplemented from std::basic_streambuf.

Definition at line 50 of file std_sstream.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_stringbuf<_CharT, _Traits, _Alloc>::basic_stringbuf<_CharT, _Traits, _Alloc> ( ios_base::openmode __mode = ios_base::in | ios_base::out ) [inline, explicit]
 

Definition at line 67 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
std::basic_stringbuf<_CharT, _Traits, _Alloc>::basic_stringbuf<_CharT, _Traits, _Alloc> ( const __string_type & __str,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [inline, explicit]
 

Definition at line 72 of file std_sstream.h.


Member Function Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
int std::basic_stringbuf<_CharT, _Traits, _Alloc>::_M_really_sync ( __size_type __i,
__size_type __o ) [inline, protected, virtual]
 

Definition at line 169 of file std_sstream.h.

Referenced by _M_stringbuf_init(), and setbuf().

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_stringbuf<_CharT, _Traits, _Alloc>::_M_stringbuf_init ( ios_base::openmode __mode ) [inline, protected]
 

Definition at line 106 of file std_sstream.h.

Referenced by basic_stringbuf(), and str().

template<typename _CharT, typename _Traits, typename _Alloc>
virtual int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::overflow ( int_type __c = traits_type::eof() ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits, typename _Alloc>
virtual int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::pbackfail ( int_type __c = traits_type::eof() ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits, typename _Alloc>
virtual pos_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::seekoff ( off_type __off,
ios_base::seekdir __way,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits, typename _Alloc>
virtual pos_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::seekpos ( pos_type __sp,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [protected, virtual]
 

Reimplemented from std::basic_streambuf.

template<typename _CharT, typename _Traits, typename _Alloc>
__streambuf_type * std::basic_stringbuf<_CharT, _Traits, _Alloc>::setbuf ( char_type * __s,
streamsize __n ) [inline, protected, virtual]
 

Reimplemented from std::basic_streambuf.

Definition at line 144 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
void std::basic_stringbuf<_CharT, _Traits, _Alloc>::str ( const __string_type & __s ) [inline]
 

Definition at line 97 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
__string_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::str ( ) const [inline]
 

Definition at line 79 of file std_sstream.h.

template<typename _CharT, typename _Traits, typename _Alloc>
int_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::underflow ( void ) [inline, protected, virtual]
 

Reimplemented from std::basic_streambuf.

Definition at line 129 of file std_sstream.h.


Member Data Documentation

template<typename _CharT, typename _Traits, typename _Alloc>
__string_type std::basic_stringbuf<_CharT, _Traits, _Alloc>::_M_string [private]
 

Definition at line 62 of file std_sstream.h.


The documentation for this class was generated from the following file:
Generated at Tue May 1 16:30:07 2001 for libstdc++-v3 by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001