|
Panzer Version of the Day
|
RAII helper that saves a stream's formatting state on construction and restores it on destruction (or explicit restore()). More...
#include <Panzer_IosAllSaver.hpp>
Public Types | |
| typedef ::std::basic_ios< Ch, Tr > | state_type |
Public Member Functions | |
| basic_ios_all_saver (state_type &s) | |
| Captures the current formatting state of the given stream. | |
| ~basic_ios_all_saver () | |
| Restores the stream's formatting state as captured at construction. | |
| void | restore () |
| Restores the stream's formatting state as captured at construction. | |
Private Member Functions | |
| basic_ios_all_saver & | operator= (const basic_ios_all_saver &) |
Private Attributes | |
| state_type & | s_save_ |
| state_type::fmtflags const | a1_save_ |
| ::std::streamsize const | a2_save_ |
| ::std::streamsize const | a3_save_ |
| state_type::iostate const | a4_save_ |
| state_type::iostate const | a5_save_ |
| ::std::basic_ostream< Ch, Tr > *const | a6_save_ |
| ::std::basic_streambuf< Ch, Tr > *const | a7_save_ |
| state_type::char_type const | a8_save_ |
RAII helper that saves a stream's formatting state on construction and restores it on destruction (or explicit restore()).
Captures the flags, precision, width, error state, exception mask, tied stream, stream buffer, and fill character of the given std::basic_ios, and restores all of them when the saver is destroyed (or restore() is called explicitly).
Definition at line 52 of file Panzer_IosAllSaver.hpp.
| typedef ::std::basic_ios<Ch, Tr> panzer::basic_ios_all_saver< Ch, Tr >::state_type |
Definition at line 55 of file Panzer_IosAllSaver.hpp.
|
inlineexplicit |
Captures the current formatting state of the given stream.
Definition at line 58 of file Panzer_IosAllSaver.hpp.
|
inline |
Restores the stream's formatting state as captured at construction.
Definition at line 66 of file Panzer_IosAllSaver.hpp.
|
inline |
Restores the stream's formatting state as captured at construction.
Definition at line 70 of file Panzer_IosAllSaver.hpp.
|
private |
|
private |
Definition at line 83 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 84 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 85 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 86 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 87 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 88 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 89 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 90 of file Panzer_IosAllSaver.hpp.
|
private |
Definition at line 91 of file Panzer_IosAllSaver.hpp.