WPILibC++ 2024.3.2
detail::chrono_formatter< FormatContext, OutputIt, Rep, Period > Struct Template Reference

#include </home/runner/work/allwpilib/allwpilib/wpiutil/src/main/native/thirdparty/fmtlib/include/fmt/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
 

Member Typedef Documentation

◆ char_type

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

◆ milliseconds

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

◆ rep

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using detail::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>

◆ seconds

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

◆ tm_writer_type

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

Constructor & Destructor Documentation

◆ chrono_formatter()

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

Member Function Documentation

◆ format_tm()

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

◆ handle_nan_inf()

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

◆ hour()

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

◆ hour12()

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

◆ minute()

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

◆ on_12_hour()

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

◆ on_12_hour_time()

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

◆ on_24_hour()

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

◆ on_24_hour_time()

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

◆ on_abbr_month()

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

◆ on_abbr_weekday()

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

◆ on_am_pm()

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

◆ on_century()

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

◆ on_datetime()

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

◆ on_day_of_month()

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

◆ on_day_of_month_space()

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

◆ on_day_of_year()

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

◆ on_dec0_week_of_year()

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

◆ on_dec0_weekday()

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

◆ on_dec1_week_of_year()

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

◆ on_dec1_weekday()

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

◆ on_dec_month()

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

◆ on_duration_unit()

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

◆ on_duration_value()

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

◆ on_full_month()

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

◆ on_full_weekday()

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

◆ on_iso_date()

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

◆ on_iso_time()

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

◆ on_iso_week_based_short_year()

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

◆ on_iso_week_based_year()

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

◆ on_iso_week_of_year()

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

◆ on_loc_date()

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

◆ on_loc_time()

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

◆ on_minute()

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

◆ on_offset_year()

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

◆ on_second()

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

◆ on_short_year()

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

◆ on_text()

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

◆ on_tz_name()

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

◆ on_us_date()

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

◆ on_utc_offset()

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

◆ on_year()

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

◆ second()

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

◆ time()

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

◆ write()

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

◆ write_nan()

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

◆ write_ninf()

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

◆ write_pinf()

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

◆ write_sign()

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

Member Data Documentation

◆ context

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

◆ localized

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

◆ negative

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

◆ out

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

◆ precision

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

◆ s

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

◆ val

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

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