SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
chrono_formatter< FormatContext, OutputIt, Rep, Period > Struct Template Reference

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)
 
template<class Duration >
void write_fractional_seconds (Duration d)
 
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 ()
 
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)
 
void on_12_hour (numeric_system ns)
 
void on_minute (numeric_system ns)
 
void on_second (numeric_system ns)
 
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