Project Alice
Loading...
Searching...
No Matches
sys::date Class Reference

#include <date_interface.hpp>

Public Types

using value_base_t = uint16_t
 
using zero_is_null_t = std::true_type
 

Public Member Functions

constexpr date () noexcept=default
 
constexpr date (value_base_t v) noexcept
 
constexpr date (date const &v) noexcept=default
 
constexpr date (date &&v) noexcept=default
 
 date (year_month_day const &v, absolute_time_point base) noexcept
 
dateoperator= (date const &v) noexcept=default
 
dateoperator= (date &&v) noexcept=default
 
constexpr bool operator== (date v) const noexcept
 
constexpr bool operator!= (date v) const noexcept
 
constexpr bool operator< (date v) const noexcept
 
constexpr bool operator<= (date v) const noexcept
 
constexpr bool operator> (date v) const noexcept
 
constexpr bool operator>= (date v) const noexcept
 
constexpr operator bool () const noexcept
 
date operator+ (int32_t v) const noexcept
 
date operator- (int32_t v) const noexcept
 
dateoperator+= (int32_t v) noexcept
 
constexpr int32_t to_raw_value () const noexcept
 
year_month_day to_ymd (absolute_time_point base) const noexcept
 

Public Attributes

value_base_t value = 0
 

Detailed Description

Definition at line 56 of file date_interface.hpp.

Member Typedef Documentation

◆ value_base_t

using sys::date::value_base_t = uint16_t

Definition at line 58 of file date_interface.hpp.

◆ zero_is_null_t

using sys::date::zero_is_null_t = std::true_type

Definition at line 59 of file date_interface.hpp.

Constructor & Destructor Documentation

◆ date() [1/5]

constexpr sys::date::date ( )
constexprdefaultnoexcept
Here is the caller graph for this function:

◆ date() [2/5]

constexpr sys::date::date ( value_base_t  v)
inlineexplicitconstexprnoexcept

Definition at line 64 of file date_interface.hpp.

◆ date() [3/5]

constexpr sys::date::date ( date const &  v)
constexprdefaultnoexcept

◆ date() [4/5]

constexpr sys::date::date ( date &&  v)
constexprdefaultnoexcept

◆ date() [5/5]

sys::date::date ( year_month_day const &  v,
absolute_time_point  base 
)
noexcept

Definition at line 29 of file date_interface.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ operator bool()

constexpr sys::date::operator bool ( ) const
inlineexplicitconstexprnoexcept

Definition at line 89 of file date_interface.hpp.

◆ operator!=()

constexpr bool sys::date::operator!= ( date  v) const
inlineconstexprnoexcept

Definition at line 74 of file date_interface.hpp.

◆ operator+()

date sys::date::operator+ ( int32_t  v) const
inlinenoexcept

Definition at line 93 of file date_interface.hpp.

◆ operator+=()

date & sys::date::operator+= ( int32_t  v)
inlinenoexcept

Definition at line 99 of file date_interface.hpp.

◆ operator-()

date sys::date::operator- ( int32_t  v) const
inlinenoexcept

Definition at line 96 of file date_interface.hpp.

◆ operator<()

constexpr bool sys::date::operator< ( date  v) const
inlineconstexprnoexcept

Definition at line 77 of file date_interface.hpp.

◆ operator<=()

constexpr bool sys::date::operator<= ( date  v) const
inlineconstexprnoexcept

Definition at line 80 of file date_interface.hpp.

◆ operator=() [1/2]

date & sys::date::operator= ( date &&  v)
defaultnoexcept

◆ operator=() [2/2]

date & sys::date::operator= ( date const &  v)
defaultnoexcept

◆ operator==()

constexpr bool sys::date::operator== ( date  v) const
inlineconstexprnoexcept

Definition at line 71 of file date_interface.hpp.

◆ operator>()

constexpr bool sys::date::operator> ( date  v) const
inlineconstexprnoexcept

Definition at line 83 of file date_interface.hpp.

◆ operator>=()

constexpr bool sys::date::operator>= ( date  v) const
inlineconstexprnoexcept

Definition at line 86 of file date_interface.hpp.

◆ to_raw_value()

constexpr int32_t sys::date::to_raw_value ( ) const
inlineconstexprnoexcept

Definition at line 104 of file date_interface.hpp.

◆ to_ymd()

year_month_day sys::date::to_ymd ( absolute_time_point  base) const
noexcept

Definition at line 35 of file date_interface.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ value

value_base_t sys::date::value = 0

Definition at line 61 of file date_interface.hpp.


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