PPL
1.2
|
#include <c_streambuf_defs.hh>
Public Member Functions | |
c_streambuf () | |
Constructor. More... | |
virtual | ~c_streambuf () |
Destructor. 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 Member Functions | |
virtual size_t | cb_read (char *, size_t) |
virtual size_t | cb_write (const char *, size_t) |
virtual int | cb_sync () |
virtual int | cb_flush () |
Private Attributes | |
int_type | unget_char_buf |
Buffer for the last character read. More... | |
int_type | next_char_buf |
Buffer for next character. More... | |
Definition at line 31 of file c_streambuf_defs.hh.
|
private |
Character type of the streambuf.
Definition at line 97 of file c_streambuf_defs.hh.
|
private |
Integer type of the streambuf.
Definition at line 103 of file c_streambuf_defs.hh.
|
private |
Traits type of the streambuf.
Definition at line 100 of file c_streambuf_defs.hh.
|
inline |
Constructor.
Definition at line 30 of file c_streambuf_inlines.hh.
|
virtual |
|
inlineprivatevirtual |
Definition at line 120 of file c_streambuf_defs.hh.
|
inlineprivatevirtual |
Definition at line 111 of file c_streambuf_defs.hh.
Referenced by underflow(), and xsgetn().
|
inlineprivatevirtual |
|
inlineprivatevirtual |
Definition at line 114 of file c_streambuf_defs.hh.
Referenced by overflow(), and xsputn().
|
protectedvirtual |
Writes a character in case of overflow.
Specified by ISO/IEC 14882:1998: 27.5.2.4.5.
Definition at line 98 of file c_streambuf.cc.
References c, cb_write(), and sync().
|
protectedvirtual |
Puts character back in case of backup underflow.
Definition at line 83 of file c_streambuf.cc.
References c, next_char_buf, and unget_char_buf.
|
protectedvirtual |
Synchronizes the stream buffer.
Specified by ISO/IEC 14882:1998: 27.5.2.4.2.
Definition at line 115 of file c_streambuf.cc.
References cb_sync().
Referenced by overflow().
|
protectedvirtual |
In case of underflow, gets a character and advances the next pointer.
Definition at line 35 of file c_streambuf.cc.
References c, next_char_buf, and underflow().
|
protectedvirtual |
Gets a character in case of underflow.
Definition at line 42 of file c_streambuf.cc.
References cb_read(), and next_char_buf.
Referenced by uflow().
|
protectedvirtual |
Gets a sequence of characters.
Definition at line 57 of file c_streambuf.cc.
References cb_read(), next_char_buf, and unget_char_buf.
|
protectedvirtual |
Writes a sequence of characters.
Definition at line 91 of file c_streambuf.cc.
References cb_write().
|
private |
Buffer for next character.
Definition at line 109 of file c_streambuf_defs.hh.
Referenced by pbackfail(), uflow(), underflow(), and xsgetn().
|
private |
Buffer for the last character read.
Definition at line 106 of file c_streambuf_defs.hh.
Referenced by pbackfail(), and xsgetn().