basic_stringbuf Class Reference

class basic_stringbuf : public basic_streambuf

Inherits from

Public Member Functions
basic_stringbuf ( ios_base::openmode )
basic_stringbuf (const _String &, ios_base::openmode )
~basic_stringbuf ()
_String str ()
void str (const _String &)
Protected Member Functions
streamsize _M_xsputnc ( char_type , streamsize )
int_type overflow ( int_type )
int_type overflow ()
int_type pbackfail ( int_type )
int_type pbackfail ()
pos_type seekoff ( off_type , ios_base::seekdir , ios_base::openmode )
pos_type seekpos ( pos_type , ios_base::openmode )
_Base * setbuf (_CharT *, streamsize )
int_type uflow ()
int_type underflow ()
streamsize xsputn (const char_type *, streamsize )
Private Member Functions
void _M_append_buffer ()
void _M_set_ptrs ()
Inherited Functions
basic_streambuf::_M_eback()const
basic_streambuf::_M_egptr()const
basic_streambuf::_M_gbump(int)
basic_streambuf::_M_gptr()const
basic_streambuf::_M_setg(char_type *,char_type *,char_type *)
basic_streambuf::_M_sputnc(char_type,streamsize)
basic_streambuf::basic_streambuf()
basic_streambuf::eback()const
basic_streambuf::egptr()const
basic_streambuf::epptr()const
basic_streambuf::gbump(int)
basic_streambuf::getloc()const
basic_streambuf::gptr()const
basic_streambuf::imbue(const locale &)
basic_streambuf::in_avail()
basic_streambuf::pbase()const
basic_streambuf::pbump(int)
basic_streambuf::pptr()const
basic_streambuf::pubimbue(const locale &)
basic_streambuf::pubseekoff(off_type,ios_base::seekdir,ios_base::openmode)
basic_streambuf::pubseekpos(pos_type,ios_base::openmode)
basic_streambuf::pubsetbuf(char_type *,streamsize)
basic_streambuf::pubsync()
basic_streambuf::sbumpc()
basic_streambuf::setg(char_type *,char_type *,char_type *)
basic_streambuf::setp(char_type *,char_type *)
basic_streambuf::sgetc()
basic_streambuf::sgetn(char_type *,streamsize)
basic_streambuf::showmanyc()
basic_streambuf::snextc()
basic_streambuf::sputbackc(char_type)
basic_streambuf::sputc(char_type)
basic_streambuf::sputn(const char_type *,streamsize)
basic_streambuf::stossc()
basic_streambuf::sungetc()
basic_streambuf::sync()
basic_streambuf::xsgetn(char_type *,streamsize)
basic_streambuf::~basic_streambuf()
Public Member Type Definitions
typedef basic_streambuf < _CharT, _Traits > _Base
typedef basic_stringbuf < _CharT, _Traits, _Alloc > _Self
typedef basic_string < _CharT, _Traits, _Alloc > _String
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
_CharT _M_Buf
ios_base::openmode _M_mode
basic_string < _CharT, _Traits, _Alloc > _M_str

Constructor & Destructor Documentation

basic_stringbuf(ios_base::openmode)

basic_stringbuf ( ios_base::openmode __mode =  ios_base::in | ios_base::out ) [explicit]

basic_stringbuf(const _String &, ios_base::openmode)

basic_stringbuf ( const _String & __s,
ios_base::openmode __mode =  ios_base::in | ios_base::out
) [explicit]

~basic_stringbuf()

~basic_stringbuf ( ) [inline, virtual]

Member Functions Documentation

_M_append_buffer()

void _M_append_buffer ( ) const [private]

_M_set_ptrs()

void _M_set_ptrs ( ) [private]

_M_xsputnc(char_type, streamsize)

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

Parameters

char_type __c
streamsize __n

overflow(int_type)

int_type overflow ( int_type __c ) [protected, inline, virtual]

Parameters

int_type __c

overflow()

int_type overflow ( ) [protected, inline]

pbackfail(int_type)

int_type pbackfail ( int_type __c ) [protected, inline, virtual]

Parameters

int_type __c

pbackfail()

int_type pbackfail ( ) [protected, inline]

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

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

seekpos(pos_type, ios_base::openmode)

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

setbuf(_CharT *, streamsize)

_Base * setbuf ( _CharT * ,
streamsize __n
) [protected, inline, virtual]

Parameters

_CharT *
streamsize __n

str()

_String str ( ) const [inline]

str(const _String &)

void str ( const _String & __s )

Parameters

const _String & __s

uflow()

int_type uflow ( ) [protected, inline, virtual]

underflow()

int_type underflow ( ) [protected, inline, virtual]

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 _Base

typedef basic_streambuf < _CharT, _Traits > _Base

Typedef _Self

typedef basic_stringbuf < _CharT, _Traits, _Alloc > _Self

Typedef _String

typedef basic_string < _CharT, _Traits, _Alloc > _String

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

_CharT _M_Buf

_CharT _M_Buf [private]

ios_base::openmode _M_mode

ios_base::openmode _M_mode [private]

basic_string< _CharT, _Traits, _Alloc > _M_str

basic_string < _CharT, _Traits, _Alloc > _M_str [private]