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

#include <date.h>

Public Member Functions

 year_month_day ()=default
 
constexpr year_month_day (const date::year &y, const date::month &m, const date::day &d) noexcept
 
 year_month_day (const year_month_day_last &ymdl) noexcept
 
 year_month_day (sys_days dp) noexcept
 
 year_month_day (local_days dp) noexcept
 
year_month_dayoperator+= (const months &m) noexcept
 
year_month_dayoperator-= (const months &m) noexcept
 
year_month_dayoperator+= (const years &y) noexcept
 
year_month_dayoperator-= (const years &y) noexcept
 
constexpr date::year year () const noexcept
 
constexpr date::month month () const noexcept
 
constexpr date::day day () 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_day from_days (days dp) noexcept
 

Private Attributes

date::year y_
 
date::month m_
 
date::day d_
 

Detailed Description

Definition at line 638 of file date.h.

Constructor & Destructor Documentation

◆ year_month_day() [1/5]

year_month_day ( )
default

◆ year_month_day() [2/5]

constexpr year_month_day ( const date::year y,
const date::month m,
const date::day d 
)
inlinenoexcept

Definition at line 2590 of file date.h.

◆ year_month_day() [3/5]

year_month_day ( const year_month_day_last ymdl)
inlinenoexcept

Definition at line 2599 of file date.h.

◆ year_month_day() [4/5]

year_month_day ( sys_days  dp)
inlinenoexcept

Definition at line 2607 of file date.h.

◆ year_month_day() [5/5]

year_month_day ( local_days  dp)
inlineexplicitnoexcept

Definition at line 2613 of file date.h.

Member Function Documentation

◆ day()

constexpr day day ( ) const
inlinenoexcept

Definition at line 2619 of file date.h.

◆ from_days()

year_month_day from_days ( days  dp)
inlinestaticprivatenoexcept

Definition at line 2770 of file date.h.

◆ month()

constexpr month month ( ) const
inlinenoexcept

Definition at line 2618 of file date.h.

◆ ok()

bool ok ( ) const
inlinenoexcept

Definition at line 2693 of file date.h.

◆ operator local_days()

operator local_days ( ) const
inlineexplicitnoexcept

Definition at line 2685 of file date.h.

◆ operator sys_days()

operator sys_days ( ) const
inlinenoexcept

Definition at line 2678 of file date.h.

◆ operator+=() [1/2]

year_month_day & operator+= ( const months m)
inlinenoexcept

Definition at line 2624 of file date.h.

◆ operator+=() [2/2]

year_month_day & operator+= ( const years y)
inlinenoexcept

Definition at line 2642 of file date.h.

◆ operator-=() [1/2]

year_month_day & operator-= ( const months m)
inlinenoexcept

Definition at line 2633 of file date.h.

◆ operator-=() [2/2]

year_month_day & operator-= ( const years y)
inlinenoexcept

Definition at line 2651 of file date.h.

◆ to_days()

days to_days ( ) const
inlineprivatenoexcept

Definition at line 2660 of file date.h.

◆ year()

constexpr year year ( ) const
inlinenoexcept

Definition at line 2617 of file date.h.

Member Data Documentation

◆ d_

date::day d_
private

Definition at line 642 of file date.h.

◆ m_

date::month m_
private

Definition at line 641 of file date.h.

◆ y_

date::year y_
private

Definition at line 640 of file date.h.


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