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

std::basic_streambuf Class Template Reference

#include <std_streambuf.h>

Inheritance diagram for std::basic_streambuf:

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

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 ctype<char_type__ctype_type
typedef basic_streambuf<char_type,
traits_type
__streambuf_type

Public Methods

virtual ~basic_streambuf ()
locale pubimbue (const locale &__loc)
locale getloc () const
__streambuf_typepubsetbuf (char_type *__s, streamsize __n)
pos_type pubseekoff (off_type __off, ios_base::seekdir __way, ios_base::openmode __mode=ios_base::in|ios_base::out)
pos_type pubseekpos (pos_type __sp, ios_base::openmode __mode=ios_base::in|ios_base::out)
int pubsync ()
streamsize in_avail ()
int_type snextc ()
int_type sbumpc ()
int_type sgetc ()
streamsize sgetn (char_type *__s, streamsize __n)
int_type sputbackc (char_type __c)
int_type sungetc ()
int_type sputc (char_type __c)
streamsize sputn (const char_type *__s, streamsize __n)

Protected Methods

void _M_pback_create ()
void _M_pback_destroy ()
void _M_in_cur_move (off_type __n)
void _M_out_cur_move (off_type __n)
off_type _M_out_buf_size ()
void _M_set_indeterminate (void)
void _M_set_determinate (off_type __off)
bool _M_is_indeterminate (void)
 basic_streambuf ()
char_typeeback () const
char_typegptr () const
char_typeegptr () const
void gbump (int __n)
void setg (char_type *__gbeg, char_type *__gnext, char_type *__gend)
char_typepbase () const
char_typepptr () const
char_typeepptr () const
void pbump (int __n)
void setp (char_type *__pbeg, char_type *__pend)
virtual void imbue (const locale &__loc)
virtual basic_streambuf<char_type,
_Traits>* 
setbuf (char_type *, streamsize)
virtual pos_type seekoff (off_type, ios_base::seekdir, ios_base::openmode=ios_base::in|ios_base::out)
virtual pos_type seekpos (pos_type, ios_base::openmode=ios_base::in|ios_base::out)
virtual int sync ()
virtual streamsize showmanyc ()
virtual streamsize xsgetn (char_type *__s, streamsize __n)
virtual int_type underflow ()
virtual int_type uflow ()
virtual int_type pbackfail (int_type=traits_type::eof())
virtual streamsize xsputn (const char_type *__s, streamsize __n)
virtual int_type overflow (int_type=traits_type::eof())

Protected Attributes

char_type_M_buf
int_type _M_buf_size
int_type _M_buf_size_opt
bool _M_buf_unified
char_type_M_in_beg
char_type_M_in_cur
char_type_M_in_end
char_type_M_out_beg
char_type_M_out_cur
char_type_M_out_end
ios_base::openmode _M_mode
locale _M_buf_locale
bool _M_buf_locale_init
int_type _M_pback_size
char_type_M_pback
char_type_M_pback_cur_save
char_type_M_pback_end_save
bool _M_pback_init

Friends

class  basic_ios< char_type, traits_type >
class  basic_istream< char_type, traits_type >
class  basic_ostream< char_type, traits_type >
class  istreambuf_iterator< char_type, traits_type >
class  ostreambuf_iterator< char_type, traits_type >
streamsize __copy_streambufs (basic_ios< char_type, traits_type > &__ios, __streambuf_type *__sbin, __streambuf_type *__sbout)

template<typename _CharT, typename _Traits> class std::basic_streambuf


Member Typedef Documentation

template<typename _CharT, typename _Traits>
typedef ctype<char_type> std::basic_streambuf<_CharT, _Traits>::__ctype_type
 

Reimplemented in std::basic_filebuf.

Definition at line 66 of file std_streambuf.h.

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 67 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
typedef _CharT std::basic_streambuf<_CharT, _Traits>::char_type
 

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 59 of file std_streambuf.h.

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 61 of file std_streambuf.h.

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 63 of file std_streambuf.h.

Referenced by seekoff(), and seekpos().

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 62 of file std_streambuf.h.

Referenced by seekoff(), and seekpos().

template<typename _CharT, typename _Traits>
typedef _Traits std::basic_streambuf<_CharT, _Traits>::traits_type
 

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 60 of file std_streambuf.h.


Constructor & Destructor Documentation

template<typename _CharT, typename _Traits>
std::basic_streambuf<_CharT, _Traits>::~basic_streambuf<_CharT, _Traits> ( ) [inline, virtual]
 

