Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::chrono::duration_style_io_saver Struct Reference

duration_style i/o saver. More...

#include <duration_io.hpp>

Public Types

typedef std::ios_base state_type
 the type of the state to restore More...
 
typedef duration_style aspect_type
 the type of aspect to save More...
 

Public Member Functions

 duration_style_io_saver (state_type &s)
 Explicit construction from an i/o stream. More...
 
 duration_style_io_saver (state_type &s, aspect_type new_value)
 Construction from an i/o stream and a duration_style to restore. More...
 
 ~duration_style_io_saver ()
 Destructor. More...
 
void restore ()
 Restores the i/o stream with the duration_style to be restored. More...
 

Detailed Description

duration_style i/o saver.

See Boost.IO i/o state savers for a motivating compression.

Member Typedef Documentation

the type of aspect to save

the type of the state to restore

Constructor & Destructor Documentation

boost::chrono::duration_style_io_saver::duration_style_io_saver ( state_type s)
inlineexplicit

Explicit construction from an i/o stream.

Store a reference to the i/o stream and the value of the associated duration_style.

References boost::chrono::get_duration_style().

boost::chrono::duration_style_io_saver::duration_style_io_saver ( state_type s,
aspect_type  new_value 
)
inline

Construction from an i/o stream and a duration_style to restore.

Stores a reference to the i/o stream and the value duration_style to restore given as parameter.

boost::chrono::duration_style_io_saver::~duration_style_io_saver ( )
inline

Destructor.

Restores the i/o stream with the duration_style to be restored.

References restore().

Member Function Documentation

void boost::chrono::duration_style_io_saver::restore ( )
inline

Restores the i/o stream with the duration_style to be restored.

References boost::chrono::set_duration_style().

Referenced by ~duration_style_io_saver().


The documentation for this struct was generated from the following file: