Scarab  v2.4.5
Project 8 C++ Utility Library
Classes | Enumerations | Functions
date::detail Namespace Reference

Classes

struct  choose_trunc_type
 
struct  classify_duration
 
class  decimal_format_seconds
 
class  decimal_format_seconds< Duration, 0 >
 
struct  make_precision
 
struct  make_precision< Rep, w, false >
 
struct  make_string
 
struct  make_string< char >
 
struct  make_string< char, Traits >
 
struct  make_string< wchar_t >
 
struct  make_string< wchar_t, Traits >
 
struct  no_overflow
 
struct  rld
 
struct  rs
 
struct  ru
 
class  save_stream
 
struct  static_gcd
 
struct  static_gcd< 0, 0 >
 
struct  static_gcd< Xp, 0 >
 
struct  static_pow10
 
struct  static_pow10< 0 >
 
class  time_of_day_base
 
class  time_of_day_storage
 
class  time_of_day_storage< std::chrono::duration< Rep, Period >, detail::classify::hour >
 
class  time_of_day_storage< std::chrono::duration< Rep, Period >, detail::classify::minute >
 
class  time_of_day_storage< std::chrono::duration< Rep, Period >, detail::classify::second >
 
class  time_of_day_storage< std::chrono::duration< Rep, Period >, detail::classify::subsecond >
 
struct  width
 
struct  width< n, d, w, false >
 

Enumerations

enum  classify {
  not_valid, hour, minute, second,
  subsecond
}
 

Functions

template<class T >
constexpr std::enable_if< !std::chrono::treat_as_floating_point< T >::value, T >::type trunc (T t) noexcept
 
template<class T >
std::enable_if< std::chrono::treat_as_floating_point< T >::value, T >::type trunc (T t) noexcept
 
template<class Rep , class Period >
constexpr std::enable_if< std::numeric_limits< Rep >::is_signed, std::chrono::duration< Rep, Period > >::type abs (std::chrono::duration< Rep, Period > d)
 
template<class Rep , class Period >
constexpr std::enable_if< !std::numeric_limits< Rep >::is_signed, std::chrono::duration< Rep, Period > >::type abs (std::chrono::duration< Rep, Period > d)
 
template<class CharT , class Traits , class Duration >
unsigned extract_weekday (std::basic_ostream< CharT, Traits > &os, const fields< Duration > &fds)
 
template<class CharT , class Traits , class Duration >
unsigned extract_month (std::basic_ostream< CharT, Traits > &os, const fields< Duration > &fds)
 
template<class CharT , class Traits >
bool read_char (std::basic_istream< CharT, Traits > &is, CharT fmt, std::ios::iostate &err)
 
template<class CharT , class Traits >
unsigned read_unsigned (std::basic_istream< CharT, Traits > &is, unsigned m=1, unsigned M=10)
 
template<class CharT , class Traits >
int read_signed (std::basic_istream< CharT, Traits > &is, unsigned m=1, unsigned M=10)
 
template<class CharT , class Traits >
long double read_long_double (std::basic_istream< CharT, Traits > &is, unsigned m=1, unsigned M=10)
 
template<class CharT , class Traits >
void read (std::basic_istream< CharT, Traits > &)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, CharT a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, rs a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, ru a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, int a0, Args &&...args)
 
template<class CharT , class Traits , class ... Args>
void read (std::basic_istream< CharT, Traits > &is, rld a0, Args &&...args)
 
std::string to_string (std::uint64_t x)
 
template<class CharT , std::intmax_t N, std::intmax_t D>
std::enable_if< std::ratio< N, D >::type::den !=1, std::basic_string< CharT >>::type msl (std::ratio< N, D >)
 
template<class CharT , std::intmax_t N, std::intmax_t D>
std::enable_if< std::ratio< N, D >::type::den==1, std::basic_string< CharT >>::type msl (std::ratio< N, D >)
 
template<class CharT >
std::basic_string< CharT > msl (std::atto)
 
template<class CharT >
std::basic_string< CharT > msl (std::femto)
 
template<class CharT >
std::basic_string< CharT > msl (std::pico)
 
template<class CharT >
std::basic_string< CharT > msl (std::nano)
 
template<class CharT >
std::enable_if< std::is_same< CharT, char >::value, std::string >::type msl (std::micro)
 
template<class CharT >
std::enable_if< !std::is_same< CharT, char >::value, std::basic_string< CharT >>::type msl (std::micro)
 
template<class CharT >
std::basic_string< CharT > msl (std::milli)
 
template<class CharT >
std::basic_string< CharT > msl (std::centi)
 
template<class CharT >
std::basic_string< CharT > msl (std::deci)
 
template<class CharT >
std::basic_string< CharT > msl (std::deca)
 
template<class CharT >
std::basic_string< CharT > msl (std::hecto)
 
template<class CharT >
std::basic_string< CharT > msl (std::kilo)
 
template<class CharT >
std::basic_string< CharT > msl (std::mega)
 
template<class CharT >
std::basic_string< CharT > msl (std::giga)
 
template<class CharT >
std::basic_string< CharT > msl (std::tera)
 
template<class CharT >
std::basic_string< CharT > msl (std::peta)
 
template<class CharT >
std::basic_string< CharT > msl (std::exa)
 
template<class CharT , class Period >
std::basic_string< CharT > get_units (Period p)
 
template<class CharT >
std::basic_string< CharT > get_units (std::ratio< 1 >)
 
template<class CharT >
std::basic_string< CharT > get_units (std::ratio< 60 >)
 
template<class CharT >
std::basic_string< CharT > get_units (std::ratio< 3600 >)
 

Enumeration Type Documentation

◆ classify

enum classify
strong
Enumerator
not_valid 
hour 
minute 
second 
subsecond 

Definition at line 3722 of file date.h.

Function Documentation

◆ abs() [1/2]

constexpr std::enable_if< std::numeric_limits<Rep>::is_signed, std::chrono::duration<Rep, Period> >::type date::detail::abs ( std::chrono::duration< Rep, Period >  d)
inline

Definition at line 3754 of file date.h.

◆ abs() [2/2]

constexpr std::enable_if< !std::numeric_limits<Rep>::is_signed, std::chrono::duration<Rep, Period> >::type date::detail::abs ( std::chrono::duration< Rep, Period >  d)
inline

Definition at line 3767 of file date.h.

◆ extract_month()

unsigned date::detail::extract_month ( std::basic_ostream< CharT, Traits > &  os,
const fields< Duration > &  fds 
)

Definition at line 4396 of file date.h.

◆ extract_weekday()

unsigned date::detail::extract_weekday ( std::basic_ostream< CharT, Traits > &  os,
const fields< Duration > &  fds 
)

Definition at line 4370 of file date.h.

◆ get_units() [1/4]

std::basic_string<CharT> date::detail::get_units ( Period  p)

Definition at line 7908 of file date.h.

◆ get_units() [2/4]

std::basic_string<CharT> date::detail::get_units ( std::ratio< 1 >  )

Definition at line 7915 of file date.h.

◆ get_units() [3/4]

std::basic_string<CharT> date::detail::get_units ( std::ratio< 60 >  )

Definition at line 7922 of file date.h.

◆ get_units() [4/4]

std::basic_string<CharT> date::detail::get_units ( std::ratio< 3600 >  )

Definition at line 7929 of file date.h.

◆ msl() [1/19]

std::enable_if< std::ratio<N, D>::type::den != 1, std::basic_string<CharT>>::type date::detail::msl ( std::ratio< N, D >  )
inline

Definition at line 7742 of file date.h.

◆ msl() [2/19]

std::enable_if< std::ratio<N, D>::type::den == 1, std::basic_string<CharT>>::type date::detail::msl ( std::ratio< N, D >  )
inline

Definition at line 7756 of file date.h.

◆ msl() [3/19]

std::basic_string<CharT> date::detail::msl ( std::atto  )
inline

Definition at line 7765 of file date.h.

◆ msl() [4/19]

std::basic_string<CharT> date::detail::msl ( std::femto  )
inline

Definition at line 7773 of file date.h.

◆ msl() [5/19]

std::basic_string<CharT> date::detail::msl ( std::pico  )
inline

Definition at line 7781 of file date.h.

◆ msl() [6/19]

std::basic_string<CharT> date::detail::msl ( std::nano  )
inline

Definition at line 7789 of file date.h.

◆ msl() [7/19]

std::enable_if< std::is_same<CharT, char>::value, std::string>::type date::detail::msl ( std::micro  )
inline

