Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::chrono::time_point_units_default< CharT > Class Template Reference

#include <time_point_units.hpp>

Inheritance diagram for boost::chrono::time_point_units_default< CharT >:
Collaboration diagram for boost::chrono::time_point_units_default< CharT >:

Public Types

typedef CharT char_type
 Type of character the facet is instantiated on. More...
 
typedef std::basic_string
< char_type
string_type
 Type of character string returned by member functions. More...
 

Public Member Functions

 time_point_units_default (size_t refs=0)
 
 ~time_point_units_default ()
 
string_type get_pattern () const
 
template<typename Clock >
string_type get_epoch () const
 

Static Public Attributes

static std::locale::id id
 Unique identifier for this type of facet. More...
 

Protected Member Functions

string_type do_get_epoch (system_clock) const
 
string_type do_get_epoch (steady_clock) const
 

Member Typedef Documentation

template<typename CharT = char>
typedef CharT boost::chrono::time_point_units_default< CharT >::char_type

Type of character the facet is instantiated on.

template<typename CharT = char>
typedef std::basic_string<char_type> boost::chrono::time_point_units_default< CharT >::string_type

Type of character string returned by member functions.

Constructor & Destructor Documentation

template<typename CharT = char>
boost::chrono::time_point_units_default< CharT >::time_point_units_default ( size_t  refs = 0)
inlineexplicit
template<typename CharT = char>
boost::chrono::time_point_units_default< CharT >::~time_point_units_default ( )
inline

Member Function Documentation

template<typename CharT = char>
string_type boost::chrono::time_point_units_default< CharT >::do_get_epoch ( system_clock  ) const
inlineprotectedvirtual
Parameters
ca dummy instance of system_clock.
Returns
The epoch string returned by clock_string<system_clock,CharT>::since().

Implements boost::chrono::time_point_units< CharT >.

template<typename CharT = char>
string_type boost::chrono::time_point_units_default< CharT >::do_get_epoch ( steady_clock  ) const
inlineprotectedvirtual
Parameters
ca dummy instance of steady_clock.
Returns
The epoch string returned by clock_string<steady_clock,CharT>::since().

Implements boost::chrono::time_point_units< CharT >.

template<typename CharT = char>
template<typename Clock >
string_type boost::chrono::time_point_units< CharT >::get_epoch ( ) const
inlineinherited
Returns
the epoch associated to the clock Clock calling do_get_epoch(Clock())

References boost::chrono::time_point_units< CharT >::do_get_epoch().

template<typename CharT = char>
string_type boost::chrono::time_point_units_default< CharT >::get_pattern ( ) const
inlinevirtual

Member Data Documentation

template<typename CharT = char>
std::locale::id boost::chrono::time_point_units< CharT >::id
staticinherited

Unique identifier for this type of facet.


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