#include <basic-filebuf.h>
Public Types | |
typedef CharT | char_type |
typedef Traits | traits_type |
typedef traits_type::int_type | int_type |
typedef traits_type::pos_type | pos_type |
typedef traits_type::off_type | off_type |
typedef traits_type::state_type | state_type |
Public Member Functions | |
basic_filebuf () | |
basic_filebuf (basic_filebuf &&rhs) | |
virtual | ~basic_filebuf () |
basic_filebuf & | operator= (basic_filebuf &&rhs) |
void | swap (basic_filebuf &rhs) |
bool | is_open () const |
basic_filebuf * | open (const char *s, std::ios_base::openmode mode) |
basic_filebuf * | open (const std::string &s, std::ios_base::openmode mode) |
basic_filebuf * | open (int fd, std::ios_base::openmode mode) |
basic_filebuf * | open (FILE *f, std::ios_base::openmode mode) |
basic_filebuf * | close () |
FILE * | file () |
int | fd () |
Protected Member Functions | |
int_type | underflow () override |
int_type | pbackfail (int_type c=traits_type::eof()) override |
int_type | overflow (int_type c=traits_type::eof()) override |
std::basic_streambuf< char_type, traits_type > * | setbuf (char_type *s, std::streamsize n) override |
pos_type | seekoff (off_type off, std::ios_base::seekdir way, std::ios_base::openmode wch=std::ios_base::in|std::ios_base::out) override |
pos_type | seekpos (pos_type sp, std::ios_base::openmode wch=std::ios_base::in|std::ios_base::out) override |
int | sync () override |
void | imbue (const std::locale &loc) override |
const char * | _M_get_mode (std::ios_base::openmode mode) |
bool | _M_read_mode () |
void | _M_write_mode () |
Protected Attributes | |
char * | _M_extbuf |
const char * | _M_extbufnext |
const char * | _M_extbufend |
char | _M_extbuf_min [8] |
size_t | _M_ebs |
char_type * | _M_intbuf |
size_t | _M_ibs |
FILE * | _M_file |
const std::codecvt< char_type, char, state_type > * | _M_cv |
state_type | _M_st |
state_type | _M_st_last |
std::ios_base::openmode | _M_om |
std::ios_base::openmode | _M_cm |
bool | _M_owns_eb |
bool | _M_owns_ib |
bool | _M_always_noconv |
Definition at line 25 of file basic-filebuf.h.
typedef CharT char_type |
Definition at line 27 of file basic-filebuf.h.
typedef traits_type::int_type int_type |
Definition at line 29 of file basic-filebuf.h.
typedef traits_type::off_type off_type |
Definition at line 31 of file basic-filebuf.h.
typedef traits_type::pos_type pos_type |
Definition at line 30 of file basic-filebuf.h.
typedef traits_type::state_type state_type |
Definition at line 32 of file basic-filebuf.h.
typedef Traits traits_type |
Definition at line 28 of file basic-filebuf.h.
basic_filebuf | ( | ) |
Definition at line 91 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cv, and basic_filebuf< CharT, Traits >::setbuf().
basic_filebuf | ( | basic_filebuf< CharT, Traits > && | rhs | ) |
Definition at line 118 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cm, basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbuf_min, basic_filebuf< CharT, Traits >::_M_extbufend, basic_filebuf< CharT, Traits >::_M_extbufnext, basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_ibs, basic_filebuf< CharT, Traits >::_M_intbuf, basic_filebuf< CharT, Traits >::_M_om, basic_filebuf< CharT, Traits >::_M_owns_eb, basic_filebuf< CharT, Traits >::_M_owns_ib, basic_filebuf< CharT, Traits >::_M_st, and basic_filebuf< CharT, Traits >::_M_st_last.
|
virtual |
Definition at line 189 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_intbuf, basic_filebuf< CharT, Traits >::_M_owns_eb, and basic_filebuf< CharT, Traits >::_M_owns_ib.
|
protected |
Definition at line 290 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::open().
Referenced by basic_filebuf< CharT, Traits >::is_open(), and basic_filebuf< CharT, Traits >::open().
|
protected |
Definition at line 748 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cm, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_ibs, and basic_filebuf< CharT, Traits >::_M_intbuf.
Referenced by basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 766 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cm, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbuf_min, basic_filebuf< CharT, Traits >::_M_ibs, and basic_filebuf< CharT, Traits >::_M_intbuf.
Referenced by basic_filebuf< CharT, Traits >::overflow().
basic_filebuf< CharT, Traits > * close | ( | ) |
Definition at line 391 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, and basic_filebuf< CharT, Traits >::sync().
Referenced by basic_filebuf< CharT, Traits >::operator=().
|
inline |
Definition at line 49 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::imbue(), rnnlm::n, basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::pbackfail(), basic_filebuf< CharT, Traits >::seekoff(), basic_filebuf< CharT, Traits >::seekpos(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
inline |
|
overrideprotected |
Definition at line 709 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbuf_min, basic_filebuf< CharT, Traits >::_M_ibs, basic_filebuf< CharT, Traits >::_M_intbuf, basic_filebuf< CharT, Traits >::_M_owns_eb, basic_filebuf< CharT, Traits >::_M_owns_ib, and basic_filebuf< CharT, Traits >::sync().
Referenced by basic_filebuf< CharT, Traits >::fd().
|
inline |
Definition at line 283 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, and basic_filebuf< CharT, Traits >::_M_get_mode().
basic_filebuf< CharT, Traits > * open | ( | const char * | s, |
std::ios_base::openmode | mode | ||
) |
Definition at line 334 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_get_mode(), and basic_filebuf< CharT, Traits >::_M_om.
Referenced by basic_filebuf< CharT, Traits >::_M_get_mode(), and basic_filebuf< CharT, Traits >::open().
|
inline |
Definition at line 360 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::open().
basic_filebuf< CharT, Traits > * open | ( | int | fd, |
std::ios_base::openmode | mode | ||
) |
Definition at line 368 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_get_mode(), and basic_filebuf< CharT, Traits >::_M_om.
basic_filebuf< CharT, Traits > * open | ( | FILE * | f, |
std::ios_base::openmode | mode | ||
) |
Definition at line 382 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, and basic_filebuf< CharT, Traits >::_M_om.
|
inline |
Definition at line 181 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::close(), and basic_filebuf< CharT, Traits >::swap().
|
overrideprotected |
Definition at line 494 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_st, and basic_filebuf< CharT, Traits >::_M_write_mode().
Referenced by basic_filebuf< CharT, Traits >::fd(), and basic_filebuf< CharT, Traits >::sync().
|
overrideprotected |
Definition at line 475 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, and basic_filebuf< CharT, Traits >::_M_om.
Referenced by basic_filebuf< CharT, Traits >::fd().
|
overrideprotected |
Definition at line 593 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_st, and basic_filebuf< CharT, Traits >::sync().
Referenced by basic_filebuf< CharT, Traits >::fd().
|
overrideprotected |
Definition at line 631 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_st, and basic_filebuf< CharT, Traits >::sync().
Referenced by basic_filebuf< CharT, Traits >::fd().
|
overrideprotected |
Definition at line 552 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbuf_min, basic_filebuf< CharT, Traits >::_M_ibs, basic_filebuf< CharT, Traits >::_M_intbuf, basic_filebuf< CharT, Traits >::_M_owns_eb, basic_filebuf< CharT, Traits >::_M_owns_ib, and rnnlm::n.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), and basic_filebuf< CharT, Traits >::fd().
void swap | ( | basic_filebuf< CharT, Traits > & | rhs | ) |
Definition at line 206 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cm, basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbuf_min, basic_filebuf< CharT, Traits >::_M_extbufend, basic_filebuf< CharT, Traits >::_M_extbufnext, basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_ibs, basic_filebuf< CharT, Traits >::_M_intbuf, basic_filebuf< CharT, Traits >::_M_om, basic_filebuf< CharT, Traits >::_M_owns_eb, basic_filebuf< CharT, Traits >::_M_owns_ib, basic_filebuf< CharT, Traits >::_M_st, basic_filebuf< CharT, Traits >::_M_st_last, rnnlm::n, and kaldi::swap().
Referenced by basic_filebuf< CharT, Traits >::operator=(), and kaldi::swap().
|
overrideprotected |
Definition at line 648 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cm, basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbufend, basic_filebuf< CharT, Traits >::_M_extbufnext, basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_st, basic_filebuf< CharT, Traits >::_M_st_last, and basic_filebuf< CharT, Traits >::overflow().
Referenced by basic_filebuf< CharT, Traits >::close(), basic_filebuf< CharT, Traits >::fd(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::seekoff(), and basic_filebuf< CharT, Traits >::seekpos().
|
overrideprotected |
Definition at line 409 of file basic-filebuf.h.
References basic_filebuf< CharT, Traits >::_M_always_noconv, basic_filebuf< CharT, Traits >::_M_cv, basic_filebuf< CharT, Traits >::_M_ebs, basic_filebuf< CharT, Traits >::_M_extbuf, basic_filebuf< CharT, Traits >::_M_extbuf_min, basic_filebuf< CharT, Traits >::_M_extbufend, basic_filebuf< CharT, Traits >::_M_extbufnext, basic_filebuf< CharT, Traits >::_M_file, basic_filebuf< CharT, Traits >::_M_ibs, basic_filebuf< CharT, Traits >::_M_read_mode(), basic_filebuf< CharT, Traits >::_M_st, and basic_filebuf< CharT, Traits >::_M_st_last.
Referenced by basic_filebuf< CharT, Traits >::fd().
|
protected |
Definition at line 82 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::_M_read_mode(), basic_filebuf< CharT, Traits >::_M_write_mode(), basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
|
protected |
Definition at line 75 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::seekoff(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 71 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::_M_read_mode(), basic_filebuf< CharT, Traits >::_M_write_mode(), basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 67 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::_M_read_mode(), basic_filebuf< CharT, Traits >::_M_write_mode(), basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), basic_filebuf< CharT, Traits >::underflow(), and basic_filebuf< CharT, Traits >::~basic_filebuf().
|
protected |
Definition at line 70 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::_M_write_mode(), basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::swap(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 69 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 68 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 74 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::close(), basic_filebuf< CharT, Traits >::fd(), basic_filebuf< CharT, Traits >::file(), basic_filebuf< CharT, Traits >::is_open(), basic_filebuf< CharT, Traits >::open(), basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::pbackfail(), basic_filebuf< CharT, Traits >::seekoff(), basic_filebuf< CharT, Traits >::seekpos(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 73 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::_M_read_mode(), basic_filebuf< CharT, Traits >::_M_write_mode(), basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::swap(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 72 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::_M_read_mode(), basic_filebuf< CharT, Traits >::_M_write_mode(), basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::imbue(), basic_filebuf< CharT, Traits >::setbuf(), basic_filebuf< CharT, Traits >::swap(), and basic_filebuf< CharT, Traits >::~basic_filebuf().
|
protected |
Definition at line 78 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::open(), basic_filebuf< CharT, Traits >::pbackfail(), and basic_filebuf< CharT, Traits >::swap().
|
protected |
|
protected |
|
protected |
Definition at line 76 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::overflow(), basic_filebuf< CharT, Traits >::seekoff(), basic_filebuf< CharT, Traits >::seekpos(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().
|
protected |
Definition at line 77 of file basic-filebuf.h.
Referenced by basic_filebuf< CharT, Traits >::basic_filebuf(), basic_filebuf< CharT, Traits >::swap(), basic_filebuf< CharT, Traits >::sync(), and basic_filebuf< CharT, Traits >::underflow().