#include <stdio_sync_filebuf.h>
Inheritance diagram for __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >:
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 |
Public Member Functions | |
stdio_sync_filebuf (std::__c_file *__f) | |
std::__c_file *const | file () |
Protected Member Functions | |
int_type | syncgetc () |
int_type | syncungetc (int_type __c) |
int_type | syncputc (int_type __c) |
virtual int_type | underflow () |
Fetches more data from the controlled sequence. | |
virtual int_type | uflow () |
Fetches more data from the controlled sequence. | |
virtual int_type | pbackfail (int_type __c=traits_type::eof()) |
Tries to back up the input sequence. | |
virtual std::streamsize | xsgetn (char_type *__s, std::streamsize __n) |
Multiple character extraction. | |
virtual int_type | overflow (int_type __c=traits_type::eof()) |
Consumes data from the buffer; writes to the controlled sequence. | |
virtual std::streamsize | xsputn (const char_type *__s, std::streamsize __n) |
Multiple character insertion. | |
virtual int | sync () |
Synchronizes the buffer arrays with the controlled sequences. | |
virtual std::streampos | seekoff (std::streamoff __off, std::ios_base::seekdir __dir, std::ios_base::openmode=std::ios_base::in|std::ios_base::out) |
virtual std::streampos | seekpos (std::streampos __pos, std::ios_base::openmode __mode=std::ios_base::in|std::ios_base::out) |
Private Attributes | |
std::__c_file *const | _M_file |
int_type | _M_unget_buf |
|
These are standard types. They permit a standardized way of referring to names of (or names dependant on) the template parameters, which are specific to the implementation. Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 54 of file stdio_sync_filebuf.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 56 of file stdio_sync_filebuf.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 58 of file stdio_sync_filebuf.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 57 of file stdio_sync_filebuf.h. |
|
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 55 of file stdio_sync_filebuf.h. |
|
Definition at line 70 of file stdio_sync_filebuf.h. References std::__c_file, and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::_M_unget_buf. |
|
Definition at line 82 of file stdio_sync_filebuf.h. |
|
Consumes data from the buffer; writes to the controlled sequence.
eof() .For a formal definiton of this function, see a good text such as Langer & Kreft, or [27.5.2.4.5]/3-7. A functioning output streambuf can be created by overriding only this function (no buffer area will be used).
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 135 of file stdio_sync_filebuf.h. References __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::syncputc(). |
|
Tries to back up the input sequence.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 110 of file stdio_sync_filebuf.h. References __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::_M_unget_buf, and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::syncungetc(). |
|
Definition at line 158 of file stdio_sync_filebuf.h. References std::ios_base::openmode, std::ios_base::seekdir, std::streamoff, and std::streampos. Referenced by __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::seekpos(). |
|
Definition at line 180 of file stdio_sync_filebuf.h. References std::ios_base::openmode, __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::seekoff(), std::streamoff, and std::streampos. |
|
Synchronizes the buffer arrays with the controlled sequences.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 154 of file stdio_sync_filebuf.h. |
|
Definition at line 188 of file stdio_sync_filebuf.h. Referenced by __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::uflow(), and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::underflow(). |
|
Definition at line 198 of file stdio_sync_filebuf.h. Referenced by __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::overflow(). |
|
Definition at line 193 of file stdio_sync_filebuf.h. Referenced by __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::pbackfail(), and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::underflow(). |
|
Fetches more data from the controlled sequence.
underflow() , and in fact is required to call that function. It also returns the new character, like underflow() does. However, this function also moves the read position forward by one.
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 102 of file stdio_sync_filebuf.h. References __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::_M_unget_buf, and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::syncgetc(). |
|
Fetches more data from the controlled sequence.
traits::eof() to indicate a null pending sequence.For a formal definiton of the pending sequence, see a good text such as Langer & Kreft, or [27.5.2.4.3]/7-14. A functioning input streambuf can be created by overriding only this function (no buffer area will be used). For an example, see http://gcc.gnu.org/onlinedocs/libstdc++/27_io/howto.html#6
Reimplemented from std::basic_streambuf< _CharT, _Traits >. Definition at line 95 of file stdio_sync_filebuf.h. References __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::syncgetc(), and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::syncungetc(). |
|
Multiple character extraction.
sbumpc() . Stops when either n characters have been copied, or when traits::eof() would be copied.It is expected that derived classes provide a more efficient implementation by overriding this definition. Reimplemented from std::basic_streambuf< _CharT, _Traits >. |
|
Multiple character insertion.
sputc() . Stops when either n characters have been copied, or when sputc() would return traits::eof() .It is expected that derived classes provide a more efficient implementation by overriding this definition. Reimplemented from std::basic_streambuf< _CharT, _Traits >. |
|
Definition at line 62 of file stdio_sync_filebuf.h. |
|
Definition at line 66 of file stdio_sync_filebuf.h. Referenced by __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::pbackfail(), __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::stdio_sync_filebuf(), and __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits >::uflow(). |