SoPlex Documentation
Loading...
Searching...
No Matches
chrono_formatter< FormatContext, OutputIt, Rep, Period > Struct Template Reference

#include <chrono.h>

Public Types

using rep
 
using seconds = std::chrono::duration<rep>
 
using milliseconds = std::chrono::duration<rep, std::milli>
 
using char_type = typename FormatContext::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)
 
void write_nan ()
 
void write_pinf ()
 
void write_ninf ()
 
void format_localized (const tm &time, char format, char modifier=0)
 
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_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
 
rep val
 
seconds s
 
bool negative
 

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

◆ char_type

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

Definition at line 805 of file chrono.h.

◆ milliseconds

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

Definition at line 802 of file chrono.h.

◆ rep

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
using rep
Initial value:
conditional_t<std::is_integral<Rep>::value && sizeof(Rep) < sizeof(int),
typename std::conditional< B, T, F >::type conditional_t
Definition core.h:261

Definition at line 796 of file chrono.h.

◆ seconds

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

Definition at line 800 of file chrono.h.

Constructor & Destructor Documentation

◆ chrono_formatter()

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

Member Function Documentation

◆ format_localized()

◆ handle_nan_inf()

◆ hour()

◆ hour12()

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

◆ minute()

◆ on_12_hour()

◆ on_12_hour_time()

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

◆ on_24_hour()

◆ on_24_hour_time()

◆ on_abbr_month()

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

Definition at line 907 of file chrono.h.

◆ on_abbr_weekday()

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

Definition at line 903 of file chrono.h.

◆ on_am_pm()

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

◆ on_datetime()

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

Definition at line 909 of file chrono.h.

◆ on_dec0_weekday()

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void on_dec0_weekday ( numeric_system )

Definition at line 905 of file chrono.h.

◆ on_dec1_weekday()

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void on_dec1_weekday ( numeric_system )

Definition at line 906 of file chrono.h.

◆ on_duration_unit()

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

◆ on_duration_value()

◆ on_full_month()

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

Definition at line 908 of file chrono.h.

◆ on_full_weekday()

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

Definition at line 904 of file chrono.h.

◆ on_iso_date()

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

Definition at line 913 of file chrono.h.

◆ on_iso_time()

◆ on_loc_date()

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void on_loc_date ( numeric_system )

Definition at line 910 of file chrono.h.

◆ on_loc_time()

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void on_loc_time ( numeric_system )

Definition at line 911 of file chrono.h.

◆ on_minute()

◆ on_second()

◆ on_text()

template<typename FormatContext , typename OutputIt , typename Rep , typename Period >
void on_text ( const char_type * begin,
const char_type * end )

◆ on_tz_name()

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

Definition at line 915 of file chrono.h.

◆ on_us_date()

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

Definition at line 912 of file chrono.h.

◆ on_utc_offset()

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

Definition at line 914 of file chrono.h.

◆ second()

◆ time()

◆ write()

◆ write_nan()

◆ write_ninf()

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

◆ write_pinf()

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

◆ write_sign()

Member Data Documentation

◆ context

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

◆ negative

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

◆ out

◆ precision

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

◆ s

◆ val