basic_streambuf< _CharT, _Traits > Class Template Reference

#include <_streambuf.h>

Inheritance diagram for basic_streambuf< _CharT, _Traits >:

basic_filebuf< _CharT, _Traits > basic_stringbuf< _CharT, _Traits, _Alloc > List of all members.

Public Types

typedef _CharT char_type
typedef _Traits::int_type int_type
typedef _Traits::pos_type pos_type
typedef _Traits::off_type off_type
typedef _Traits traits_type

Public Member Functions

virtual ~basic_streambuf ()
char_type_M_eback () const
char_type_M_gptr () const
char_type_M_egptr () const
void _M_gbump (int __n)
void _M_setg (char_type *__gbegin, char_type *__gnext, char_type *__gend)
basic_streambuf< _CharT, _Traits > * pubsetbuf (char_type *__s, streamsize __n)
pos_type pubseekoff (off_type __offset, ios_base::seekdir __way, ios_base::openmode __mod=ios_base::in|ios_base::out)
pos_type pubseekpos (pos_type __sp, ios_base::openmode __mod=ios_base::in|ios_base::out)
int pubsync ()
int_type sputc (char_type __c)
streamsize sputn (const char_type *__s, streamsize __n)
streamsize _M_sputnc (char_type __c, streamsize __n)
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 ()
locale pubimbue (const locale &)
locale getloc () const
void stossc ()

Protected Member Functions

 basic_streambuf ()
char_typeeback () const
char_typegptr () const
char_typeegptr () const
void gbump (int __n)
void setg (char_type *__gbegin, char_type *__gnext, char_type *__gend)
char_typepbase () const
char_typepptr () const
char_typeepptr () const
void pbump (int __n)
void setp (char_type *__pbegin, char_type *__pend)
virtual basic_streambuf< _CharT,
_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 streamsize _M_xsputnc (char_type __c, streamsize __n)
virtual int_type overflow (int_type=traits_type::eof())
virtual void imbue (const locale &)

Friends

class basic_istream< _CharT, _Traits >
class basic_ostream< _CharT, _Traits >

Detailed Description

template<class _CharT, class _Traits>
class basic_streambuf< _CharT, _Traits >

Definition at line 48 of file _streambuf.h.


Member Typedef Documentation

template<class _CharT, class _Traits>
typedef _CharT basic_streambuf< _CharT, _Traits >::char_type

template<class _CharT, class _Traits>
typedef _Traits::int_type basic_streambuf< _CharT, _Traits >::int_type

template<class _CharT, class _Traits>
typedef _Traits::pos_type basic_streambuf< _CharT, _Traits >::pos_type

template<class _CharT, class _Traits>
typedef _Traits::off_type basic_streambuf< _CharT, _Traits >::off_type

template<class _CharT, class _Traits>
typedef _Traits basic_streambuf< _CharT, _Traits >::traits_type


Constructor & Destructor Documentation

template<class _CharT, class _Traits>
basic_streambuf< _CharT, _Traits >::~basic_streambuf (  )  [virtual]

Definition at line 40 of file _streambuf.c.

template<class _CharT, class _Traits>
_STLP_BEGIN_NAMESPACE basic_streambuf< _CharT, _Traits >::basic_streambuf (  )  [protected]

Definition at line 31 of file _streambuf.c.


Member Function Documentation

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

template<class _CharT, class _Traits>
char_type* basic_streambuf< _CharT, _Traits >::_M_eback (  )  const [inline]

Definition at line 105 of file _streambuf.h.

template<class _CharT, class _Traits>
char_type* basic_streambuf< _CharT, _Traits >::_M_gptr (  )  const [inline]

Definition at line 106 of file _streambuf.h.

Referenced by __copy_buffered(), __read_buffered(), and _M_ignore_buffered().

template<class _CharT, class _Traits>
char_type* basic_streambuf< _CharT, _Traits >::_M_egptr (  )  const [inline]

Definition at line 107 of file _streambuf.h.

Referenced by __copy_buffered(), __read_buffered(), and _M_ignore_buffered().

template<class _CharT, class _Traits>
void basic_streambuf< _CharT, _Traits >::_M_gbump ( int  __n  )  [inline]

Definition at line 108 of file _streambuf.h.

Referenced by __copy_buffered(), __read_buffered(), and _M_ignore_buffered().

template<class _CharT, class _Traits>
void basic_streambuf< _CharT, _Traits >::_M_setg ( char_type __gbegin,
char_type __gnext,
char_type __gend 
) [inline]

Definition at line 109 of file _streambuf.h.

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

Definition at line 114 of file _streambuf.h.

Referenced by basic_stringbuf< _CharT, _Traits, _Alloc >::setbuf().

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

Definition at line 116 of file _streambuf.h.

Referenced by basic_stringbuf< _CharT, _Traits, _Alloc >::overflow().

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

template<class _CharT, class _Traits>
basic_streambuf< _CharT, _Traits > * basic_streambuf< _CharT, _Traits >::setbuf ( char_type ,
streamsize   
) [protected, virtual]

