Inheritance diagram for std::strstreambuf:
Public Types | |
typedef char_traits< char > | _Traits |
typedef basic_streambuf< char, _Traits > | _Base |
Public Member Functions | |
strstreambuf (streamsize __initial_capacity=0) | |
strstreambuf (void *(*__alloc)(size_t), void(*__free)(void *)) | |
strstreambuf (char *__get, streamsize __n, char *__put=0) | |
strstreambuf (signed char *__get, streamsize __n, signed char *__put=0) | |
strstreambuf (unsigned char *__get, streamsize __n, unsigned char *__put=0) | |
strstreambuf (const char *__get, streamsize __n) | |
strstreambuf (const signed char *__get, streamsize __n) | |
strstreambuf (const unsigned char *__get, streamsize __n) | |
virtual | ~strstreambuf () |
void | freeze (bool=true) |
char * | str () |
int | pcount () const |
Protected Member Functions | |
virtual int_type | overflow (int_type __c=_Traits::eof()) |
virtual int_type | pbackfail (int_type __c=_Traits::eof()) |
virtual int_type | underflow () |
Fetches more data from the controlled sequence. | |
virtual _Base * | setbuf (char *__buf, streamsize __n) |
virtual pos_type | seekoff (off_type __off, ios_base::seekdir __dir, 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) |
Private Member Functions | |
strstreambuf & | operator= (const strstreambuf &) |
strstreambuf (const strstreambuf &) | |
char * | _M_alloc (size_t) |
void | _M_free (char *) |
void | _M_setup (char *__get, char *__put, streamsize __n) |
Private Attributes | |
void *(* | _M_alloc_fun )(size_t) |
void(* | _M_free_fun )(void *) |
bool | _M_dynamic: 1 |
bool | _M_frozen: 1 |
bool | _M_constant: 1 |
Definition at line 62 of file strstream.
typedef basic_streambuf<char, _Traits> std::strstreambuf::_Base |
typedef char_traits<char> std::strstreambuf::_Traits |
std::strstreambuf::strstreambuf | ( | streamsize | __initial_capacity = 0 |
) | [explicit] |
std::strstreambuf::strstreambuf | ( | void *(*)(size_t) | __alloc, | |
void(*)(void *) | __free | |||
) |
std::strstreambuf::strstreambuf | ( | char * | __get, | |
streamsize | __n, | |||
char * | __put = 0 | |||
) |
std::strstreambuf::strstreambuf | ( | signed char * | __get, | |
streamsize | __n, | |||
signed char * | __put = 0 | |||
) |
std::strstreambuf::strstreambuf | ( | unsigned char * | __get, | |
streamsize | __n, | |||
unsigned char * | __put = 0 | |||
) |
std::strstreambuf::strstreambuf | ( | const char * | __get, | |
streamsize | __n | |||
) |
std::strstreambuf::strstreambuf | ( | const signed char * | __get, | |
streamsize | __n | |||
) |
std::strstreambuf::strstreambuf | ( | const unsigned char * | __get, | |
streamsize | __n | |||
) |
virtual std::strstreambuf::~strstreambuf | ( | ) | [virtual] |
std::strstreambuf::strstreambuf | ( | const strstreambuf & | ) | [private] |
char* std::strstreambuf::_M_alloc | ( | size_t | ) | [private] |
void std::strstreambuf::_M_free | ( | char * | ) | [private] |
void std::strstreambuf::_M_setup | ( | char * | __get, | |
char * | __put, | |||
streamsize | __n | |||
) | [private] |
void std::strstreambuf::freeze | ( | bool | = true |
) |
strstreambuf& std::strstreambuf::operator= | ( | const strstreambuf & | ) | [private] |
virtual int_type std::strstreambuf::pbackfail | ( | int_type | __c = _Traits::eof() |
) | [protected, virtual] |
int std::strstreambuf::pcount | ( | ) | const |
virtual pos_type std::strstreambuf::seekoff | ( | off_type | __off, | |
ios_base::seekdir | __dir, | |||
ios_base::openmode | __mode = ios_base::in|ios_base::out | |||
) | [protected, virtual] |
virtual pos_type std::strstreambuf::seekpos | ( | pos_type | __pos, | |
ios_base::openmode | __mode = ios_base::in|ios_base::out | |||
) | [protected, virtual] |
virtual _Base* std::strstreambuf::setbuf | ( | char * | __buf, | |
streamsize | __n | |||
) | [protected, virtual] |
char* std::strstreambuf::str | ( | ) |
virtual int_type std::strstreambuf::underflow | ( | ) | [protected, virtual] |
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 >.
void*(* std::strstreambuf::_M_alloc_fun)(size_t) [private] |
bool std::strstreambuf::_M_constant [private] |
bool std::strstreambuf::_M_dynamic [private] |
void(* std::strstreambuf::_M_free_fun)(void *) [private] |
bool std::strstreambuf::_M_frozen [private] |