Inheritance diagram for std::basic_istringstream< _CharT, _Traits, _Alloc >:

Public Types | |
| typedef _CharT | char_type |
| typedef _Traits | traits_type |
| typedef _Alloc | allocator_type |
| typedef traits_type::int_type | int_type |
| typedef traits_type::pos_type | pos_type |
| typedef traits_type::off_type | off_type |
| typedef basic_string< _CharT, _Traits, _Alloc > | __string_type |
| typedef basic_stringbuf< _CharT, _Traits, _Alloc > | __stringbuf_type |
| typedef basic_istream< char_type, traits_type > | __istream_type |
Public Member Functions | |
| basic_istringstream (ios_base::openmode __mode=ios_base::in) | |
| Default constructor starts with an empty string buffer. | |
| basic_istringstream (const __string_type &__str, ios_base::openmode __mode=ios_base::in) | |
| Starts with an existing string buffer. | |
| ~basic_istringstream () | |
| The destructor does nothing. | |
| __stringbuf_type * | rdbuf () const |
| Accessing the underlying buffer. | |
| __string_type | str () const |
| Copying out the string buffer. | |
| void | str (const __string_type &__s) |
| Setting a new buffer. | |
Private Attributes | |
| __stringbuf_type | _M_stringbuf |
This class supports reading from objects of type std::basic_string, using the inherited functions from std::basic_istream. To control the associated sequence, an instance of std::basic_stringbuf is used, which this page refers to as sb.
Definition at line 261 of file sstream.
| typedef basic_istream<char_type, traits_type> std::basic_istringstream< _CharT, _Traits, _Alloc >::__istream_type |
| typedef basic_string<_CharT, _Traits, _Alloc> std::basic_istringstream< _CharT, _Traits, _Alloc >::__string_type |
| typedef basic_stringbuf<_CharT, _Traits, _Alloc> std::basic_istringstream< _CharT, _Traits, _Alloc >::__stringbuf_type |
| typedef _Alloc std::basic_istringstream< _CharT, _Traits, _Alloc >::allocator_type |
| typedef _CharT std::basic_istringstream< _CharT, _Traits, _Alloc >::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_istream< _CharT, _Traits >.
| typedef traits_type::int_type std::basic_istringstream< _CharT, _Traits, _Alloc >::int_type |
| typedef traits_type::off_type std::basic_istringstream< _CharT, _Traits, _Alloc >::off_type |
| typedef traits_type::pos_type std::basic_istringstream< _CharT, _Traits, _Alloc >::pos_type |
| typedef _Traits std::basic_istringstream< _CharT, _Traits, _Alloc >::traits_type |
| std::basic_istringstream< _CharT, _Traits, _Alloc >::basic_istringstream | ( | ios_base::openmode | __mode = ios_base::in |
) | [inline, explicit] |
Default constructor starts with an empty string buffer.
| mode | Whether the buffer can read, or write, or both. |
ios_base::in is automatically included in mode.
Initializes sb using mode|in, and passes &sb to the base class initializer. Does not allocate any buffer.
Definition at line 299 of file sstream.
References std::basic_istringstream< _CharT, _Traits, _Alloc >::_M_stringbuf, and std::basic_ios< _CharT, _Traits >::init().
| std::basic_istringstream< _CharT, _Traits, _Alloc >::basic_istringstream | ( | const __string_type & | __str, | |
| ios_base::openmode | __mode = ios_base::in | |||
| ) | [inline, explicit] |
Starts with an existing string buffer.
| str | A string to copy as a starting buffer. | |
| mode | Whether the buffer can read, or write, or both. |
ios_base::in is automatically included in mode.
Initializes sb using str and mode|in, and passes &sb to the base class initializer.
Definition at line 319 of file sstream.
References std::basic_istringstream< _CharT, _Traits, _Alloc >::_M_stringbuf, and std::basic_ios< _CharT, _Traits >::init().
| std::basic_istringstream< _CharT, _Traits, _Alloc >::~basic_istringstream | ( | ) | [inline] |
| __stringbuf_type* std::basic_istringstream< _CharT, _Traits, _Alloc >::rdbuf | ( | ) | const [inline] |
Accessing the underlying buffer.
Reimplemented from std::basic_ios< _CharT, _Traits >.
Definition at line 341 of file sstream.
References std::basic_istringstream< _CharT, _Traits, _Alloc >::_M_stringbuf.
| void std::basic_istringstream< _CharT, _Traits, _Alloc >::str | ( | const __string_type & | __s | ) | [inline] |
Setting a new buffer.
| s | The string to use as a new sequence. |
rdbuf()->str(s).
Definition at line 359 of file sstream.
References std::basic_istringstream< _CharT, _Traits, _Alloc >::_M_stringbuf, and std::basic_stringbuf< _CharT, _Traits, _Alloc >::str().
| __string_type std::basic_istringstream< _CharT, _Traits, _Alloc >::str | ( | ) | const [inline] |
Copying out the string buffer.
Definition at line 349 of file sstream.
References std::basic_istringstream< _CharT, _Traits, _Alloc >::_M_stringbuf, and std::basic_stringbuf< _CharT, _Traits, _Alloc >::str().
__stringbuf_type std::basic_istringstream< _CharT, _Traits, _Alloc >::_M_stringbuf [private] |
Definition at line 280 of file sstream.
Referenced by std::basic_istringstream< _CharT, _Traits, _Alloc >::basic_istringstream(), std::basic_istringstream< _CharT, _Traits, _Alloc >::rdbuf(), and std::basic_istringstream< _CharT, _Traits, _Alloc >::str().
1.4.7