Inheritance diagram for std::basic_ostream< _CharT, _Traits >:
Public Types | |
typedef _CharT | char_type |
typedef _Traits::int_type | int_type |
typedef _Traits::pos_type | pos_type |
typedef _Traits::off_type | off_type |
typedef _Traits | traits_type |
Public Methods | |
basic_ostream (__streambuf_type *__sb) | |
Base constructor. | |
virtual | ~basic_ostream () |
Base destructor. | |
__ostream_type & | flush () |
Synchronizing the stream buffer. | |
pos_type | tellp () |
Getting the current write position. | |
__ostream_type & | seekp (pos_type) |
Changing the current write position. | |
__ostream_type & | seekp (off_type, ios_base::seekdir) |
Changing the current write position. | |
__ostream_type & | operator<< (__ostream_type &(*__pf)(__ostream_type &)) |
Interface for manipulators. | |
__ostream_type & | operator<< (__ios_type &(*__pf)(__ios_type &)) |
Interface for manipulators. | |
__ostream_type & | operator<< (ios_base &(*__pf)(ios_base &)) |
Interface for manipulators. | |
Arithmetic Inserters | |
All the operator<< functions (aka formatted output functions) have some common behavior. Each starts by constructing a temporary object of type std::basic_ostream::sentry. This can have several effects, concluding with the setting of a status flag; see the sentry documentation for more.
If the sentry status is good, the function tries to generate whatever data is appropriate for the type of the argument.
If an exception is thrown during insertion, ios_base::badbit will be turned on in the stream's error state without causing an ios_base::failure to be thrown. The original exception will then be rethrown. | |
__ostream_type & | operator<< (long __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (unsigned long __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (bool __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (short __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (unsigned short __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (int __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (unsigned int __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (long long __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (unsigned long long __n) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (double __f) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (float __f) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (long double __f) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (const void *__p) |
Basic arithmetic inserters. | |
__ostream_type & | operator<< (__streambuf_type *__sb) |
Extracting from another streambuf. | |
Unformatted Output Functions | |
All the unformatted output functions have some common behavior. Each starts by constructing a temporary object of type std::basic_ostream::sentry. This has several effects, concluding with the setting of a status flag; see the sentry documentation for more.
If the sentry status is good, the function tries to generate whatever data is appropriate for the type of the argument.
If an exception is thrown during insertion, ios_base::badbit will be turned on in the stream's error state. If badbit is on in the stream's exceptions mask, the exception will be rethrown without completing its actions. | |
__ostream_type & | put (char_type __c) |
Simple insertion. | |
__ostream_type & | write (const char_type *__s, streamsize __n) |
Character string insertion. |
This is the base class for all output streams. It provides text formatting of all builtin types, and communicates with any class derived from basic_streambuf to do the actual output.
Definition at line 58 of file ostream.
|
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_ios< _CharT, _Traits > . Reimplemented in std::basic_ofstream< _CharT, _Traits > , std::basic_fstream< _CharT, _Traits > , std::basic_ostringstream< _CharT, _Traits, _Alloc > , and std::basic_stringstream< _CharT, _Traits, _Alloc > . Definition at line 62 of file ostream. Referenced by std::basic_ostream< _CharT, _Traits >::operator<<() . |
|
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_ios< _CharT, _Traits > . Reimplemented in std::basic_ofstream< _CharT, _Traits > , std::basic_fstream< _CharT, _Traits > , std::basic_ostringstream< _CharT, _Traits, _Alloc > , and std::basic_stringstream< _CharT, _Traits, _Alloc > . Definition at line 63 of file ostream. Referenced by std::basic_ostream< _CharT, _Traits >::put() . |
|
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_ios< _CharT, _Traits > . Reimplemented in std::basic_ofstream< _CharT, _Traits > , std::basic_fstream< _CharT, _Traits > , std::basic_ostringstream< _CharT, _Traits, _Alloc > , and std::basic_stringstream< _CharT, _Traits, _Alloc > . Definition at line 65 of file ostream. Referenced by std::basic_ostream< _CharT, _Traits >::seekp() . |
|
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_ios< _CharT, _Traits > . Reimplemented in std::basic_ofstream< _CharT, _Traits > , std::basic_fstream< _CharT, _Traits > , std::basic_ostringstream< _CharT, _Traits, _Alloc > , and std::basic_stringstream< _CharT, _Traits, _Alloc > . Definition at line 64 of file ostream. Referenced by std::basic_ostream< _CharT, _Traits >::seekp() , and std::basic_ostream< _CharT, _Traits >::tellp() . |
|
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_ios< _CharT, _Traits > . Reimplemented in std::basic_ofstream< _CharT, _Traits > , std::basic_fstream< _CharT, _Traits > , std::basic_ostringstream< _CharT, _Traits, _Alloc > , and std::basic_stringstream< _CharT, _Traits, _Alloc > . |
|
Base constructor. This ctor is almost never called by the user directly, rather from derived classes' initialization lists, which pass a pointer to their own stream buffer. |
|
Base destructor. This does very little apart from providing a virtual base dtor. |
|
Synchronizing the stream buffer.
rdbuf() is a null pointer, changes nothing.
Otherwise, calls Definition at line 400 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::rdbuf() , and std::basic_ios< _CharT, _Traits >::setstate() . Referenced by std::flush() . |
|
Extracting from another streambuf.
If sb is NULL, the stream will set failbit in its error state.
Characters are extracted from sb and inserted into
If the function inserts no characters, failbit is set. Definition at line 119 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
Definition at line 347 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting. |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
|
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
Definition at line 297 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting. |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting. |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
|
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
|
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
|
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
|
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
Definition at line 145 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
Definition at line 207 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Basic arithmetic inserters.
num_get facet) to perform numeric formatting.
Definition at line 170 of file ostream.tcc. References std::basic_ostream< _CharT, _Traits >::char_type , std::basic_ios< _CharT, _Traits >::exceptions() , std::basic_ios< _CharT, _Traits >::fill() , std::ios_base::flags() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Interface for manipulators.
Manuipulators such as Definition at line 98 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Interface for manipulators.
Manuipulators such as Definition at line 76 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Interface for manipulators.
Manuipulators such as Definition at line 54 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::exceptions() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Simple insertion.
Definition at line 372 of file ostream.tcc. References std::basic_ostream< _CharT, _Traits >::int_type , std::basic_ios< _CharT, _Traits >::rdbuf() , and std::basic_ios< _CharT, _Traits >::setstate() . Referenced by std::endl() , and std::ends() . |
|
Changing the current write position.
fail() is not true, calls rdbuf()->pubseekoff(off,dir). If that function fails, sets failbit.
Definition at line 443 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::fail() , std::basic_ostream< _CharT, _Traits >::off_type , std::basic_ostream< _CharT, _Traits >::pos_type , std::basic_ios< _CharT, _Traits >::rdbuf() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Changing the current write position.
fail() is not true, calls rdbuf()->pubseekpos(pos). If that function fails, sets failbit.
Definition at line 424 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::fail() , std::basic_ostream< _CharT, _Traits >::off_type , std::basic_ostream< _CharT, _Traits >::pos_type , std::basic_ios< _CharT, _Traits >::rdbuf() , and std::basic_ios< _CharT, _Traits >::setstate() . |
|
Getting the current write position.
fail() is not false, returns pos_type(-1) to indicate failure. Otherwise returns rdbuf()->pubseekoff(0,cur,out).
Definition at line 413 of file ostream.tcc. References std::basic_ios< _CharT, _Traits >::fail() , std::basic_ostream< _CharT, _Traits >::pos_type , and std::basic_ios< _CharT, _Traits >::rdbuf() . |
|
Character string insertion.
Referenced by std::operator<<() . |