VIPRA Documentation
Loading...
Searching...
No Matches
detail::chrono_formatter< FormatContext, OutputIt, Rep, Period > Struct Template Reference

Public Types

using rep
 
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)
 
auto handle_nan_inf () -> bool
 
auto days () const -> Rep
 
auto hour () const -> Rep
 
auto hour12 () const -> Rep
 
auto minute () const -> Rep
 
auto second () const -> Rep
 
auto time () const -> std::tm
 
void write_sign ()
 
void write (Rep value, int width, pad_type pad=pad_type::zero)
 
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, pad_type)
 
void on_dec1_week_of_year (numeric_system, pad_type)
 
void on_iso_week_of_year (numeric_system, pad_type)
 
void on_day_of_month (numeric_system, pad_type)
 
void on_day_of_year ()
 
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
 

Member Typedef Documentation

◆ rep

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

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