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

#include <date.h>

Collaboration diagram for date::year_month:

Public Member Functions

 year_month ()=default
 
CONSTCD11 year_month (const date::year &y, const date::month &m) NOEXCEPT
 
CONSTCD11 date::year year () const NOEXCEPT
 
CONSTCD11 date::month month () const NOEXCEPT
 
template<class = detail::unspecified_month_disambiguator>
CONSTCD14 year_monthoperator+= (const months &dm) NOEXCEPT
 
template<class = detail::unspecified_month_disambiguator>
CONSTCD14 year_monthoperator-= (const months &dm) NOEXCEPT
 
CONSTCD14 year_monthoperator+= (const years &dy) NOEXCEPT
 
CONSTCD14 year_monthoperator-= (const years &dy) NOEXCEPT
 
CONSTCD11 bool ok () const NOEXCEPT
 

Private Attributes

date::year y_
 
date::month m_
 

Detailed Description

Definition at line 542 of file date.h.

Constructor & Destructor Documentation

◆ year_month() [1/2]

date::year_month::year_month ( )
default

◆ year_month() [2/2]

CONSTCD11 date::year_month::year_month ( const date::year y,
const date::month m 
)
inline

Definition at line 2177 of file date.h.

Member Function Documentation

◆ month()

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

Definition at line 2183 of file date.h.

Referenced by date::detail::low_level_fmt().

◆ ok()

CONSTCD11 bool date::year_month::ok ( ) const
inline

Definition at line 2184 of file date.h.

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

Here is the call graph for this function:

◆ operator+=() [1/2]

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

Definition at line 2190 of file date.h.

◆ operator+=() [2/2]

CONSTCD14 year_month & date::year_month::operator+= ( const years dy)
inline

Definition at line 2209 of file date.h.

◆ operator-=() [1/2]

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

Definition at line 2200 of file date.h.

◆ operator-=() [2/2]

CONSTCD14 year_month & date::year_month::operator-= ( const years dy)
inline

Definition at line 2218 of file date.h.

◆ year()

CONSTCD11 year date::year_month::year ( ) const
inline

Definition at line 2182 of file date.h.

Referenced by date::from_stream(), and date::detail::low_level_fmt().

Member Data Documentation

◆ m_

date::month date::year_month::m_
private

Definition at line 545 of file date.h.

◆ y_

date::year date::year_month::y_
private

Definition at line 544 of file date.h.


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