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)
intpubsync()
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)
voidstossc()
int_type sungetc()
Protected Member Functions
basic_streambuf()
streamsize _M_xsputnc(char_type, streamsize)
char_type *eback()
char_type *egptr()
char_type *epptr()
voidgbump(int)
char_type *gptr()
voidimbue(const locale &)
int_type overflow(int_type)
int_type pbackfail(int_type)
char_type *pbase()
voidpbump(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)
voidsetg(char_type *, char_type *, char_type *)
voidsetp(char_type *, char_type *)
streamsize showmanyc()
intsync()
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)

voidgbump(int__n)[protected, inline]

Parameters

int __n

getloc()

locale getloc()const [inline]

gptr()

char_type *gptr()const [protected, inline]

imbue(const locale &)

voidimbue(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)

voidpbump(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()

intpubsync()[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]

Parameters

char_type *
streamsize

setg(char_type *, char_type *, char_type *)

voidsetg(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 *)

voidsetp(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()

voidstossc()[inline]

sungetc()

int_type sungetc()[inline]

sync()

intsync()[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 _CharTchar_type

Typedef int_type

typedef _Traits::int_typeint_type

Typedef off_type

typedef _Traits::off_typeoff_type

Typedef pos_type

typedef _Traits::pos_typepos_type

Typedef traits_type

typedef _Traitstraits_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]