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 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 < char, char_traits< char > > * 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
_STLP_DECLSPEC streamsize _M_xsputnc ( char_type , streamsize )
void _change_input_mode ()
char_type * eback ()
char_type * egptr ()
char_type * epptr ()
void gbump (int)
char_type * gptr ()
_STLP_DECLSPEC void imbue (const locale &)
_STLP_DECLSPEC int_type overflow ( int_type )
_STLP_DECLSPEC int_type pbackfail ( int_type )
char_type * pbase ()
void pbump (int)
char_type * pptr ()
int save_read_buffer ()
_STLP_DECLSPEC pos_type seekoff ( off_type , ios_base::seekdir , ios_base::openmode )
_STLP_DECLSPEC pos_type seekpos ( pos_type , ios_base::openmode )
_STLP_DECLSPEC basic_streambuf < char, char_traits< char > > * setbuf ( char_type *, streamsize )
void setg ( char_type *, char_type *, char_type *)
void setp ( char_type *, char_type *)
_STLP_DECLSPEC streamsize showmanyc ()
_STLP_DECLSPEC int sync ()
_STLP_DECLSPEC int_type uflow ()
_STLP_DECLSPEC int_type underflow ()
_STLP_DECLSPEC streamsize xsgetn ( char_type *, streamsize )
_STLP_DECLSPEC streamsize xsputn (const char_type *, streamsize )
Private Member Functions
_STLP_DECLSPEC int_type _M_snextc_aux ()
Public Member Type Definitions
typedef char char_type
typedef char_traits< char >:: int_type int_type
typedef char_traits< char >:: off_type off_type
typedef char_traits< char >:: pos_type pos_type
typedef char_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_DECLSPEC basic_streambuf ( )

basic_streambuf(FILE *, FILE *)

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

void gbump ( int __n ) [protected, inline]

Parameters

int __n

getloc()

locale getloc ( ) const [inline]

gptr()

char_type * gptr ( ) const [protected, inline]

imbue(const locale &)

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

Parameters

const locale &

in_avail()

streamsize in_avail ( ) [inline]

overflow(int_type)

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

Parameters

int_type  = traits_type::eof()

pbackfail(int_type)

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

Parameters

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

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

Parameters

char_type * __s
streamsize __n

pubsync()

int pubsync ( ) [inline]

save_read_buffer()

int save_read_buffer ( ) [protected, inline, virtual]

sbumpc()

int_type sbumpc ( ) [inline]

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

_STLP_DECLSPEC pos_type seekoff ( 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_type seekpos ( 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]

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

_STLP_DECLSPEC streamsize showmanyc ( ) [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()

void stossc ( ) [inline]

sungetc()

int_type sungetc ( ) [inline]

sync()

_STLP_DECLSPEC int sync ( ) [protected, virtual]

uflow()

_STLP_DECLSPEC int_type uflow ( ) [protected, virtual]

underflow()

_STLP_DECLSPEC int_type underflow ( ) [protected, virtual]

xsgetn(char_type *, streamsize)

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

Parameters

char_type * __s
streamsize __n

xsputn(const char_type *, streamsize)

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

Parameters

const char_type * __s
streamsize __n

Member Type Definitions Documentation

Typedef char_type

typedef char char_type

Typedef int_type

typedef char_traits< char >:: int_type int_type

Typedef off_type

typedef char_traits< char >:: off_type off_type

Typedef pos_type

typedef char_traits< char >:: pos_type pos_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]