basic_filebuf Class Reference

class basic_filebuf : public basic_streambuf

Inherits from

Public Member Functions
basic_filebuf ()
~basic_filebuf ()
int_type _M_do_noconv_input ()
_Self * _M_open (int, ios_base::openmode )
bool _M_write (char *, ptrdiff_t )
_Self * close ()
_STLP_fd fd ()
bool is_open ()
_Self * open (const char *, ios_base::openmode )
_Self * open (const char *, ios_base::openmode , long)
_Self * open (int, ios_base::openmode )
Protected Member Functions
void imbue (const locale &)
int_type overflow ( int_type )
int_type pbackfail ( int_type )
pos_type seekoff ( off_type , ios_base::seekdir , ios_base::openmode )
pos_type seekpos ( pos_type , ios_base::openmode )
basic_streambuf < _CharT, _Traits > * setbuf (_CharT *, streamsize )
streamsize showmanyc ()
int sync ()
int_type underflow ()
Private Member Functions
bool _M_allocate_buffers (_CharT *, streamsize )
bool _M_allocate_buffers ()
void _M_deallocate_buffers ()
void _M_exit_input_mode ()
void _M_exit_putback_mode ()
int_type _M_input_error ()
int_type _M_output_error ()
bool _M_seek_init (bool)
pos_type _M_seek_return ( off_type , _State_type )
void _M_setup_codecvt (const locale &, bool)
bool _M_switch_to_input_mode ()
bool _M_switch_to_output_mode ()
int_type _M_underflow_aux ()
bool _M_unshift ()
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::_M_xsputnc(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::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::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::uflow()
basic_streambuf::xsgetn(char_type *,streamsize)
basic_streambuf::xsputn(const char_type *,streamsize)
basic_streambuf::~basic_streambuf()
Public Member Type Definitions
typedef basic_streambuf < _CharT, _Traits > _Base
typedef basic_filebuf < _CharT, _Traits > _Self
typedef _Traits::state_type _State_type
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 Member Type Definitions
typedef codecvt < _CharT, char, _State_type > _Codecvt
Private Attributes
unsigned char _M_always_noconv
_Filebuf_base _M_base
const _Codecvt * _M_codecvt
unsigned char _M_constant_width
_State_type _M_end_state
char * _M_ext_buf
char * _M_ext_buf_EOS
char * _M_ext_buf_converted
char * _M_ext_buf_end
unsigned char _M_in_error_mode
unsigned char _M_in_input_mode
unsigned char _M_in_output_mode
unsigned char _M_in_putback_mode
_CharT * _M_int_buf
_CharT * _M_int_buf_EOS
unsigned char _M_int_buf_dynamic
int _M_max_width
void * _M_mmap_base
streamoff _M_mmap_len
_CharT _M_pback_buf
_CharT * _M_saved_eback
_CharT * _M_saved_egptr
_CharT * _M_saved_gptr
_State_type _M_state
int _M_width

Constructor & Destructor Documentation

basic_filebuf()

basic_filebuf ( )

~basic_filebuf()

~basic_filebuf ( ) [inline]

Member Functions Documentation

_M_allocate_buffers(_CharT *, streamsize)

bool _M_allocate_buffers ( _CharT * __buf,
streamsize __n
) [private]

Parameters

_CharT * __buf
streamsize __n

_M_allocate_buffers()

bool _M_allocate_buffers ( ) [private]

_M_deallocate_buffers()

void _M_deallocate_buffers ( ) [private]

_M_do_noconv_input()

int_type _M_do_noconv_input ( ) [inline]

_M_exit_input_mode()

void _M_exit_input_mode ( ) [private]

_M_exit_putback_mode()

void _M_exit_putback_mode ( ) [private, inline]

_M_input_error()

int_type _M_input_error ( ) [private]

_M_open(int, ios_base::openmode)

_Self * _M_open ( int __id,
ios_base::openmode _Init_mode =  ios_base::__default_mode
) [inline]

Parameters

int __id
ios_base::openmode _Init_mode =  ios_base::__default_mode

_M_output_error()

int_type _M_output_error ( ) [private]

_M_seek_init(bool)

bool _M_seek_init ( bool __do_unshift ) [private]

Parameters

bool __do_unshift

_M_seek_return(off_type, _State_type)

pos_type _M_seek_return ( off_type __off,
_State_type __state
) [private, inline]

Parameters

off_type __off
_State_type __state

_M_setup_codecvt(const locale &, bool)

void _M_setup_codecvt ( const locale & ,
bool __on_imbue = true
) [private]

Parameters

const locale &
bool __on_imbue = true

_M_switch_to_input_mode()

bool _M_switch_to_input_mode ( ) [private]

_M_switch_to_output_mode()

bool _M_switch_to_output_mode ( ) [private]

_M_underflow_aux()

int_type _M_underflow_aux ( ) [private]

_M_unshift()

bool _M_unshift ( ) [private]

_M_write(char *, ptrdiff_t)

bool _M_write ( char * __buf,
ptrdiff_t __n
) [inline]

Parameters

char * __buf
ptrdiff_t __n

close()

_Self * close ( )

fd()

_STLP_fd fd ( ) const [inline]

imbue(const locale &)

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

Parameters

const locale & __loc

is_open()

bool is_open ( ) const [inline]

open(const char *, ios_base::openmode)

_Self * open ( const char * __s,
ios_base::openmode __m
) [inline]

Parameters

const char * __s
ios_base::openmode __m

open(const char *, ios_base::openmode, long)

_Self * open ( const char * __s,
ios_base::openmode __m,
long __protection
) [inline]

Parameters

const char * __s
ios_base::openmode __m
long __protection

open(int, ios_base::openmode)

_Self * open ( int __id,
ios_base::openmode _Init_mode =  ios_base::__default_mode
) [inline]

Parameters

int __id
ios_base::openmode _Init_mode =  ios_base::__default_mode

overflow(int_type)

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

Parameters

int_type __c

pbackfail(int_type)

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

Parameters

int_type __c = traits_type::eof()

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

pos_type seekoff ( off_type __off,
ios_base::seekdir __whence,
ios_base::openmode
) [protected, inline, virtual]

seekpos(pos_type, ios_base::openmode)

pos_type seekpos ( pos_type __pos,
ios_base::openmode
) [protected, inline, virtual]

setbuf(_CharT *, streamsize)

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

Parameters

_CharT * __buf
streamsize __n

showmanyc()

streamsize showmanyc ( ) [protected, inline, virtual]

sync()

int sync ( ) [protected, inline, virtual]

underflow()

int_type underflow ( ) [protected, inline, virtual]

Member Type Definitions Documentation

Typedef _Base

typedef basic_streambuf < _CharT, _Traits > _Base

Typedef _Codecvt

typedef codecvt < _CharT, char, _State_type > _Codecvt [private]

Typedef _Self

typedef basic_filebuf < _CharT, _Traits > _Self

Typedef _State_type

typedef _Traits::state_type _State_type

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

unsigned char _M_always_noconv

unsigned char _M_always_noconv [private]

_Filebuf_base _M_base

_Filebuf_base _M_base [private]

const _Codecvt * _M_codecvt

const _Codecvt * _M_codecvt [private]

unsigned char _M_constant_width

unsigned char _M_constant_width [private]

_State_type _M_end_state

_State_type _M_end_state [private]

char * _M_ext_buf

char * _M_ext_buf [private]

char * _M_ext_buf_EOS

char * _M_ext_buf_EOS [private]

char * _M_ext_buf_converted

char * _M_ext_buf_converted [private]

char * _M_ext_buf_end

char * _M_ext_buf_end [private]

unsigned char _M_in_error_mode

unsigned char _M_in_error_mode [private]

unsigned char _M_in_input_mode

unsigned char _M_in_input_mode [private]

unsigned char _M_in_output_mode

unsigned char _M_in_output_mode [private]

unsigned char _M_in_putback_mode

unsigned char _M_in_putback_mode [private]

_CharT * _M_int_buf

_CharT * _M_int_buf [private]

_CharT * _M_int_buf_EOS

_CharT * _M_int_buf_EOS [private]

unsigned char _M_int_buf_dynamic

unsigned char _M_int_buf_dynamic [private]

int _M_max_width

int _M_max_width [private]

void * _M_mmap_base

void * _M_mmap_base [private]

streamoff _M_mmap_len

streamoff _M_mmap_len [private]

_CharT _M_pback_buf

_CharT _M_pback_buf [private]

_CharT * _M_saved_eback

_CharT * _M_saved_eback [private]

_CharT * _M_saved_egptr

_CharT * _M_saved_egptr [private]

_CharT * _M_saved_gptr

_CharT * _M_saved_gptr [private]

_State_type _M_state

_State_type _M_state [private]

int _M_width

int _M_width [private]