Public Types | Public Member Functions | Public Attributes | List of all members
chrono_formatter< FormatContext, OutputIt, Rep, Period > Struct Template Reference

#include <chrono.h>

Public Types

using char_type = typename FormatContext::char_type
 
using milliseconds = std::chrono::duration< rep, std::milli >
 
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 >
 

Public Member Functions

 chrono_formatter (FormatContext &ctx, OutputIt o, std::chrono::duration< Rep, Period > d)
 
void format_localized (const tm &time, char format, char modifier=0)
 
bool handle_nan_inf ()
 
Rep hour () const
 
Rep hour12 () const
 
Rep minute () const
 
void on_12_hour (numeric_system ns)
 
void on_12_hour_time ()
 
void on_24_hour (numeric_system ns)
 
void on_24_hour_time ()
 
void on_abbr_month ()
 
void on_abbr_weekday ()
 
void on_am_pm ()
 
void on_datetime (numeric_system)
 
void on_dec0_weekday (numeric_system)
 
void on_dec1_weekday (numeric_system)
 
void on_duration_unit ()
 
void on_duration_value ()
 
void on_full_month ()
 
void on_full_weekday ()
 
void on_iso_date ()
 
void on_iso_time ()
 
void on_loc_date (numeric_system)
 
void on_loc_time (numeric_system)
 
void on_minute (numeric_system ns)
 
void on_second (numeric_system ns)
 
void on_text (const char_type *begin, const char_type *end)
 
void on_tz_name ()
 
void on_us_date ()
 
void on_utc_offset ()
 
Rep second () const
 
std::tm time () const
 
void write (Rep value, int width)
 
void write_nan ()
 
void write_ninf ()
 
void write_pinf ()
 
void write_sign ()
 

Public Attributes

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

Detailed Description

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

Definition at line 931 of file chrono.h.

Member Typedef Documentation

◆ char_type

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 946 of file chrono.h.

◆ milliseconds

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 943 of file chrono.h.

◆ rep

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 939 of file chrono.h.

◆ seconds

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

Definition at line 941 of file chrono.h.

Constructor & Destructor Documentation

◆ chrono_formatter()

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 
)
inlineexplicit

Definition at line 948 of file chrono.h.

Member Function Documentation

◆ format_localized()

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void chrono_formatter< FormatContext, OutputIt, Rep, Period >::format_localized ( const tm &  time,
char  format,
char  modifier = 0 
)
inline

Definition at line 1028 of file chrono.h.

◆ handle_nan_inf()

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

Definition at line 972 of file chrono.h.

◆ hour()

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

Definition at line 989 of file chrono.h.

◆ hour12()

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

Definition at line 991 of file chrono.h.

◆ minute()

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

Definition at line 996 of file chrono.h.

◆ on_12_hour()

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

Definition at line 1063 of file chrono.h.

◆ on_12_hour_time()

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

Definition at line 1106 of file chrono.h.

◆ on_24_hour()

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

Definition at line 1054 of file chrono.h.

◆ on_24_hour_time()

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

Definition at line 1111 of file chrono.h.

◆ on_abbr_month()

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

Definition at line 1044 of file chrono.h.

◆ on_abbr_weekday()

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

Definition at line 1040 of file chrono.h.

◆ on_am_pm()

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

Definition at line 1130 of file chrono.h.

◆ on_datetime()

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

Definition at line 1046 of file chrono.h.

◆ on_dec0_weekday()

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 1042 of file chrono.h.

◆ on_dec1_weekday()

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 1043 of file chrono.h.

◆ on_duration_unit()

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

Definition at line 1141 of file chrono.h.

◆ on_duration_value()

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

Definition at line 1135 of file chrono.h.

◆ on_full_month()

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

Definition at line 1045 of file chrono.h.

◆ on_full_weekday()

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

Definition at line 1041 of file chrono.h.

◆ on_iso_date()

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

Definition at line 1050 of file chrono.h.

◆ on_iso_time()

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

Definition at line 1123 of file chrono.h.

◆ on_loc_date()

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 1047 of file chrono.h.

◆ on_loc_time()

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 1048 of file chrono.h.

◆ on_minute()

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

Definition at line 1072 of file chrono.h.

◆ on_second()

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

Definition at line 1081 of file chrono.h.

◆ on_text()

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 1035 of file chrono.h.

◆ on_tz_name()

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

Definition at line 1052 of file chrono.h.

◆ on_us_date()

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

Definition at line 1049 of file chrono.h.

◆ on_utc_offset()

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

Definition at line 1051 of file chrono.h.

◆ second()

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

Definition at line 997 of file chrono.h.

◆ time()

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

Definition at line 999 of file chrono.h.

◆ write()

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

Definition at line 1014 of file chrono.h.

◆ write_nan()

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

Definition at line 1024 of file chrono.h.

◆ write_ninf()

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

Definition at line 1026 of file chrono.h.

◆ write_pinf()

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

Definition at line 1025 of file chrono.h.

◆ write_sign()

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

Definition at line 1007 of file chrono.h.

Member Data Documentation

◆ context

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

Definition at line 932 of file chrono.h.

◆ localized

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

Definition at line 935 of file chrono.h.

◆ negative

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

Definition at line 944 of file chrono.h.

◆ out

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

Definition at line 933 of file chrono.h.

◆ precision

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

Definition at line 934 of file chrono.h.

◆ s

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

Definition at line 942 of file chrono.h.

◆ val

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

Definition at line 940 of file chrono.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Jun 19 2023 03:12:54