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 >
 
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 days () const -> Rep
 
template<typename Callback , typename... Args>
void format_tm (const tm &time, Callback cb, Args... args)
 
auto handle_nan_inf () -> bool
 
auto hour () const -> Rep
 
auto hour12 () const -> Rep
 
auto minute () const -> Rep
 
void on_12_hour (numeric_system ns, pad_type pad)
 
void on_12_hour_time ()
 
void on_24_hour (numeric_system ns, pad_type pad)
 
void on_24_hour_time ()
 
void on_abbr_month ()
 
void on_abbr_weekday ()
 
void on_am_pm ()
 
void on_century (numeric_system)
 
void on_datetime (numeric_system)
 
void on_day_of_month (numeric_system)
 
void on_day_of_month_space (numeric_system)
 
void on_day_of_year ()
 
void on_dec0_week_of_year (numeric_system)
 
void on_dec0_weekday (numeric_system)
 
void on_dec1_week_of_year (numeric_system)
 
void on_dec1_weekday (numeric_system)
 
void on_dec_month (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_iso_week_based_short_year ()
 
void on_iso_week_based_year ()
 
void on_iso_week_of_year (numeric_system)
 
void on_loc_date (numeric_system)
 
void on_loc_time (numeric_system)
 
void on_minute (numeric_system ns, pad_type pad)
 
void on_offset_year ()
 
void on_second (numeric_system ns, pad_type pad)
 
void on_short_year (numeric_system)
 
void on_text (const char_type *begin, const char_type *end)
 
void on_tz_name ()
 
void on_us_date ()
 
void on_utc_offset (numeric_system)
 
void on_year (numeric_system)
 
auto second () const -> Rep
 
auto time () const -> std::tm
 
void write (Rep value, int width, pad_type pad=pad_type::unspecified)
 
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 detail::chrono_formatter< FormatContext, OutputIt, Rep, Period >

Definition at line 1760 of file chrono.h.

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

Definition at line 1775 of file chrono.h.

◆ 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>

Definition at line 1772 of file chrono.h.

◆ 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>

Definition at line 1768 of file chrono.h.

◆ seconds

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

◆ 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>

Definition at line 1776 of file chrono.h.

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

Definition at line 1778 of file chrono.h.

Member Function Documentation

◆ days()

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

Definition at line 1813 of file chrono.h.

◆ 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

Definition at line 1860 of file chrono.h.

◆ handle_nan_inf()

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

Definition at line 1796 of file chrono.h.

◆ hour()

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

Definition at line 1814 of file chrono.h.

◆ hour12()

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

Definition at line 1818 of file chrono.h.

◆ minute()

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

Definition at line 1823 of file chrono.h.

◆ 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

Definition at line 1913 of file chrono.h.

◆ 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

Definition at line 1956 of file chrono.h.

◆ 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

Definition at line 1904 of file chrono.h.

◆ 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

Definition at line 1961 of file chrono.h.

◆ on_abbr_month()

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

Definition at line 1877 of file chrono.h.

◆ on_abbr_weekday()

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

Definition at line 1873 of file chrono.h.

◆ on_am_pm()

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

Definition at line 1980 of file chrono.h.

◆ on_century()

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

Definition at line 1889 of file chrono.h.

◆ on_datetime()

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

◆ 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

Definition at line 1896 of file chrono.h.

◆ 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

Definition at line 1897 of file chrono.h.

◆ 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

Definition at line 1899 of file chrono.h.

◆ 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

Definition at line 1893 of file chrono.h.

◆ 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

Definition at line 1875 of file chrono.h.

◆ 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

Definition at line 1894 of file chrono.h.

◆ 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

Definition at line 1876 of file chrono.h.

◆ 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

Definition at line 1892 of file chrono.h.

◆ on_duration_unit()

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

Definition at line 1991 of file chrono.h.

◆ on_duration_value()

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

Definition at line 1985 of file chrono.h.

◆ on_full_month()

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

Definition at line 1878 of file chrono.h.

◆ on_full_weekday()

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

Definition at line 1874 of file chrono.h.

◆ on_iso_date()

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

Definition at line 1883 of file chrono.h.

◆ on_iso_time()

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

Definition at line 1973 of file chrono.h.

◆ 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

Definition at line 1891 of file chrono.h.

◆ 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

Definition at line 1890 of file chrono.h.

◆ 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

Definition at line 1895 of file chrono.h.

◆ 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

Definition at line 1880 of file chrono.h.

◆ 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

Definition at line 1881 of file chrono.h.

◆ 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

Definition at line 1922 of file chrono.h.

◆ on_offset_year()

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

Definition at line 1888 of file chrono.h.

◆ 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

Definition at line 1931 of file chrono.h.

◆ 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

Definition at line 1887 of file chrono.h.

◆ 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

Definition at line 1868 of file chrono.h.

◆ on_tz_name()

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

Definition at line 1885 of file chrono.h.

◆ on_us_date()

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

Definition at line 1882 of file chrono.h.

◆ 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

Definition at line 1884 of file chrono.h.

◆ on_year()

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

Definition at line 1886 of file chrono.h.

◆ second()

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

Definition at line 1826 of file chrono.h.

◆ time()

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

Definition at line 1828 of file chrono.h.

◆ 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

Definition at line 1843 of file chrono.h.

◆ write_nan()

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

Definition at line 1855 of file chrono.h.

◆ write_ninf()

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

Definition at line 1857 of file chrono.h.

◆ write_pinf()

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

Definition at line 1856 of file chrono.h.

◆ write_sign()

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

Definition at line 1836 of file chrono.h.

Member Data Documentation

◆ context

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

Definition at line 1761 of file chrono.h.

◆ localized

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

Definition at line 1764 of file chrono.h.

◆ negative

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

Definition at line 1773 of file chrono.h.

◆ out

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

Definition at line 1762 of file chrono.h.

◆ precision

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

Definition at line 1763 of file chrono.h.

◆ s

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

Definition at line 1771 of file chrono.h.

◆ val

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

Definition at line 1769 of file chrono.h.


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


plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Aug 11 2024 02:24:30