HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
chrono_formatter< FormatContext, OutputIt, Rep, Period > Struct Template Reference

#include <chrono.h>

Public Types

using rep = conditional_t< std::is_integral< Rep >::value &&sizeof(Rep)< sizeof(int), unsigned, typename make_unsigned_or_unchanged< Rep >::type >
 
using seconds = std::chrono::duration< rep >
 
using milliseconds = std::chrono::duration< rep, std::milli >
 
using char_type = typename FormatContext::char_type
 
using tm_writer_type = tm_writer< OutputIt, char_type >
 

Public Member Functions

 chrono_formatter (FormatContext &ctx, OutputIt o, std::chrono::duration< Rep, Period > d)
 
bool handle_nan_inf ()
 
Rep hour () const
 
Rep hour12 () const
 
Rep minute () const
 
Rep second () const
 
std::tm time () const
 
void write_sign ()
 
void write (Rep value, int width, pad_type pad=pad_type::unspecified)
 
void write_nan ()
 
void write_pinf ()
 
void write_ninf ()
 
template<typename Callback , typename... Args>
void format_tm (const tm &time, Callback cb, Args...args)
 
void on_text (const char_type *begin, const char_type *end)
 
void on_abbr_weekday ()
 
void on_full_weekday ()
 
void on_dec0_weekday (numeric_system)
 
void on_dec1_weekday (numeric_system)
 
void on_abbr_month ()
 
void on_full_month ()
 
void on_datetime (numeric_system)
 
void on_loc_date (numeric_system)
 
void on_loc_time (numeric_system)
 
void on_us_date ()
 
void on_iso_date ()
 
void on_utc_offset (numeric_system)
 
void on_tz_name ()
 
void on_year (numeric_system)
 
void on_short_year (numeric_system)
 
void on_offset_year ()
 
void on_century (numeric_system)
 
void on_iso_week_based_year ()
 
void on_iso_week_based_short_year ()
 
void on_dec_month (numeric_system)
 
void on_dec0_week_of_year (numeric_system)
 
void on_dec1_week_of_year (numeric_system)
 
void on_iso_week_of_year (numeric_system)
 
void on_day_of_year ()
 
void on_day_of_month (numeric_system)
 
void on_day_of_month_space (numeric_system)
 
void on_24_hour (numeric_system ns, pad_type pad)
 
void on_12_hour (numeric_system ns, pad_type pad)
 
void on_minute (numeric_system ns, pad_type pad)
 
void on_second (numeric_system ns, pad_type pad)
 
void on_12_hour_time ()
 
void on_24_hour_time ()
 
void on_iso_time ()
 
void on_am_pm ()
 
void on_duration_value ()
 
void on_duration_unit ()
 

Public Attributes

FormatContext & context
 
OutputIt out
 
int precision
 
bool localized = false
 
rep val
 
seconds s
 
bool negative
 

Detailed Description

template<typename FormatContext, typename OutputIt, typename Rep, typename Period>
struct chrono_formatter< FormatContext, OutputIt, Rep, Period >

Definition at line 1767 of file chrono.h.

Member Typedef Documentation

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using chrono_formatter< FormatContext, OutputIt, Rep, Period >::char_type = typename FormatContext::char_type

Definition at line 1782 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using chrono_formatter< FormatContext, OutputIt, Rep, Period >::milliseconds = std::chrono::duration<rep, std::milli>

Definition at line 1779 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using chrono_formatter< FormatContext, OutputIt, Rep, Period >::rep = conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int), unsigned, typename make_unsigned_or_unchanged<Rep>::type>

Definition at line 1775 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using chrono_formatter< FormatContext, OutputIt, Rep, Period >::seconds = std::chrono::duration<rep>

Definition at line 1777 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using chrono_formatter< FormatContext, OutputIt, Rep, Period >::tm_writer_type = tm_writer<OutputIt, char_type>

Definition at line 1783 of file chrono.h.

Constructor & Destructor Documentation

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
chrono_formatter< FormatContext, OutputIt, Rep, Period >::chrono_formatter ( FormatContext &  ctx,
OutputIt  o,
std::chrono::duration< Rep, Period >  d 
)
inline

Definition at line 1785 of file chrono.h.

Member Function Documentation

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
template<typename Callback , typename... Args>
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::format_tm ( const tm &  time,
Callback  cb,
Args...  args 
)
inline

Definition at line 1868 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
bool chrono_formatter< FormatContext, OutputIt, Rep, Period >::handle_nan_inf ( )
inline

