basic_streambuf Class Reference

class basic_streambuf
Public Member Functions
~basic_streambuf ()
char_type * _M_eback ()
char_type * _M_egptr ()
void _M_gbump (int)
char_type * _M_gptr ()
void _M_setg ( char_type *, char_type *, char_type *)
streamsize _M_sputnc ( char_type , streamsize )
locale getloc ()
streamsize in_avail ()
locale pubimbue (const locale &)
pos_type pubseekoff ( off_type , ios_base::seekdir , ios_base::openmode )
pos_type pubseekpos ( pos_type , ios_base::openmode )
basic_streambuf < _CharT, _Traits > * pubsetbuf ( char_type *, streamsize )
int pubsync ()
int_type sbumpc ()
int_type sgetc ()
streamsize sgetn ( char_type *, streamsize )
int_type snextc ()
int_type sputbackc ( char_type )
int_type sputc ( char_type )
streamsize sputn (const char_type *, streamsize )
void stossc ()
int_type sungetc ()
Protected Member Functions
basic_streambuf ()
streamsize _M_xsputnc ( char_type , streamsize )
char_type * eback ()
char_type * egptr ()
char_type * epptr ()
void gbump (int)
char_type * gptr ()
void imbue (const locale &)
int_type overflow ( int_type )
int_type pbackfail ( int_type )
char_type * pbase ()
void pbump (int)
char_type * pptr ()
pos_type seekoff ( off_type , ios_base::seekdir , ios_base::openmode )
pos_type seekpos ( pos_type , ios_base::openmode )
basic_streambuf < _CharT, _Traits > * setbuf ( char_type *, streamsize )
void setg ( char_type *, char_type *, char_type *)
void setp ( char_type *, char_type *)
streamsize showmanyc ()
int sync ()
int_type uflow ()
int_type underflow ()
streamsize xsgetn ( char_type *, streamsize )
streamsize xsputn (const char_type *, streamsize )
Private Member Functions
int_type _M_snextc_aux ()
Public Member Type Definitions
typedef _CharT char_type
typedef _Traits::int_type int_type
typedef _Traits::off_type off_type
typedef _Traits::pos_type pos_type
typedef _Traits traits_type
Private Attributes
char_type * _M_gbegin
char_type * _M_gend
char_type * _M_gnext
locale _M_locale
char_type * _M_pbegin
char_type * _M_pend
char_type * _M_pnext

Constructor & Destructor Documentation

basic_streambuf()

basic_streambuf ( ) [protected]

~basic_streambuf()

~basic_streambuf ( ) [inline, virtual]

Member Functions Documentation

_M_eback()

char_type * _M_eback ( ) const [inline]

_M_egptr()

char_type * _M_egptr ( ) const [inline]

_M_gbump(int)

void _M_gbump ( int __n ) [inline]

Parameters

int __n

_M_gptr()

char_type * _M_gptr ( ) const [inline]

_M_setg(char_type *, char_type *, char_type *)

void _M_setg ( char_type * __gbegin,
char_type * __gnext,
char_type * __gend
) [inline]

Parameters

char_type * __gbegin
char_type * __gnext
char_type * __gend

_M_snextc_aux()

int_type _M_snextc_aux ( ) [private]

_M_sputnc(char_type, streamsize)

streamsize _M_sputnc ( char_type __c,
streamsize __n
) [inline]

Parameters

char_type __c
streamsize __n

_M_xsputnc(char_type, streamsize)

streamsize _M_xsputnc ( char_type __c,
streamsize __n
) [protected, inline, virtual]

Parameters

char_type __c
streamsize __n

eback()

char_type * eback ( ) const [protected, inline]

egptr()

char_type * egptr ( ) const [protected, inline]

epptr()

char_type * epptr ( ) const [protected, inline]

gbump(int)

void gbump ( int __n ) [protected, inline]

Parameters

int __n

getloc()

locale getloc ( ) const [inline]

gptr()

char_type * gptr ( ) const [protected, inline]

imbue(const locale &)

void imbue ( const locale & ) [protected, inline, virtual]

Parameters

const locale &

in_avail()

streamsize in_avail ( ) [inline]

overflow(int_type)

int_type overflow ( int_type  = traits_type::eof() ) [protected, inline, virtual]

