#include <Year.h>
|
| int | value () const noexcept |
| | Year ()=default |
| | Year (int value) |
| | Creates a normalized year value from raw input.
|
| bool | empty () const noexcept |
| | Checks whether the stored value is empty.
|
|
| static constexpr int | minValue () noexcept |
| | Returns the minimum supported year.
|
| static constexpr int | maxValue () noexcept |
| | Returns the maximum supported year.
|
| static bool | isValid (int value) noexcept |
| | Checks whether a raw year is valid.
|
| static int | normalize (int value) noexcept |
| | Normalizes a raw year value.
|
Definition at line 10 of file Year.h.
◆ Year() [1/2]
| core::domain::Year::Year |
( |
| ) |
|
|
default |
◆ Year() [2/2]
| core::domain::Year::Year |
( |
int | value | ) |
|
|
explicit |
Creates a normalized year value from raw input.
- Parameters
-
Definition at line 17 of file Year.cpp.
◆ empty()
| bool core::domain::Year::empty |
( |
| ) |
const |
|
noexcept |
Checks whether the stored value is empty.
- Returns
- true when no valid year is stored.
Definition at line 38 of file Year.cpp.
◆ isValid()
| bool core::domain::Year::isValid |
( |
int | value | ) |
|
|
staticnoexcept |
Checks whether a raw year is valid.
- Parameters
-
- Returns
- true when the year lies within the supported range.
Definition at line 30 of file Year.cpp.
◆ maxValue()
| int core::domain::Year::maxValue |
( |
| ) |
|
|
staticconstexprnoexcept |
Returns the maximum supported year.
- Returns
- Largest accepted year.
Definition at line 26 of file Year.cpp.
◆ minValue()
| int core::domain::Year::minValue |
( |
| ) |
|
|
staticconstexprnoexcept |
Returns the minimum supported year.
- Returns
- Smallest accepted year.
Definition at line 22 of file Year.cpp.
◆ normalize()
| int core::domain::Year::normalize |
( |
int | value | ) |
|
|
staticnoexcept |
Normalizes a raw year value.
- Parameters
-
- Returns
- The year when valid, otherwise 0.
Definition at line 34 of file Year.cpp.
◆ value()
| int core::domain::Year::value |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following files: