NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
date::weekday Class Reference

#include <date.h>

Collaboration diagram for date::weekday:

Public Member Functions

 weekday ()=default
 
CONSTCD11 weekday (unsigned wd) NOEXCEPT
 
CONSTCD14 weekday (const sys_days &dp) NOEXCEPT
 
CONSTCD14 weekday (const local_days &dp) NOEXCEPT
 
CONSTCD14 weekdayoperator++ () NOEXCEPT
 
CONSTCD14 weekday operator++ (int) NOEXCEPT
 
CONSTCD14 weekdayoperator-- () NOEXCEPT
 
CONSTCD14 weekday operator-- (int) NOEXCEPT
 
CONSTCD14 weekdayoperator+= (const days &d) NOEXCEPT
 
CONSTCD14 weekdayoperator-= (const days &d) NOEXCEPT
 
CONSTCD11 bool ok () const NOEXCEPT
 
CONSTCD11 unsigned c_encoding () const NOEXCEPT
 
CONSTCD11 unsigned iso_encoding () const NOEXCEPT
 
CONSTCD11 weekday_indexed operator[] (unsigned index) const NOEXCEPT
 
CONSTCD11 weekday_last operator[] (last_spec) const NOEXCEPT
 

Static Private Member Functions

static CONSTCD14 unsigned char weekday_from_days (int z) NOEXCEPT
 

Private Attributes

unsigned char wd_
 

Friends

class weekday_indexed
 
CONSTCD11 bool operator== (const weekday &x, const weekday &y) NOEXCEPT
 
CONSTCD14 days operator- (const weekday &x, const weekday &y) NOEXCEPT
 
CONSTCD14 weekday operator+ (const weekday &x, const days &y) NOEXCEPT
 
template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const weekday &wd)
 

Detailed Description

Definition at line 441 of file date.h.

Constructor & Destructor Documentation

◆ weekday() [1/4]

date::weekday::weekday ( )
default

◆ weekday() [2/4]

CONSTCD11 date::weekday::weekday ( unsigned  wd)
inlineexplicit

Definition at line 1831 of file date.h.

◆ weekday() [3/4]

CONSTCD14 date::weekday::weekday ( const sys_days dp)
inline

Definition at line 1837 of file date.h.

◆ weekday() [4/4]

CONSTCD14 date::weekday::weekday ( const local_days dp)
inlineexplicit

Definition at line 1843 of file date.h.

Member Function Documentation

◆ c_encoding()

CONSTCD11 unsigned date::weekday::c_encoding ( ) const
inline

Definition at line 1874 of file date.h.

Referenced by date::detail::low_level_fmt(), and Posix::detail::rule::to_string().

◆ iso_encoding()

CONSTCD11 unsigned date::weekday::iso_encoding ( ) const
inline

Definition at line 1881 of file date.h.

Referenced by getWeekDay().

◆ ok()

◆ operator++() [1/2]

CONSTCD14 weekday & date::weekday::operator++ ( )
inline

Definition at line 1847 of file date.h.

◆ operator++() [2/2]

CONSTCD14 weekday date::weekday::operator++ ( int  )
inline

Definition at line 1848 of file date.h.

◆ operator+=()

CONSTCD14 weekday & date::weekday::operator+= ( const days d)
inline

Definition at line 1855 of file date.h.

◆ operator--() [1/2]

CONSTCD14 weekday & date::weekday::operator-- ( )
inline

Definition at line 1849 of file date.h.

◆ operator--() [2/2]

CONSTCD14 weekday date::weekday::operator-- ( int  )
inline

Definition at line 1850 of file date.h.

◆ operator-=()

CONSTCD14 weekday & date::weekday::operator-= ( const days d)
inline

Definition at line 1864 of file date.h.

◆ operator[]() [1/2]

CONSTCD11 weekday_last date::weekday::operator[] ( last_spec  ) const
inline

Definition at line 2168 of file date.h.

◆ operator[]() [2/2]

CONSTCD11 weekday_indexed date::weekday::operator[] ( unsigned  index) const
inline

Definition at line 2099 of file date.h.

◆ weekday_from_days()

CONSTCD14 unsigned char date::weekday::weekday_from_days ( int  z)
inlinestaticprivate

Definition at line 1823 of file date.h.

Friends And Related Function Documentation

◆ operator+

CONSTCD14 weekday operator+ ( const weekday x,
const days y 
)
friend

Definition at line 1915 of file date.h.

◆ operator-

CONSTCD14 days operator- ( const weekday x,
const weekday y 
)
friend

Definition at line 1905 of file date.h.

◆ operator<<

template<class CharT , class Traits >
std::basic_ostream< CharT, Traits > & operator<< ( std::basic_ostream< CharT, Traits > &  os,
const weekday wd 
)
friend

Definition at line 1933 of file date.h.

◆ operator==

CONSTCD11 bool operator== ( const weekday x,
const weekday y 
)
friend

Definition at line 1889 of file date.h.

◆ weekday_indexed

friend class weekday_indexed
friend

Definition at line 475 of file date.h.

Member Data Documentation

◆ wd_

unsigned char date::weekday::wd_
private

Definition at line 443 of file date.h.


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