Definition at line 7801 of file date.h.

◆ msl() [8/19]

std::enable_if< !std::is_same<CharT, char>::value, std::basic_string<CharT>>::type date::detail::msl ( std::micro  )
inline

Definition at line 7813 of file date.h.

◆ msl() [9/19]

std::basic_string<CharT> date::detail::msl ( std::milli  )
inline

Definition at line 7821 of file date.h.

◆ msl() [10/19]

std::basic_string<CharT> date::detail::msl ( std::centi  )
inline

Definition at line 7829 of file date.h.

◆ msl() [11/19]

std::basic_string<CharT> date::detail::msl ( std::deci  )
inline

Definition at line 7837 of file date.h.

◆ msl() [12/19]

std::basic_string<CharT> date::detail::msl ( std::deca  )
inline

Definition at line 7845 of file date.h.

◆ msl() [13/19]

std::basic_string<CharT> date::detail::msl ( std::hecto  )
inline

Definition at line 7853 of file date.h.

◆ msl() [14/19]

std::basic_string<CharT> date::detail::msl ( std::kilo  )
inline

Definition at line 7861 of file date.h.

◆ msl() [15/19]

std::basic_string<CharT> date::detail::msl ( std::mega  )
inline

Definition at line 7869 of file date.h.

◆ msl() [16/19]

std::basic_string<CharT> date::detail::msl ( std::giga  )
inline

Definition at line 7877 of file date.h.

◆ msl() [17/19]

std::basic_string<CharT> date::detail::msl ( std::tera  )
inline

Definition at line 7885 of file date.h.

◆ msl() [18/19]

std::basic_string<CharT> date::detail::msl ( std::peta  )
inline

Definition at line 7893 of file date.h.

◆ msl() [19/19]

std::basic_string<CharT> date::detail::msl ( std::exa  )
inline

Definition at line 7901 of file date.h.

◆ read() [1/6]

void date::detail::read ( std::basic_istream< CharT, Traits > &  )

Definition at line 5845 of file date.h.

◆ read() [2/6]

void read ( std::basic_istream< CharT, Traits > &  is,
CharT  a0,
Args &&...  args 
)

Definition at line 5871 of file date.h.

◆ read() [3/6]

void read ( std::basic_istream< CharT, Traits > &  is,
rs  a0,
Args &&...  args 
)

Definition at line 5894 of file date.h.

◆ read() [4/6]

void read ( std::basic_istream< CharT, Traits > &  is,
ru  a0,
Args &&...  args 
)

Definition at line 5905 of file date.h.

◆ read() [5/6]

void read ( std::basic_istream< CharT, Traits > &  is,
int  a0,
Args &&...  args 
)

Definition at line 5916 of file date.h.

◆ read() [6/6]

void read ( std::basic_istream< CharT, Traits > &  is,
rld  a0,
Args &&...  args 
)

Definition at line 5938 of file date.h.

◆ read_char()

bool date::detail::read_char ( std::basic_istream< CharT, Traits > &  is,
CharT  fmt,
std::ios::iostate &  err 
)

Definition at line 5719 of file date.h.

◆ read_long_double()

long double date::detail::read_long_double ( std::basic_istream< CharT, Traits > &  is,
unsigned  m = 1,
unsigned  M = 10 
)

Definition at line 5785 of file date.h.

◆ read_signed()

int date::detail::read_signed ( std::basic_istream< CharT, Traits > &  is,
unsigned  m = 1,
unsigned  M = 10 
)

Definition at line 5759 of file date.h.

◆ read_unsigned()

unsigned date::detail::read_unsigned ( std::basic_istream< CharT, Traits > &  is,
unsigned  m = 1,
unsigned  M = 10 
)

Definition at line 5734 of file date.h.

◆ to_string()

std::basic_string< CharT > to_string ( std::uint64_t  x)
inline

Definition at line 7722 of file date.h.

◆ trunc() [1/2]

constexpr std::enable_if< !std::chrono::treat_as_floating_point<T>::value, T>::type date::detail::trunc ( t)
inlinenoexcept

Definition at line 1000 of file date.h.

◆ trunc() [2/2]

std::enable_if< std::chrono::treat_as_floating_point<T>::value, T>::type date::detail::trunc ( t)
inlinenoexcept

Definition at line 1013 of file date.h.