Scarab  v3.9.3
Project 8 C++ Utility Library
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
year_month_weekday Class Reference

#include <date.h>

Public Member Functions

 year_month_weekday ()=default
 
constexpr year_month_weekday (const date::year &y, const date::month &m, const date::weekday_indexed &wdi) noexcept
 
 year_month_weekday (const sys_days &dp) noexcept
 
 year_month_weekday (const local_days &dp) noexcept
 
year_month_weekdayoperator+= (const months &m) noexcept
 
year_month_weekdayoperator-= (const months &m) noexcept
 
year_month_weekdayoperator+= (const years &y) noexcept
 
year_month_weekdayoperator-= (const years &y) noexcept
 
constexpr date::year year () const noexcept
 
constexpr date::month month () const noexcept
 
constexpr date::weekday weekday () const noexcept
 
constexpr unsigned index () const noexcept
 
constexpr date::weekday_indexed weekday_indexed () const noexcept
 
 operator sys_days () const noexcept
 
 operator local_days () const noexcept
 
bool ok () const noexcept
 

Private Member Functions

days to_days () const noexcept
 

Static Private Member Functions

static year_month_weekday from_days (days dp) noexcept
 

Private Attributes

date::year y_
 
date::month m_
 
date::weekday_indexed wdi_
 

Detailed Description

Definition at line 758 of file date.h.

Constructor & Destructor Documentation

◆ year_month_weekday() [1/4]

year_month_weekday ( )
default

◆ year_month_weekday() [2/4]

constexpr year_month_weekday ( const date::year y,
const date::month m,
const date::weekday_indexed wdi 
)
inlinenoexcept

Definition at line 2840 of file date.h.

◆ year_month_weekday() [3/4]

year_month_weekday ( const sys_days dp)
inlinenoexcept

Definition at line 2850 of file date.h.

◆ year_month_weekday() [4/4]

year_month_weekday ( const local_days dp)
inlineexplicitnoexcept

Definition at line 2856 of file date.h.

Member Function Documentation

◆ from_days()

year_month_weekday from_days ( days  dp)
inlinestaticprivatenoexcept

Definition at line 2953 of file date.h.

◆ index()

constexpr unsigned index ( ) const
inlinenoexcept

Definition at line 2910 of file date.h.

◆ month()

constexpr month month ( ) const
inlinenoexcept

Definition at line 2897 of file date.h.

◆ ok()

bool ok ( ) const
inlinenoexcept

Definition at line 2940 of file date.h.

◆ operator local_days()

operator local_days ( ) const
inlineexplicitnoexcept

Definition at line 2932 of file date.h.

◆ operator sys_days()

operator sys_days ( ) const
inlinenoexcept

Definition at line 2925 of file date.h.

◆ operator+=() [1/2]

year_month_weekday & operator+= ( const months m)
inlinenoexcept

Definition at line 2863 of file date.h.

◆ operator+=() [2/2]

year_month_weekday & operator+= ( const years y)
inlinenoexcept

Definition at line 2881 of file date.h.

◆ operator-=() [1/2]

year_month_weekday & operator-= ( const months m)
inlinenoexcept

Definition at line 2872 of file date.h.

◆ operator-=() [2/2]

year_month_weekday & operator-= ( const years y)
inlinenoexcept

Definition at line 2890 of file date.h.

◆ to_days()

days to_days ( ) const
inlineprivatenoexcept

Definition at line 2964 of file date.h.

◆ weekday()

constexpr weekday weekday ( ) const
inlinenoexcept

Definition at line 2902 of file date.h.

◆ weekday_indexed()

constexpr weekday_indexed weekday_indexed ( ) const
inlinenoexcept

Definition at line 2918 of file date.h.

◆ year()

constexpr year year ( ) const
inlinenoexcept

Definition at line 2896 of file date.h.

Member Data Documentation

◆ m_

date::month m_
private

Definition at line 761 of file date.h.

◆ wdi_

date::weekday_indexed wdi_
private

Definition at line 762 of file date.h.

◆ y_

date::year y_
private

Definition at line 760 of file date.h.


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