Classes |
class | __gnu_cxx::stdio_filebuf< _CharT, _Traits > |
| Provides a layer of compatibility for C/POSIX.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>. More...
|
class | __gnu_cxx::stdio_sync_filebuf< _CharT, _Traits > |
| Provides a layer of compatibility for C.This GNU extension provides extensions for working with standard C FILE*'s. It must be instantiated by the user with the type of character used in the file stream, e.g., stdio_filebuf<char>. More...
|
class | std::basic_filebuf< _CharT, _Traits > |
| The actual work of input and output (for files). More...
|
class | std::basic_fstream< _CharT, _Traits > |
| Controlling input and output for files. More...
|
class | std::basic_ifstream< _CharT, _Traits > |
| Controlling input for files. More...
|
class | std::basic_ios< _CharT, _Traits > |
| Template class basic_ios, virtual base class for all stream classes. More...
|
class | std::basic_iostream< _CharT, _Traits > |
| Template class basic_iostream. More...
|
class | std::basic_istream< _CharT, _Traits > |
| Template class basic_istream. More...
|
class | std::basic_istringstream< _CharT, _Traits, _Alloc > |
| Controlling input for std::string. More...
|
class | std::basic_ofstream< _CharT, _Traits > |
| Controlling output for files. More...
|
class | std::basic_ostream< _CharT, _Traits > |
| Template class basic_ostream. More...
|
class | std::basic_ostringstream< _CharT, _Traits, _Alloc > |
| Controlling output for std::string. More...
|
class | std::basic_streambuf< _CharT, _Traits > |
| The actual work of input and output (interface). More...
|
class | std::basic_stringbuf< _CharT, _Traits, _Alloc > |
| The actual work of input and output (for std::string). More...
|
class | std::basic_stringstream< _CharT, _Traits, _Alloc > |
| Controlling input and output for std::string. More...
|
class | std::ios_base |
| The base of the I/O class hierarchy.This class defines everything that can be defined about I/O that does not depend on the type of characters being input or output. Most people will only see ios_base when they need to specify the full name of the various I/O flags (e.g., the openmodes). More...
|
Detailed Description
Nearly all of the I/O classes are parameterized on the type of characters they read and write. (The major exception is ios_base at the top of the hierarchy.) This is a change from pre-Standard streams, which were not templates.
For ease of use and compatibility, all of the basic_* I/O-related classes are given typedef names for both of the builtin character widths (wide and narrow). The typedefs are the same as the pre-Standard names, for example:
Because properly forward-declaring these classes can be difficult, you should not do it yourself. Instead, include the <iosfwd> header, which contains only declarations of all the I/O classes as well as the typedefs. Trying to forward-declare the typedefs themselves (e.g., class ostream;
) is not valid ISO C++.
For more specific declarations, see http://gcc.gnu.org/onlinedocs/libstdc++/manual/bk01pt11ch24.html
Typedef Documentation
Class for char
file buffers.
Definition at line 154 of file iosfwd.
Class for char
mixed input and output file streams.
Definition at line 163 of file iosfwd.
Class for char
input file streams.
Definition at line 157 of file iosfwd.
Base class for char
streams.
Definition at line 123 of file iosfwd.
Base class for char
mixed input and output streams.
Definition at line 139 of file iosfwd.
Base class for char
input streams.
Definition at line 133 of file iosfwd.
Class for char
input memory streams.
Definition at line 145 of file iosfwd.
Class for char
output file streams.
Definition at line 160 of file iosfwd.
Base class for char
output streams.
Definition at line 136 of file iosfwd.
Class for char
output memory streams.
Definition at line 148 of file iosfwd.
Base class for char
buffers.
Definition at line 130 of file iosfwd.
Class for char
memory buffers.
Definition at line 142 of file iosfwd.
Class for char
mixed input and output memory streams.
Definition at line 151 of file iosfwd.
Class for wchar_t
file buffers.
Definition at line 194 of file iosfwd.
Class for wchar_t
mixed input and output file streams.
Definition at line 203 of file iosfwd.
Class for wchar_t
input file streams.
Definition at line 197 of file iosfwd.
Base class for wchar_t
streams.
Definition at line 167 of file iosfwd.
Base class for wchar_t
mixed input and output streams.
Definition at line 179 of file iosfwd.
Base class for wchar_t
input streams.
Definition at line 173 of file iosfwd.
Class for wchar_t
input memory streams.
Definition at line 185 of file iosfwd.
Class for wchar_t
output file streams.
Definition at line 200 of file iosfwd.
Base class for wchar_t
output streams.
Definition at line 176 of file iosfwd.
Class for wchar_t
output memory streams.
Definition at line 188 of file iosfwd.
Base class for wchar_t
buffers.
Definition at line 170 of file iosfwd.
Class for wchar_t
memory buffers.
Definition at line 182 of file iosfwd.
Class for wchar_t
mixed input and output memory streams.
Definition at line 191 of file iosfwd.