|
CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | JieqiGenerator |
| A generator that generates consecutive Jieqis and their moments (in JDE), starting from a given JDE (exclusive). More... | |
Enumerations | |
| enum class | Jieqi : uint8_t { 立春 , 雨水 , 惊蛰 , 春分 , 清明 , 谷雨 , 立夏 , 小满 , 芒种 , 夏至 , 小暑 , 大暑 , 立秋 , 处暑 , 白露 , 秋分 , 寒露 , 霜降 , 立冬 , 小雪 , 大雪 , 冬至 , 小寒 , 大寒 , COUNT , LICHUN , YUSHUI , JINGZHE , CHUNFEN , QINGMING , GUYU , LIXIA , XIAOMAN , MANGZHONG , XIAZHI , XIAOSHU , DASHU , LIQIU , CHUSHU , BAILU , QIUFEN , HANLU , SHUANGJIANG , LIDONG , XIAOXUE , DAXUE , DONGZHI , XIAOHAN , DAHAN } |
| The Chinese Jieqi (节气). More... | |
Functions | |
| constexpr auto | is_jie (const Jieqi jq) -> bool |
| Check if the given jq is a Jie (节). | |
| constexpr auto | is_qi (const Jieqi jq) -> bool |
| Check if the given jq is a Qi (气). | |
| constexpr auto | to_index (const Jieqi jq) -> uint8_t |
| Get the index of the given jq. | |
| constexpr auto | from_index (const uint8_t index) -> Jieqi |
| Get the Jieqi at a 0-based index counted from 立春. | |
| constexpr auto | name_of (const Jieqi jq) -> std::string_view |
| Get the name of the given jq. | |
| constexpr auto | longitude_of (const Jieqi jq) -> double |
| Get the solar longitude (in degrees) at which the given jq begins. | |
| auto | calc_jieqi_jde (const int32_t year, const Jieqi jq) -> double |
| Get the JDE for the given year and jieqi. | |
| auto | jieqi_jde (const int32_t year, const Jieqi jq) -> double |
| Get the JDE for the given year and jieqi, using cache. | |
| auto | jieqi_ut1_moment (const int32_t year, const Jieqi jq) -> calendar::Datetime |
| Get the UT1 moment of the given year and jieqi. | |
Variables | |
| constexpr uint8_t | JIEQI_COUNT |
| constexpr auto | JIEQI_LIST |
| A view of all enum values of Jieqi. | |
| constexpr auto | GREGORIAN_YEAR_JIEQI_LIST |
| Jieqi in Gregorian calendar order, beginning with 小寒. | |
| constexpr std::array< std::string_view, JIEQI_COUNT > | JIEQI_NAME |
| Name of each Jieqi, positioned by to_index. | |
| constexpr std::array< double, JIEQI_COUNT > | JIEQI_SOLAR_LONGITUDE |
| Solar longitude (in degrees) at which each Jieqi begins, positioned by to_index. | |
|
strong |
The Chinese Jieqi (节气).
|
inlinenodiscard |
Get the JDE for the given year and jieqi.
| year | The gregorian year, in [1, 32766]. |
| jq | The jieqi. |
| std::invalid_argument | if year is outside [1, 32766], or jq is not a valid Jieqi. |
| std::runtime_error | if the root search does not yield exactly one root. |
|
nodiscardconstexpr |
Get the Jieqi at a 0-based index counted from 立春.
| index | The index, in [0, JIEQI_COUNT). |
| std::invalid_argument | if index is not a valid index. |
|
nodiscardconstexpr |
Check if the given jq is a Jie (节).
| jq | The jieqi. |
|
nodiscardconstexpr |
Check if the given jq is a Qi (气).
| jq | The jieqi. |
|
inlinenodiscard |
Get the JDE for the given year and jieqi, using cache.
| year | The gregorian year, in [1, 32766]. |
| jq | The jieqi. |
| std::invalid_argument | if year is outside [1, 32766], or jq is not a valid Jieqi. |
| std::runtime_error | if the root search does not yield exactly one root. |
|
inlinenodiscard |
Get the UT1 moment of the given year and jieqi.
| year | The gregorian year, in [401, 32766]. |
| jq | The jieqi. |
| std::invalid_argument | if year is outside [401, 32766], or jq is not a valid Jieqi. |
| std::runtime_error | if the root search does not yield exactly one root. |
|
nodiscardconstexpr |
Get the solar longitude (in degrees) at which the given jq begins.
| jq | The jieqi. |
| std::invalid_argument | if jq is not a valid Jieqi. |
|
nodiscardconstexpr |
Get the name of the given jq.
| jq | The jieqi. |
| std::invalid_argument | if jq is not a valid Jieqi. |
|
nodiscardconstexpr |
Get the index of the given jq.
| jq | The jieqi. |
|
inlineconstexpr |
Jieqi in Gregorian calendar order, beginning with 小寒.
|
inlineconstexpr |
|
inlineconstexpr |
A view of all enum values of Jieqi.
|
inlineconstexpr |
|
inlineconstexpr |
Solar longitude (in degrees) at which each Jieqi begins, positioned by to_index.