#include <std_fstream.h>
Inheritance diagram for std::basic_filebuf:
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 basic_streambuf< char_type, traits_type > | __streambuf_type |
typedef basic_filebuf< char_type, traits_type > | __filebuf_type |
typedef __basic_file< char_type > | __file_type |
typedef traits_type::state_type | __state_type |
typedef codecvt< char_type, char, __state_type > | __codecvt_type |
typedef __codecvt_type::result | __res_type |
typedef ctype< char_type > | __ctype_type |
Public Methods | |
basic_filebuf () | |
basic_filebuf (__c_file_type *__f, ios_base::openmode __mode, int_type __s=static_cast< int_type >(BUFSIZ)) | |
virtual | ~basic_filebuf () |
bool | is_open (void) const |
__filebuf_type * | open (const char *__s, ios_base::openmode __mode) |
__filebuf_type * | close (void) |
Protected Methods | |
void | _M_allocate_internal_buffer () |
void | _M_destroy_internal_buffer () |
void | _M_allocate_pback_buffer () |
void | _M_allocate_file () |
virtual streamsize | showmanyc (void) |
virtual int_type | underflow (void) |
virtual int_type | pbackfail (int_type __c=_Traits::eof()) |
virtual int_type | overflow (int_type __c=_Traits::eof()) |
int_type | _M_really_overflow (int_type __c=_Traits::eof()) |
virtual __streambuf_type * | setbuf (char_type *__s, streamsize __n) |
virtual pos_type | seekoff (off_type __off, ios_base::seekdir __way, ios_base::openmode __mode=ios_base::in|ios_base::out) |
virtual pos_type | seekpos (pos_type __pos, ios_base::openmode __mode=ios_base::in|ios_base::out) |
virtual int | sync (void) |
virtual void | imbue (const locale &__loc) |
virtual streamsize | xsgetn (char_type *__s, streamsize __n) |
virtual streamsize | xsputn (const char_type *__s, streamsize __n) |
void | _M_output_unshift () |
Private Attributes | |
__file_type * | _M_file |
__state_type | _M_state_cur |
__state_type | _M_state_beg |
__c_lock | _M_lock |
bool | _M_buf_allocated |
bool | _M_last_overflowed |
Friends | |
class | ios_base |
|
Definition at line 63 of file std_fstream.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 65 of file std_fstream.h. |
|
Definition at line 61 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_allocate_file(). |
|
Definition at line 60 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::close(), and std::basic_filebuf< _CharT, _Traits >::open(). |
|
Definition at line 64 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_really_overflow(). |
|
Definition at line 62 of file std_fstream.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 59 of file std_fstream.h. |
|
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 54 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_really_overflow(), std::basic_filebuf< _CharT, _Traits >::overflow(), std::basic_filebuf< _CharT, _Traits >::pbackfail(), and std::basic_filebuf< _CharT, _Traits >::underflow(). |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 56 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::seekoff(), std::basic_filebuf< _CharT, _Traits >::seekpos(), and std::basic_filebuf< char_type, traits_type >::sync(). |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 55 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::seekoff(), and std::basic_filebuf< _CharT, _Traits >::seekpos(). |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 53 of file std_fstream.h. |
|
Definition at line 113 of file fstream.tcc. |
|
|
Definition at line 96 of file std_fstream.h. |
|
|
|
Definition at line 96 of file fstream.tcc. References __throw_exception_again, std::basic_streambuf< _CharT, _Traits >::_M_pback, std::basic_streambuf< _CharT, _Traits >::_M_pback_size, and std::basic_filebuf< _CharT, _Traits >::char_type. Referenced by std::basic_filebuf< _CharT, _Traits >::basic_filebuf(), std::basic_filebuf< _CharT, _Traits >::open(), and std::basic_filebuf< _CharT, _Traits >::setbuf(). |
|
Definition at line 81 of file fstream.tcc. References std::basic_streambuf< _CharT, _Traits >::_M_buf, std::basic_filebuf< _CharT, _Traits >::_M_buf_allocated, std::basic_streambuf< _CharT, _Traits >::setg(), and std::basic_streambuf< _CharT, _Traits >::setp(). Referenced by std::basic_filebuf< _CharT, _Traits >::close(), and std::basic_filebuf< _CharT, _Traits >::setbuf(). |
|
Definition at line 578 of file fstream.tcc. Referenced by std::basic_filebuf< _CharT, _Traits >::close(), and std::basic_filebuf< _CharT, _Traits >::seekoff(). |
|
|
|
|
Definition at line 104 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::basic_filebuf(), std::basic_filebuf< _CharT, _Traits >::close(), std::basic_filebuf< _CharT, _Traits >::open(), std::basic_filebuf< _CharT, _Traits >::seekoff(), and std::basic_filebuf< _CharT, _Traits >::setbuf(). |
|
|
|
|
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 564 of file fstream.tcc. References std::basic_filebuf< _CharT, _Traits >::_M_last_overflowed, std::basic_filebuf< _CharT, _Traits >::off_type, std::basic_filebuf< _CharT, _Traits >::pos_type, and std::basic_filebuf< _CharT, _Traits >::seekoff(). |
|
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 217 of file fstream.tcc. References std::basic_streambuf< _CharT, _Traits >::_M_in_cur, std::basic_streambuf< _CharT, _Traits >::_M_in_end, std::basic_filebuf< _CharT, _Traits >::_M_last_overflowed, std::basic_streambuf< _CharT, _Traits >::_M_mode, and std::basic_filebuf< _CharT, _Traits >::underflow(). |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 173 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::seekoff(). |
|
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 199 of file std_fstream.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 220 of file std_fstream.h. |
|
Definition at line 67 of file std_fstream.h. |
|
Definition at line 82 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_allocate_internal_buffer(), and std::basic_filebuf< _CharT, _Traits >::_M_destroy_internal_buffer(). |
|
|
|
Definition at line 79 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_allocate_file(). |
|
Definition at line 76 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_really_overflow(). |
|
Definition at line 75 of file std_fstream.h. Referenced by std::basic_filebuf< _CharT, _Traits >::_M_really_overflow(). |