|
PPL
1.2
|
#include <stdiobuf_defs.hh>


Public Member Functions | |
| stdiobuf (FILE *file) | |
| Constructor. More... | |
Protected Member Functions | |
| virtual int_type | underflow () |
| Gets a character in case of underflow. More... | |
| virtual int_type | uflow () |
| In case of underflow, gets a character and advances the next pointer. More... | |
| virtual std::streamsize | xsgetn (char_type *s, std::streamsize n) |
| Gets a sequence of characters. More... | |
| virtual int_type | pbackfail (int_type c=traits_type::eof()) |
| Puts character back in case of backup underflow. More... | |
| virtual std::streamsize | xsputn (const char_type *s, std::streamsize n) |
| Writes a sequence of characters. More... | |
| virtual int_type | overflow (int_type c) |
| Writes a character in case of overflow. More... | |
| virtual int | sync () |
| Synchronizes the stream buffer. More... | |
Private Types | |
| typedef char | char_type |
| Character type of the streambuf. More... | |
| typedef std::char_traits< char_type > | traits_type |
| Traits type of the streambuf. More... | |
| typedef traits_type::int_type | int_type |
| Integer type of the streambuf. More... | |
Private Attributes | |
| FILE * | fp |
| The encapsulated stdio file. More... | |
| int_type | unget_char_buf |
| Buffer for the last character read. More... | |
Definition at line 31 of file stdiobuf_defs.hh.
|
private |
Character type of the streambuf.
Definition at line 94 of file stdiobuf_defs.hh.
|
private |
Integer type of the streambuf.
Definition at line 100 of file stdiobuf_defs.hh.
|
private |
Traits type of the streambuf.
Definition at line 97 of file stdiobuf_defs.hh.
|
inline |
Constructor.
Definition at line 30 of file stdiobuf_inlines.hh.
|
protectedvirtual |
Writes a character in case of overflow.
Specified by ISO/IEC 14882:1998: 27.5.2.4.5.
Definition at line 73 of file stdiobuf.cc.
References fp.
|
protectedvirtual |
Puts character back in case of backup underflow.
Definition at line 58 of file stdiobuf.cc.
References c, fp, and unget_char_buf.
|
protectedvirtual |
Synchronizes the stream buffer.
Specified by ISO/IEC 14882:1998: 27.5.2.4.2.
Definition at line 84 of file stdiobuf.cc.
References fp.
|
protectedvirtual |
In case of underflow, gets a character and advances the next pointer.
Definition at line 33 of file stdiobuf.cc.
References fp, and unget_char_buf.
|
protectedvirtual |
Gets a character in case of underflow.
Definition at line 39 of file stdiobuf.cc.
|
protectedvirtual |
Gets a sequence of characters.
Definition at line 45 of file stdiobuf.cc.
References fp, and unget_char_buf.
|
protectedvirtual |
Writes a sequence of characters.
Definition at line 66 of file stdiobuf.cc.
References fp.
|
private |
The encapsulated stdio file.
Definition at line 103 of file stdiobuf_defs.hh.
Referenced by overflow(), pbackfail(), sync(), uflow(), underflow(), xsgetn(), and xsputn().
|
private |
Buffer for the last character read.
Definition at line 106 of file stdiobuf_defs.hh.
Referenced by pbackfail(), uflow(), and xsgetn().