Scarab  v3.9.4
Project 8 C++ Utility Library
Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends | List of all members
decimal_format_seconds< Duration, w > Class Template Reference

#include <date.h>

Inheritance diagram for decimal_format_seconds< Duration, w >:
Inheritance graph

Public Types

using rep = typename std::common_type< Duration, std::chrono::seconds >::type::rep
 
using precision = typename make_precision< rep, w >::type
 

Public Member Functions

constexpr decimal_format_seconds ()
 
constexpr decimal_format_seconds (const Duration &d) noexcept
 
std::chrono::seconds & seconds () noexcept
 
constexpr std::chrono::seconds seconds () const noexcept
 
constexpr precision subseconds () const noexcept
 
precision to_duration () const noexcept
 
constexpr bool in_conventional_range () const noexcept
 

Static Public Attributes

static auto constexpr const width = make_precision<rep, w>::width
 

Private Attributes

std::chrono::seconds s_
 
precision sub_s_
 

Friends

template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const decimal_format_seconds &x)
 

Detailed Description

template<class Duration, unsigned w = width<std::common_type< Duration, std::chrono::seconds>::type::period::den>::value>
class date::detail::decimal_format_seconds< Duration, w >

Definition at line 3626 of file date.h.

Member Typedef Documentation

◆ precision

using precision = typename make_precision<rep, w>::type

Definition at line 3630 of file date.h.

◆ rep

using rep = typename std::common_type<Duration, std::chrono::seconds>::type::rep

Definition at line 3629 of file date.h.

Constructor & Destructor Documentation

◆ decimal_format_seconds() [1/2]

constexpr decimal_format_seconds ( )
inline

Definition at line 3638 of file date.h.

◆ decimal_format_seconds() [2/2]

constexpr decimal_format_seconds ( const Duration &  d)
inlineexplicitnoexcept

Definition at line 3643 of file date.h.

Member Function Documentation

◆ in_conventional_range()

constexpr bool in_conventional_range ( ) const
inlinenoexcept

Definition at line 3657 of file date.h.

◆ seconds() [1/2]

std::chrono::seconds& seconds ( )
inlinenoexcept

Definition at line 3648 of file date.h.

◆ seconds() [2/2]

constexpr std::chrono::seconds seconds ( ) const
inlinenoexcept

Definition at line 3649 of file date.h.

◆ subseconds()

constexpr precision subseconds ( ) const
inlinenoexcept

Definition at line 3650 of file date.h.

◆ to_duration()

precision to_duration ( ) const
inlinenoexcept

Definition at line 3652 of file date.h.

Friends And Related Function Documentation

◆ operator<<

std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const decimal_format_seconds< Duration, w > &  x 
)
friend

Definition at line 3666 of file date.h.

Member Data Documentation

◆ s_

std::chrono::seconds s_
private

Definition at line 3634 of file date.h.

◆ sub_s_

precision sub_s_
private

Definition at line 3635 of file date.h.

◆ width

auto constexpr const width = make_precision<rep, w>::width
static

Definition at line 3631 of file date.h.


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