Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
formatter< std::chrono::duration< Rep, Period >, Char > Struct Template Reference

#include <chrono.h>

Classes

struct  parse_range
 
struct  spec_handler
 

Public Member Functions

template<typename FormatContext >
auto format (const duration &d, FormatContext &ctx) -> decltype(ctx.out())
 
 formatter ()
 
FMT_CONSTEXPR auto parse (basic_format_parse_context< Char > &ctx) -> decltype(ctx.begin())
 

Private Types

using arg_ref_type = detail::arg_ref< Char >
 
using duration = std::chrono::duration< Rep, Period >
 
using iterator = typename basic_format_parse_context< Char >::iterator
 

Private Member Functions

FMT_CONSTEXPR parse_range do_parse (basic_format_parse_context< Char > &ctx)
 

Private Attributes

basic_string_view< Char > format_str
 
int precision
 
arg_ref_type precision_ref
 
basic_format_specs< Char > specs
 
arg_ref_type width_ref
 

Detailed Description

template<typename Rep, typename Period, typename Char>
struct formatter< std::chrono::duration< Rep, Period >, Char >

Definition at line 1011 of file chrono.h.

Member Typedef Documentation

template<typename Rep , typename Period , typename Char >
using formatter< std::chrono::duration< Rep, Period >, Char >::arg_ref_type = detail::arg_ref<Char>
private

Definition at line 1015 of file chrono.h.

template<typename Rep , typename Period , typename Char >
using formatter< std::chrono::duration< Rep, Period >, Char >::duration = std::chrono::duration<Rep, Period>
private

Definition at line 1019 of file chrono.h.

template<typename Rep , typename Period , typename Char >
using formatter< std::chrono::duration< Rep, Period >, Char >::iterator = typename basic_format_parse_context<Char>::iterator
private

Definition at line 1056 of file chrono.h.

Constructor & Destructor Documentation

template<typename Rep , typename Period , typename Char >
formatter< std::chrono::duration< Rep, Period >, Char >::formatter ( )
inline

Definition at line 1081 of file chrono.h.

Member Function Documentation

template<typename Rep , typename Period , typename Char >
FMT_CONSTEXPR parse_range formatter< std::chrono::duration< Rep, Period >, Char >::do_parse ( basic_format_parse_context< Char > &  ctx)
inlineprivate

Definition at line 1062 of file chrono.h.

template<typename Rep , typename Period , typename Char >
template<typename FormatContext >
auto formatter< std::chrono::duration< Rep, Period >, Char >::format ( const duration d,
FormatContext &  ctx 
) -> decltype(ctx.out())
inline

Definition at line 1092 of file chrono.h.

template<typename Rep , typename Period , typename Char >
FMT_CONSTEXPR auto formatter< std::chrono::duration< Rep, Period >, Char >::parse ( basic_format_parse_context< Char > &  ctx) -> decltype(ctx.begin())
inline

Definition at line 1083 of file chrono.h.

Member Data Documentation

template<typename Rep , typename Period , typename Char >
basic_string_view<Char> formatter< std::chrono::duration< Rep, Period >, Char >::format_str
mutableprivate

Definition at line 1018 of file chrono.h.

template<typename Rep , typename Period , typename Char >
int formatter< std::chrono::duration< Rep, Period >, Char >::precision
private

Definition at line 1014 of file chrono.h.

template<typename Rep , typename Period , typename Char >
arg_ref_type formatter< std::chrono::duration< Rep, Period >, Char >::precision_ref
private

Definition at line 1017 of file chrono.h.

template<typename Rep , typename Period , typename Char >
basic_format_specs<Char> formatter< std::chrono::duration< Rep, Period >, Char >::specs
private

Definition at line 1013 of file chrono.h.

template<typename Rep , typename Period , typename Char >
arg_ref_type formatter< std::chrono::duration< Rep, Period >, Char >::width_ref
private

Definition at line 1016 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:49