Definition at line 1809 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
Rep chrono_formatter< FormatContext, OutputIt, Rep, Period >::hour ( ) const
inline

Definition at line 1826 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
Rep chrono_formatter< FormatContext, OutputIt, Rep, Period >::hour12 ( ) const
inline

Definition at line 1828 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
Rep chrono_formatter< FormatContext, OutputIt, Rep, Period >::minute ( ) const
inline

Definition at line 1833 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_12_hour ( numeric_system  ns,
pad_type  pad 
)
inline

Definition at line 1917 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_12_hour_time ( )
inline

Definition at line 1960 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_24_hour ( numeric_system  ns,
pad_type  pad 
)
inline

Definition at line 1908 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_24_hour_time ( )
inline

Definition at line 1965 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_abbr_month ( )
inline

Definition at line 1885 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_abbr_weekday ( )
inline

Definition at line 1881 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_am_pm ( )
inline

Definition at line 1984 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_century ( numeric_system  )
inline

Definition at line 1897 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_datetime ( numeric_system  )
inline

Definition at line 1887 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_day_of_month ( numeric_system  )
inline

Definition at line 1905 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_day_of_month_space ( numeric_system  )
inline

Definition at line 1906 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_day_of_year ( )
inline

Definition at line 1904 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_dec0_week_of_year ( numeric_system  )
inline

Definition at line 1901 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_dec0_weekday ( numeric_system  )
inline

Definition at line 1883 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_dec1_week_of_year ( numeric_system  )
inline

Definition at line 1902 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_dec1_weekday ( numeric_system  )
inline

Definition at line 1884 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_dec_month ( numeric_system  )
inline

Definition at line 1900 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_duration_unit ( )
inline

Definition at line 1995 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_duration_value ( )
inline

Definition at line 1989 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_full_month ( )
inline

Definition at line 1886 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_full_weekday ( )
inline

Definition at line 1882 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_iso_date ( )
inline

Definition at line 1891 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_iso_time ( )
inline

Definition at line 1977 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_iso_week_based_short_year ( )
inline

Definition at line 1899 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_iso_week_based_year ( )
inline

Definition at line 1898 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_iso_week_of_year ( numeric_system  )
inline

Definition at line 1903 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_loc_date ( numeric_system  )
inline

Definition at line 1888 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_loc_time ( numeric_system  )
inline

Definition at line 1889 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_minute ( numeric_system  ns,
pad_type  pad 
)
inline

Definition at line 1926 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_offset_year ( )
inline

Definition at line 1896 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_second ( numeric_system  ns,
pad_type  pad 
)
inline

Definition at line 1935 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_short_year ( numeric_system  )
inline

Definition at line 1895 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_text ( const char_type begin,
const char_type end 
)
inline

Definition at line 1876 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_tz_name ( )
inline

Definition at line 1893 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_us_date ( )
inline

Definition at line 1890 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_utc_offset ( numeric_system  )
inline

Definition at line 1892 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::on_year ( numeric_system  )
inline

Definition at line 1894 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
Rep chrono_formatter< FormatContext, OutputIt, Rep, Period >::second ( ) const
inline

Definition at line 1834 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
std::tm chrono_formatter< FormatContext, OutputIt, Rep, Period >::time ( ) const
inline

Definition at line 1836 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::write ( Rep  value,
int  width,
pad_type  pad = pad_type::unspecified 
)
inline

Definition at line 1851 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::write_nan ( )
inline

Definition at line 1863 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::write_ninf ( )
inline

Definition at line 1865 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::write_pinf ( )
inline

Definition at line 1864 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::write_sign ( )
inline

Definition at line 1844 of file chrono.h.

Member Data Documentation

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
FormatContext& chrono_formatter< FormatContext, OutputIt, Rep, Period >::context

Definition at line 1768 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
bool chrono_formatter< FormatContext, OutputIt, Rep, Period >::localized = false

Definition at line 1771 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
bool chrono_formatter< FormatContext, OutputIt, Rep, Period >::negative

Definition at line 1780 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
OutputIt chrono_formatter< FormatContext, OutputIt, Rep, Period >::out

Definition at line 1769 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
int chrono_formatter< FormatContext, OutputIt, Rep, Period >::precision

Definition at line 1770 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
seconds chrono_formatter< FormatContext, OutputIt, Rep, Period >::s

Definition at line 1778 of file chrono.h.

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
rep chrono_formatter< FormatContext, OutputIt, Rep, Period >::val

Definition at line 1776 of file chrono.h.


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