template<class _CharT, class _Traits>
_STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf< _CharT, _Traits >::pos_type basic_streambuf< _CharT, _Traits >::seekoff ( off_type  ,
ios_base::seekdir  ,
ios_base::openmode  = ios_base::in|ios_base::out 
) [protected, virtual]

template<class _CharT, class _Traits>
_STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf< _CharT, _Traits >::pos_type basic_streambuf< _CharT, _Traits >::seekpos ( pos_type  ,
ios_base::openmode  = ios_base::in|ios_base::out 
) [protected, virtual]

template<class _CharT, class _Traits>
int basic_streambuf< _CharT, _Traits >::sync (  )  [protected, virtual]

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

Definition at line 145 of file _streambuf.h.

template<class _CharT, class _Traits>
pos_type basic_streambuf< _CharT, _Traits >::pubseekoff ( off_type  __offset,
ios_base::seekdir  __way,
ios_base::openmode  __mod = ios_base::in | ios_base::out 
) [inline]

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

Definition at line 152 of file _streambuf.h.

Referenced by basic_istream< _CharT, _Traits >::seekg().

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

Definition at line 156 of file _streambuf.h.

Referenced by basic_istream< _CharT, _Traits >::sync().

template<class _CharT, class _Traits>
streamsize basic_streambuf< _CharT, _Traits >::showmanyc (  )  [protected, virtual]

Reimplemented in basic_filebuf< _CharT, _Traits >, stdio_istreambuf, and stdio_ostreambuf.

Definition at line 175 of file _streambuf.c.

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

template<class _CharT, class _Traits>
_STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf< _CharT, _Traits >::int_type basic_streambuf< _CharT, _Traits >::underflow (  )  [protected, virtual]

template<class _CharT, class _Traits>
_STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf< _CharT, _Traits >::int_type basic_streambuf< _CharT, _Traits >::uflow (  )  [protected, virtual]

template<class _CharT, class _Traits>
_STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf< _CharT, _Traits >::int_type basic_streambuf< _CharT, _Traits >::pbackfail ( int_type  = traits_type::eof()  )  [protected, virtual]

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

template<class _CharT, class _Traits>
streamsize basic_streambuf< _CharT, _Traits >::_M_xsputnc ( char_type  __c,
streamsize  __n 
) [protected, virtual]

template<class _CharT, class _Traits>
_STLP_TYPENAME_ON_RETURN_TYPE basic_streambuf< _CharT, _Traits >::int_type basic_streambuf< _CharT, _Traits >::overflow ( int_type  = traits_type::eof()  )  [protected, virtual]

template<class _CharT, class _Traits>
int_type basic_streambuf< _CharT, _Traits >::sputc ( char_type  __c  )  [inline]

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

Definition at line 207 of file _streambuf.h.

Referenced by __copy_buffered(), and operator<<().

template<class _CharT, class _Traits>
streamsize basic_streambuf< _CharT, _Traits >::_M_sputnc ( char_type  __c,
streamsize  __n 
) [inline]

Definition at line 211 of file _streambuf.h.

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

Definition at line 218 of file _streambuf.h.

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

Definition at line 223 of file _streambuf.h.

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

Definition at line 236 of file _streambuf.h.

Referenced by __copy_buffered(), __read_buffered(), and _M_ignore_buffered().

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

Definition at line 241 of file _streambuf.h.

template<class _CharT, class _Traits>
int_type basic_streambuf< _CharT, _Traits >::sputbackc ( char_type  __c  )  [inline]

template<class _CharT, class _Traits>
int_type basic_streambuf< _CharT, _Traits >::sungetc (  )  [inline]

Definition at line 250 of file _streambuf.h.

Referenced by basic_istream< _CharT, _Traits >::unget().

template<class _CharT, class _Traits>
void basic_streambuf< _CharT, _Traits >::imbue ( const locale  )  [protected, virtual]

Reimplemented in basic_filebuf< _CharT, _Traits >.

Definition at line 180 of file _streambuf.c.

Referenced by basic_streambuf< _CharT, _Traits >::pubimbue().

template<class _CharT, class _Traits>
locale basic_streambuf< _CharT, _Traits >::pubimbue ( const locale  ) 

Definition at line 45 of file _streambuf.c.

References basic_streambuf< _CharT, _Traits >::imbue().

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

Definition at line 266 of file _streambuf.h.

template<class _CharT, class _Traits>
void basic_streambuf< _CharT, _Traits >::stossc (  )  [inline]

Definition at line 269 of file _streambuf.h.


Friends And Related Function Documentation

template<class _CharT, class _Traits>
friend class basic_istream< _CharT, _Traits > [friend]

Definition at line 49 of file _streambuf.h.

template<class _CharT, class _Traits>
friend class basic_ostream< _CharT, _Traits > [friend]

Definition at line 50 of file _streambuf.h.


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



Generated on Mon Mar 10 15:32:57 2008 by  doxygen 1.5.1