#include <stdio_filebuf.h>
Inheritance diagram for __gnu_cxx::stdio_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 |
typedef std::size_t | size_t |
Public Member Functions | |
stdio_filebuf () | |
stdio_filebuf (int __fd, std::ios_base::openmode __mode, size_t __size=static_cast< size_t >(BUFSIZ)) | |
stdio_filebuf (std::__c_file *__f, std::ios_base::openmode __mode, size_t __size=static_cast< size_t >(BUFSIZ)) | |
virtual | ~stdio_filebuf () |
int | fd () |
std::__c_file * | file () |
This GNU extension provides extensions for working with standard C FILE*'s and POSIX file descriptors. It must be instantiated by the user with the type of character used in the file stream, e.g., stdio_filebuf<char>.
Definition at line 52 of file stdio_filebuf.h.
typedef _CharT __gnu_cxx::stdio_filebuf< _CharT, _Traits >::char_type |
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_filebuf< _CharT, _Traits >.
Definition at line 56 of file stdio_filebuf.h.
typedef traits_type::int_type __gnu_cxx::stdio_filebuf< _CharT, _Traits >::int_type |
Reimplemented from std::basic_filebuf< _CharT, _Traits >.
Definition at line 58 of file stdio_filebuf.h.
typedef traits_type::off_type __gnu_cxx::stdio_filebuf< _CharT, _Traits >::off_type |
Reimplemented from std::basic_filebuf< _CharT, _Traits >.
Definition at line 60 of file stdio_filebuf.h.
typedef traits_type::pos_type __gnu_cxx::stdio_filebuf< _CharT, _Traits >::pos_type |
Reimplemented from std::basic_filebuf< _CharT, _Traits >.
Definition at line 59 of file stdio_filebuf.h.
typedef std::size_t __gnu_cxx::stdio_filebuf< _CharT, _Traits >::size_t |
Definition at line 61 of file stdio_filebuf.h.
typedef _Traits __gnu_cxx::stdio_filebuf< _CharT, _Traits >::traits_type |
Reimplemented from std::basic_filebuf< _CharT, _Traits >.
Definition at line 57 of file stdio_filebuf.h.
__gnu_cxx::stdio_filebuf< _CharT, _Traits >::stdio_filebuf | ( | ) | [inline] |
deferred initialization
Definition at line 67 of file stdio_filebuf.h.
__gnu_cxx::stdio_filebuf< _CharT, _Traits >::stdio_filebuf | ( | int | __fd, | |
std::ios_base::openmode | __mode, | |||
size_t | __size = static_cast< size_t >(BUFSIZ) | |||
) |
fd | An open file descriptor. | |
mode | Same meaning as in a standard filebuf. | |
size | Optimal or preferred size of internal buffer, in chars. |
Definition at line 129 of file stdio_filebuf.h.
References std::basic_filebuf< _CharT, _Traits >::_M_file, std::basic_filebuf< _CharT, _Traits >::_M_reading, std::basic_filebuf< _CharT, _Traits >::_M_set_buffer(), and std::basic_filebuf< _CharT, _Traits >::_M_writing.
__gnu_cxx::stdio_filebuf< _CharT, _Traits >::stdio_filebuf | ( | std::__c_file * | __f, | |
std::ios_base::openmode | __mode, | |||
size_t | __size = static_cast< size_t >(BUFSIZ) | |||
) |
f | An open FILE* . | |
mode | Same meaning as in a standard filebuf. | |
size | Optimal or preferred size of internal buffer, in chars. Defaults to system's BUFSIZ . |
FILE*
. The FILE*
will not be automatically closed when the stdio_filebuf is closed/destroyed.
Definition at line 145 of file stdio_filebuf.h.
References std::basic_filebuf< _CharT, _Traits >::_M_file, std::basic_filebuf< _CharT, _Traits >::_M_reading, std::basic_filebuf< _CharT, _Traits >::_M_set_buffer(), and std::basic_filebuf< _CharT, _Traits >::_M_writing.
__gnu_cxx::stdio_filebuf< _CharT, _Traits >::~stdio_filebuf | ( | ) | [virtual] |
Closes the external data stream if the file descriptor constructor was used.
Definition at line 124 of file stdio_filebuf.h.
int __gnu_cxx::stdio_filebuf< _CharT, _Traits >::fd | ( | ) | [inline] |
Definition at line 110 of file stdio_filebuf.h.
References std::basic_filebuf< _CharT, _Traits >::_M_file.
std::__c_file* __gnu_cxx::stdio_filebuf< _CharT, _Traits >::file | ( | ) | [inline] |
Definition at line 120 of file stdio_filebuf.h.
References std::basic_filebuf< _CharT, _Traits >::_M_file.