Public Types | Public Member Functions | Public Attributes | List of all members
detail::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 negative
 
OutputIt out
 
int precision
 
seconds s
 
rep val
 

Detailed Description

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

Definition at line 791 of file chrono.h.

Member Typedef Documentation

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

Definition at line 805 of file chrono.h.

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

Definition at line 802 of file chrono.h.

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>

Definition at line 798 of file chrono.h.

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

Definition at line 800 of file chrono.h.

Constructor & Destructor Documentation

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

Definition at line 807 of file chrono.h.

Member Function Documentation

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

Definition at line 887 of file chrono.h.

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

Definition at line 831 of file chrono.h.

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

Definition at line 848 of file chrono.h.

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

Definition at line 850 of file chrono.h.

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

Definition at line 855 of file chrono.h.

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

Definition at line 926 of file chrono.h.

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

Definition at line 969 of file chrono.h.

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

Definition at line 917 of file chrono.h.

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

Definition at line 974 of file chrono.h.

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

Definition at line 907 of file chrono.h.

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

Definition at line 903 of file chrono.h.

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

Definition at line 993 of file chrono.h.

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

Definition at line 909 of file chrono.h.

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

Definition at line 905 of file chrono.h.

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

Definition at line 906 of file chrono.h.

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

Definition at line 1004 of file chrono.h.

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

Definition at line 998 of file chrono.h.

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

Definition at line 908 of file chrono.h.

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

Definition at line 904 of file chrono.h.

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

Definition at line 913 of file chrono.h.

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

Definition at line 986 of file chrono.h.

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

Definition at line 910 of file chrono.h.

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

Definition at line 911 of file chrono.h.

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

Definition at line 935 of file chrono.h.

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

Definition at line 944 of file chrono.h.

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

Definition at line 898 of file chrono.h.

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

Definition at line 915 of file chrono.h.

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

Definition at line 912 of file chrono.h.

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

Definition at line 914 of file chrono.h.

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

Definition at line 856 of file chrono.h.

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

Definition at line 858 of file chrono.h.

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

Definition at line 873 of file chrono.h.

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

Definition at line 883 of file chrono.h.

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

Definition at line 885 of file chrono.h.

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

Definition at line 884 of file chrono.h.

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

Definition at line 866 of file chrono.h.

Member Data Documentation

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

Definition at line 792 of file chrono.h.

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

Definition at line 803 of file chrono.h.

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

Definition at line 793 of file chrono.h.

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

Definition at line 794 of file chrono.h.

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

Definition at line 801 of file chrono.h.

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

Definition at line 799 of file chrono.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:51