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

#include <date.h>

Collaboration diagram for date::year_month_day:

Public Member Functions

 year_month_day ()=default
 
CONSTCD11 year_month_day (const date::year &y, const date::month &m, const date::day &d) NOEXCEPT
 
CONSTCD14 year_month_day (const year_month_day_last &ymdl) NOEXCEPT
 
CONSTCD14 year_month_day (sys_days dp) NOEXCEPT
 
CONSTCD14 year_month_day (local_days dp) NOEXCEPT
 
template<class = detail::unspecified_month_disambiguator>
CONSTCD14 year_month_dayoperator+= (const months &m) NOEXCEPT
 
template<class = detail::unspecified_month_disambiguator>
CONSTCD14 year_month_dayoperator-= (const months &m) NOEXCEPT
 
CONSTCD14 year_month_dayoperator+= (const years &y) NOEXCEPT
 
CONSTCD14 year_month_dayoperator-= (const years &y) NOEXCEPT
 
CONSTCD11 date::year year () const NOEXCEPT
 
CONSTCD11 date::month month () const NOEXCEPT
 
CONSTCD11 date::day day () const NOEXCEPT
 
CONSTCD14 operator sys_days () const NOEXCEPT
 
CONSTCD14 operator local_days () const NOEXCEPT
 
CONSTCD14 bool ok () const NOEXCEPT
 

Private Member Functions

CONSTCD14 days to_days () const NOEXCEPT
 

Static Private Member Functions

static CONSTCD14 year_month_day from_days (days dp) NOEXCEPT
 

Private Attributes

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

Detailed Description

Definition at line 690 of file date.h.

Constructor & Destructor Documentation

◆ year_month_day() [1/5]

date::year_month_day::year_month_day ( )
default

◆ year_month_day() [2/5]

CONSTCD11 date::year_month_day::year_month_day ( const date::year y,
const date::month m,
const date::day d 
)
inline

Definition at line 2901 of file date.h.

◆ year_month_day() [3/5]

CONSTCD14 date::year_month_day::year_month_day ( const year_month_day_last ymdl)
inline

Definition at line 2910 of file date.h.

◆ year_month_day() [4/5]

CONSTCD14 date::year_month_day::year_month_day ( sys_days  dp)
inline

Definition at line 2918 of file date.h.

◆ year_month_day() [5/5]

CONSTCD14 date::year_month_day::year_month_day ( local_days  dp)
inlineexplicit

Definition at line 2924 of file date.h.

Member Function Documentation

◆ day()

CONSTCD11 day date::year_month_day::day ( ) const
inline

Definition at line 2930 of file date.h.

References date::day::d_.

Referenced by date::from_stream(), parser_date(), strfnc_timeformat(), date::to_stream(), and toString().

◆ from_days()

CONSTCD14 year_month_day date::year_month_day::from_days ( days  dp)
inlinestaticprivate

Definition at line 3087 of file date.h.

◆ month()

CONSTCD11 month date::year_month_day::month ( ) const
inline

◆ ok()

CONSTCD14 bool date::year_month_day::ok ( ) const
inline

Definition at line 3006 of file date.h.

References date::day::d_, date::day::day(), date::month::ok(), and date::year::ok().

Referenced by date::detail::extract_weekday(), and date::to_stream().

Here is the call graph for this function:

◆ operator local_days()

CONSTCD14 date::year_month_day::operator local_days ( ) const
inlineexplicit

Definition at line 2998 of file date.h.

◆ operator sys_days()

CONSTCD14 date::year_month_day::operator sys_days ( ) const
inline

Definition at line 2991 of file date.h.

◆ operator+=() [1/2]

template<class >
CONSTCD14 year_month_day & date::year_month_day::operator+= ( const months m)
inline

Definition at line 2936 of file date.h.

◆ operator+=() [2/2]

CONSTCD14 year_month_day & date::year_month_day::operator+= ( const years y)
inline

Definition at line 2955 of file date.h.

◆ operator-=() [1/2]

template<class >
CONSTCD14 year_month_day & date::year_month_day::operator-= ( const months m)
inline

Definition at line 2946 of file date.h.

◆ operator-=() [2/2]

CONSTCD14 year_month_day & date::year_month_day::operator-= ( const years y)
inline

Definition at line 2964 of file date.h.

◆ to_days()

CONSTCD14 days date::year_month_day::to_days ( ) const
inlineprivate

Definition at line 2973 of file date.h.

References date::day::d_, and date::February.

◆ year()

Member Data Documentation

◆ d_

date::day date::year_month_day::d_
private

Definition at line 694 of file date.h.

◆ m_

date::month date::year_month_day::m_
private

Definition at line 693 of file date.h.

◆ y_

date::year date::year_month_day::y_
private

Definition at line 692 of file date.h.


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