Parameters

int_type  = traits_type::eof()

pbackfail(int_type)

int_type pbackfail ( int_type  = traits_type::eof() ) [protected, inline, virtual]

Parameters

int_type  = traits_type::eof()

pbase()

char_type * pbase ( ) const [protected, inline]

pbump(int)

void pbump ( int __n ) [protected, inline]

Parameters

int __n

pptr()

char_type * pptr ( ) const [protected, inline]

pubimbue(const locale &)

locale pubimbue ( const locale & )

Parameters

const locale &

pubseekoff(off_type, ios_base::seekdir, ios_base::openmode)

pos_type pubseekoff ( off_type __offset,
ios_base::seekdir __way,
ios_base::openmode __mod =  ios_base::in | ios_base::out
) [inline]

pubseekpos(pos_type, ios_base::openmode)

pos_type pubseekpos ( pos_type __sp,
ios_base::openmode __mod =  ios_base::in | ios_base::out
) [inline]

pubsetbuf(char_type *, streamsize)

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

Parameters

char_type * __s
streamsize __n

pubsync()

int pubsync ( ) [inline]

sbumpc()

int_type sbumpc ( ) [inline]

seekoff(off_type, ios_base::seekdir, ios_base::openmode)

pos_type seekoff ( off_type ,
ios_base::seekdir ,
ios_base::openmode  =  ios_base::in | ios_base::out
) [protected, inline, virtual]

seekpos(pos_type, ios_base::openmode)

pos_type seekpos ( pos_type ,
ios_base::openmode  =  ios_base::in | ios_base::out
) [protected, inline, virtual]

setbuf(char_type *, streamsize)

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

setg(char_type *, char_type *, char_type *)

void setg ( char_type * __gbegin,
char_type * __gnext,
char_type * __gend
) [protected, inline]

Parameters

char_type * __gbegin
char_type * __gnext
char_type * __gend

setp(char_type *, char_type *)

void setp ( char_type * __pbegin,
char_type * __pend
) [protected, inline]

Parameters

char_type * __pbegin
char_type * __pend

sgetc()

int_type sgetc ( ) [inline]

sgetn(char_type *, streamsize)

streamsize sgetn ( char_type * __s,
streamsize __n
) [inline]

Parameters

char_type * __s
streamsize __n

showmanyc()

streamsize showmanyc ( ) [protected, inline, virtual]

snextc()

int_type snextc ( ) [inline]

sputbackc(char_type)

int_type sputbackc ( char_type __c ) [inline]

Parameters

char_type __c

sputc(char_type)

int_type sputc ( char_type __c ) [inline]

Parameters

char_type __c

sputn(const char_type *, streamsize)

streamsize sputn ( const char_type * __s,
streamsize __n
) [inline]

Parameters

const char_type * __s
streamsize __n

stossc()

void stossc ( ) [inline]

sungetc()

int_type sungetc ( ) [inline]

sync()

int sync ( ) [protected, inline, virtual]

uflow()

int_type uflow ( ) [protected, inline, virtual]

underflow()

int_type underflow ( ) [protected, inline, virtual]

xsgetn(char_type *, streamsize)

streamsize xsgetn ( char_type * __s,
streamsize __n
) [protected, inline, virtual]

Parameters

char_type * __s
streamsize __n

xsputn(const char_type *, streamsize)

streamsize xsputn ( const char_type * __s,
streamsize __n
) [protected, inline, virtual]

Parameters

const char_type * __s
streamsize __n

Member Type Definitions Documentation

Typedef char_type

typedef _CharT char_type

Typedef int_type

typedef _Traits::int_type int_type

Typedef off_type

typedef _Traits::off_type off_type

Typedef pos_type

typedef _Traits::pos_type pos_type

Typedef traits_type

typedef _Traits traits_type

Member Data Documentation

char_type * _M_gbegin

char_type * _M_gbegin [private]

char_type * _M_gend

char_type * _M_gend [private]

char_type * _M_gnext

char_type * _M_gnext [private]

locale _M_locale

locale _M_locale [private]

char_type * _M_pbegin

char_type * _M_pbegin [private]

char_type * _M_pend

char_type * _M_pend [private]

char_type * _M_pnext

char_type * _M_pnext [private]