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_punct< CharT > Class Template Reference

#include <chrono_io.hpp>

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

Public Types

enum  {
  use_long,
  use_short
}
 
typedef std::basic_string< CharT > string_type
 

Public Member Functions

 duration_punct (int use=use_long)
 
 duration_punct (int use, const string_type &long_seconds, const string_type &long_minutes, const string_type &long_hours, const string_type &short_seconds, const string_type &short_minutes, const string_type &short_hours)
 
 duration_punct (int use, const duration_punct &d)
 
template<class Period >
string_type short_name () const
 
template<class Period >
string_type long_name () const
 
template<class Period >
string_type plural () const
 
template<class Period >
string_type singular () const
 
template<class Period >
string_type name () const
 
template<class Period , class D >
string_type name (D v) const
 
bool is_short_name () const
 
bool is_long_name () const
 

Static Public Attributes

static std::locale::id id
 

Member Typedef Documentation

template<class CharT >
typedef std::basic_string<CharT> boost::chrono::duration_punct< CharT >::string_type

Member Enumeration Documentation

template<class CharT >
anonymous enum
Enumerator
use_long 
use_short 

Constructor & Destructor Documentation

template<class CharT >
boost::chrono::duration_punct< CharT >::duration_punct ( int  use = use_long)
inlineexplicit
template<class CharT >
boost::chrono::duration_punct< CharT >::duration_punct ( int  use,
const string_type long_seconds,
const string_type long_minutes,
const string_type long_hours,
const string_type short_seconds,
const string_type short_minutes,
const string_type short_hours 
)
template<class CharT >
boost::chrono::duration_punct< CharT >::duration_punct ( int  use,
const duration_punct< CharT > &  d 
)

Member Function Documentation

template<class CharT >
bool boost::chrono::duration_punct< CharT >::is_long_name ( ) const
inline
template<class CharT >
bool boost::chrono::duration_punct< CharT >::is_short_name ( ) const
inline
template<class CharT >
template<class Period >
string_type boost::chrono::duration_punct< CharT >::long_name ( ) const
inline
template<class CharT >
template<class Period >
string_type boost::chrono::duration_punct< CharT >::name ( ) const
inline
template<class CharT >
template<class Period , class D >
string_type boost::chrono::duration_punct< CharT >::name ( v) const
inline
template<class CharT >
template<class Period >
string_type boost::chrono::duration_punct< CharT >::plural ( ) const
inline
template<class CharT >
template<class Period >
string_type boost::chrono::duration_punct< CharT >::short_name ( ) const
inline

References boost::detail::type.

template<class CharT >
template<class Period >
string_type boost::chrono::duration_punct< CharT >::singular ( ) const
inline

Member Data Documentation

template<class CharT >
std::locale::id boost::chrono::duration_punct< CharT >::id
static

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