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()
boolis_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
voidimbue(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()
intsync()
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 &)

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

Parameters

const locale & __loc

is_open()

boolis_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]

Parameters

pos_type __pos
ios_base::openmode

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

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

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]