Definition at line 270 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
std::basic_streambuf<_CharT, _Traits>::basic_streambuf<_CharT, _Traits> ( ) [inline, protected]
 

Definition at line 379 of file std_streambuf.h.


Member Function Documentation

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::_M_in_cur_move ( off_type __n ) [inline, protected]
 

Definition at line 177 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
bool std::basic_streambuf<_CharT, _Traits>::_M_is_indeterminate ( void ) [inline, protected]
 

Definition at line 258 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
off_type std::basic_streambuf<_CharT, _Traits>::_M_out_buf_size ( ) [inline, protected]
 

Definition at line 214 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::_M_out_cur_move ( off_type __n ) [inline, protected]
 

Definition at line 194 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::_M_pback_create ( ) [inline, protected]
 

Definition at line 134 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::_M_pback_destroy ( ) [inline, protected]
 

Definition at line 152 of file std_streambuf.h.

Referenced by std::basic_filebuf::xsgetn(), and std::basic_filebuf::xsputn().

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::_M_set_determinate ( off_type __off ) [inline, protected]
 

Definition at line 246 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::_M_set_indeterminate ( void ) [inline, protected]
 

Definition at line 237 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type * std::basic_streambuf<_CharT, _Traits>::eback ( ) const [inline, protected]
 

Definition at line 390 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type * std::basic_streambuf<_CharT, _Traits>::egptr ( ) const [inline, protected]
 

Definition at line 396 of file std_streambuf.h.

Referenced by in_avail().

template<typename _CharT, typename _Traits>
char_type * std::basic_streambuf<_CharT, _Traits>::epptr ( ) const [inline, protected]
 

Definition at line 419 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::gbump ( int __n ) [inline, protected]
 

Definition at line 399 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
locale std::basic_streambuf<_CharT, _Traits>::getloc ( ) const [inline]
 

Definition at line 290 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type * std::basic_streambuf<_CharT, _Traits>::gptr ( ) const [inline, protected]
 

Definition at line 393 of file std_streambuf.h.

Referenced by in_avail(), sgetc(), and std::basic_stringbuf::underflow().

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::imbue ( const locale & __loc ) [inline, protected, virtual]
 

Reimplemented in std::basic_filebuf.

Definition at line 436 of file std_streambuf.h.

Referenced by pubimbue().

template<typename _CharT, typename _Traits>
streamsize std::basic_streambuf<_CharT, _Traits>::in_avail ( ) [inline]
 

Definition at line 319 of file std_streambuf.h.

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 498 of file std_streambuf.h.

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 490 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type * std::basic_streambuf<_CharT, _Traits>::pbase ( ) const [inline, protected]
 

Definition at line 413 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::pbump ( int __n ) [inline, protected]
 

Definition at line 422 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type * std::basic_streambuf<_CharT, _Traits>::pptr ( ) const [inline, protected]
 

Definition at line 416 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
locale std::basic_streambuf<_CharT, _Traits>::pubimbue ( const locale & __loc ) [inline]
 

