basic_streambuf< char, char_traits< char > > Class Template Reference

template <>
class basic_streambuf< char, char_traits< char > >
Public Member Functions
basic_streambuf()
basic_streambuf(FILE *, FILE *)
~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()
_STLP_DECLSPEC localepubimbue(const locale &)
pos_type pubseekoff(off_type, ios_base::seekdir, ios_base::openmode)
pos_type pubseekpos(pos_type, ios_base::openmode)
basic_streambuf< char, char_traits< char > > *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
_STLP_DECLSPEC streamsize_M_xsputnc(char_type, streamsize)
void_change_input_mode()
char_type *eback()
char_type *egptr()
char_type *epptr()
voidgbump(int)
char_type *gptr()
_STLP_DECLSPEC voidimbue(const locale &)
_STLP_DECLSPEC int_typeoverflow(int_type)
_STLP_DECLSPEC int_typepbackfail(int_type)
char_type *pbase()
voidpbump(int)
char_type *pptr()
intsave_read_buffer()
_STLP_DECLSPEC pos_typeseekoff(off_type, ios_base::seekdir, ios_base::openmode)
_STLP_DECLSPEC pos_typeseekpos(pos_type, ios_base::openmode)
_STLP_DECLSPEC basic_streambuf< char, char_traits< char > > *setbuf(char_type *, streamsize)
voidsetg(char_type *, char_type *, char_type *)
voidsetp(char_type *, char_type *)
_STLP_DECLSPEC streamsizeshowmanyc()
_STLP_DECLSPEC intsync()
_STLP_DECLSPEC int_typeuflow()
_STLP_DECLSPEC int_typeunderflow()
_STLP_DECLSPEC streamsizexsgetn(char_type *, streamsize)
_STLP_DECLSPEC streamsizexsputn(const char_type *, streamsize)
Private Member Functions
_STLP_DECLSPEC int_type_M_snextc_aux()
Public Member Type Definitions
typedefchar char_type
typedefchar_traits< char >::int_type int_type
typedefchar_traits< char >::off_type off_type
typedefchar_traits< char >::pos_type pos_type
typedefchar_traits< char > traits_type
Public Attributes
_STLP_mutex _M_lock
Private Attributes
FILE_M_default_get
FILE_M_default_put
FILE *_M_get
locale _M_locale
FILE *_M_put

Constructor & Destructor Documentation

basic_streambuf()

_STLP_DECLSPECbasic_streambuf()

basic_streambuf(FILE *, FILE *)

_STLP_DECLSPECbasic_streambuf(FILE *__get,
FILE *__put
)

Parameters

FILE * __get
FILE * __put

~basic_streambuf()

_STLP_DECLSPEC~basic_streambuf()[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()

_STLP_DECLSPEC 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)

_STLP_DECLSPEC streamsize_M_xsputnc(char_type__c,
streamsize__n
)[protected, virtual]

Parameters

char_type __c
streamsize __n

_change_input_mode()

void_change_input_mode()[protected, inline, virtual]

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 &)

_STLP_DECLSPEC voidimbue(const locale &)[protected, virtual]

Parameters

const locale &

in_avail()

streamsize in_avail()[inline]

overflow(int_type)

_STLP_DECLSPEC int_typeoverflow(int_type = traits_type::eof())[protected, virtual]

Parameters

int_type  = traits_type::eof()

pbackfail(int_type)

_STLP_DECLSPEC int_typepbackfail(int_type__c = traits_type::eof())[protected, virtual]

Parameters

int_type __c = 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 &)

_STLP_DECLSPEC localepubimbue(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< char, char_traits< char > > *pubsetbuf(char_type *__s,
streamsize__n
)[inline]

Parameters

char_type * __s
streamsize __n

pubsync()

intpubsync()[inline]

save_read_buffer()

intsave_read_buffer()[protected, inline, virtual]

sbumpc()

int_type sbumpc()[inline]

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

_STLP_DECLSPEC pos_typeseekoff(off_type,
ios_base::seekdir,
ios_base::openmode =  ios_base::in|ios_base::out
)[protected, virtual]

seekpos(pos_type, ios_base::openmode)

_STLP_DECLSPEC pos_typeseekpos(pos_type,
ios_base::openmode =  ios_base::in|ios_base::out
)[protected, virtual]

setbuf(char_type *, streamsize)

_STLP_DECLSPEC basic_streambuf< char, char_traits< char > > *setbuf(char_type *,
streamsize
)[protected, 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()

_STLP_DECLSPEC streamsizeshowmanyc()[protected, 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()

_STLP_DECLSPEC intsync()[protected, virtual]

uflow()

_STLP_DECLSPEC int_typeuflow()[protected, virtual]

underflow()

_STLP_DECLSPEC int_typeunderflow()[protected, virtual]

xsgetn(char_type *, streamsize)

_STLP_DECLSPEC streamsizexsgetn(char_type *__s,
streamsize__n
)[protected, virtual]

Parameters

char_type * __s
streamsize __n

xsputn(const char_type *, streamsize)

_STLP_DECLSPEC streamsizexsputn(const char_type *__s,
streamsize__n
)[protected, virtual]

Parameters

const char_type * __s
streamsize __n

Member Type Definitions Documentation

Typedef char_type

typedef charchar_type

Typedef int_type

typedef char_traits< char >::int_typeint_type

Typedef off_type

typedef char_traits< char >::off_typeoff_type

Typedef pos_type

typedef char_traits< char >::pos_typepos_type

Typedef traits_type

typedef char_traits< char >traits_type

Member Data Documentation

FILE _M_default_get

FILE_M_default_get[private]

FILE _M_default_put

FILE_M_default_put[private]

FILE * _M_get

FILE *_M_get[private]

locale _M_locale

locale _M_locale[private]

_STLP_mutex _M_lock

_STLP_mutex _M_lock

FILE * _M_put

FILE *_M_put[private]