Definition at line 282 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
pos_type std::basic_streambuf<_CharT, _Traits>::pubseekoff ( off_type __off,
ios_base::seekdir __way,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [inline]
 

Definition at line 304 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
pos_type std::basic_streambuf<_CharT, _Traits>::pubseekpos ( pos_type __sp,
ios_base::openmode __mode = ios_base::in | ios_base::out ) [inline]
 

Definition at line 309 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
__streambuf_type * std::basic_streambuf<_CharT, _Traits>::pubsetbuf ( char_type * __s,
streamsize __n ) [inline]
 

Definition at line 300 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int std::basic_streambuf<_CharT, _Traits>::pubsync ( ) [inline]
 

Definition at line 314 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::sbumpc ( )
 

Referenced by snextc().

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 449 of file std_streambuf.h.

Referenced by pubseekoff().

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 454 of file std_streambuf.h.

Referenced by pubseekpos().

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 445 of file std_streambuf.h.

Referenced by pubsetbuf().

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::setg ( char_type * __gbeg,
char_type * __gnext,
char_type * __gend ) [inline, protected]
 

Definition at line 402 of file std_streambuf.h.

Referenced by _M_pback_create(), _M_pback_destroy(), std::basic_stringbuf::_M_really_sync(), _M_set_determinate(), and _M_set_indeterminate().

template<typename _CharT, typename _Traits>
void std::basic_streambuf<_CharT, _Traits>::setp ( char_type * __pbeg,
char_type * __pend ) [inline, protected]
 

Definition at line 425 of file std_streambuf.h.

Referenced by std::basic_stringbuf::_M_really_sync(), _M_set_determinate(), and _M_set_indeterminate().

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::sgetc ( ) [inline]
 

Definition at line 349 of file std_streambuf.h.

Referenced by snextc().

template<typename _CharT, typename _Traits>
streamsize std::basic_streambuf<_CharT, _Traits>::sgetn ( char_type * __s,
streamsize __n ) [inline]
 

Definition at line 360 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
streamsize std::basic_streambuf<_CharT, _Traits>::showmanyc ( void ) [inline, protected, virtual]
 

Reimplemented in std::basic_filebuf.

Definition at line 463 of file std_streambuf.h.

Referenced by in_avail().

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::snextc ( ) [inline]
 

Definition at line 339 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::sputbackc ( char_type __c )
 

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::sputc ( char_type __c )
 

template<typename _CharT, typename _Traits>
streamsize std::basic_streambuf<_CharT, _Traits>::sputn ( const char_type * __s,
streamsize __n ) [inline]
 

Definition at line 375 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::sungetc ( )
 

template<typename _CharT, typename _Traits>
int std::basic_streambuf<_CharT, _Traits>::sync ( void ) [inline, protected, virtual]
 

Reimplemented in std::basic_filebuf.

Definition at line 459 of file std_streambuf.h.

Referenced by pubsync().

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::uflow ( ) [inline, protected, virtual]
 

Definition at line 473 of file std_streambuf.h.

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

Reimplemented in std::basic_filebuf, and std::basic_stringbuf.

Definition at line 469 of file std_streambuf.h.

Referenced by sgetc(), and uflow().

template<typename _CharT, typename _Traits>
virtual streamsize std::basic_streambuf<_CharT, _Traits>::xsgetn ( char_type * __s,
streamsize __n ) [protected, virtual]
 

Reimplemented in std::basic_filebuf.

Referenced by sgetn().

template<typename _CharT, typename _Traits>
virtual streamsize std::basic_streambuf<_CharT, _Traits>::xsputn ( const char_type * __s,
streamsize __n ) [protected, virtual]
 

Reimplemented in std::basic_filebuf.

Referenced by sputn().


Friends And Related Function Documentation

template<typename _CharT, typename _Traits>
streamsize __copy_streambufs ( basic_ios< char_type, traits_type > & __ios,
__streambuf_type * __sbin,
__streambuf_type * __sbout ) [friend]
 

template<typename _CharT, typename _Traits>
friend class basic_ios< char_type, traits_type > [friend]
 

Definition at line 69 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
friend class basic_istream< char_type, traits_type > [friend]
 

Definition at line 70 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
friend class basic_ostream< char_type, traits_type > [friend]
 

Definition at line 71 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
friend class istreambuf_iterator< char_type, traits_type > [friend]
 

Definition at line 72 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
friend class ostreambuf_iterator< char_type, traits_type > [friend]
 

Definition at line 73 of file std_streambuf.h.


Member Data Documentation

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_buf [protected]
 

Definition at line 86 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
locale std::basic_streambuf<_CharT, _Traits>::_M_buf_locale [protected]
 

Definition at line 114 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
bool std::basic_streambuf<_CharT, _Traits>::_M_buf_locale_init [protected]
 

Definition at line 117 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::_M_buf_size [protected]
 

Definition at line 89 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::_M_buf_size_opt [protected]
 

Definition at line 92 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
bool std::basic_streambuf<_CharT, _Traits>::_M_buf_unified [protected]
 

Definition at line 96 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_in_beg [protected]
 

Definition at line 103 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_in_cur [protected]
 

Definition at line 104 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_in_end [protected]
 

Definition at line 105 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
ios_base::openmode std::basic_streambuf<_CharT, _Traits>::_M_mode [protected]
 

Definition at line 111 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_out_beg [protected]
 

Definition at line 106 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_out_cur [protected]
 

Definition at line 107 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_out_end [protected]
 

Definition at line 108 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_pback [protected]
 

Definition at line 125 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_pback_cur_save [protected]
 

Definition at line 126 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
char_type* std::basic_streambuf<_CharT, _Traits>::_M_pback_end_save [protected]
 

Definition at line 127 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
bool std::basic_streambuf<_CharT, _Traits>::_M_pback_init [protected]
 

Definition at line 128 of file std_streambuf.h.

template<typename _CharT, typename _Traits>
int_type std::basic_streambuf<_CharT, _Traits>::_M_pback_size [protected]
 

Definition at line 124 of file std_streambuf.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