|
tempoch-cpp 0.5.3
Header-only C++ wrapper for tempoch
|
A typed external encoding of a time instant on scale S.
More...
#include <tempoch/time_base.hpp>
Public Types | |
| using | scale_type = S |
| using | format_type = F |
| using | quantity_type = typename FormatTraits< F >::quantity_type |
Static Public Member Functions | |
| static std::optional< EncodedTime > | try_new (quantity_type raw) |
| static EncodedTime | from_raw (quantity_type raw) |
| template<typename U = F, std::enable_if_t< std::is_same_v< U, format::JD >, int > = 0> | |
| static EncodedTime | J2000 () |
| template<typename U = F, std::enable_if_t< std::is_same_v< U, format::JD >, int > = 0> | |
| static EncodedTime | from_mjd (const EncodedTime< S, format::MJD > &mjd) |
| template<typename U = F, std::enable_if_t< std::is_same_v< U, format::MJD >, int > = 0> | |
| static EncodedTime | from_jd (const EncodedTime< S, format::JD > &jd) |
| template<typename U = S, std::enable_if_t< std::is_same_v< U, scale::TT >, int > = 0> | |
| static EncodedTime | from_utc (const CivilTime &civil) |
| template<typename U = S, std::enable_if_t< std::is_same_v< U, scale::TT >, int > = 0> | |
| static EncodedTime | from_utc (const CivilTime &civil, const TimeContext &ctx) |
A typed external encoding of a time instant on scale S.
Definition at line 312 of file time_base.hpp.
Definition at line 318 of file time_base.hpp.
| using tempoch::EncodedTime< S, F >::quantity_type = typename FormatTraits<F>::quantity_type |
Definition at line 319 of file time_base.hpp.
Definition at line 317 of file time_base.hpp.
Definition at line 325 of file time_base.hpp.
Referenced by tempoch::EncodedTime< S, F >::from_raw(), tempoch::EncodedTime< S, F >::J2000(), tempoch::EncodedTime< S, F >::mean(), and tempoch::EncodedTime< S, F >::try_new().
|
inlineexplicit |
Definition at line 327 of file time_base.hpp.
|
inlineexplicit |
Definition at line 331 of file time_base.hpp.
|
inlinestatic |
Definition at line 480 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinestatic |
Definition at line 475 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinestatic |
Construct directly from a quantity, validating that the value is finite.
Unlike try_new, this throws TempochException on non-finite input.
Definition at line 342 of file time_base.hpp.
References tempoch::EncodedTime< S, F >::EncodedTime(), and tempoch::EncodedTime< S, F >::raw().
|
inlinestatic |
Definition at line 485 of file time_base.hpp.
References tempoch::Time< S >::from_civil(), and tempoch::scale_tag_v.
|
inlinestatic |
Definition at line 490 of file time_base.hpp.
References tempoch::Time< S >::from_civil(), and tempoch::scale_tag_v.
|
inlinestatic |
Definition at line 349 of file time_base.hpp.
References tempoch::EncodedTime< S, F >::EncodedTime(), and tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 445 of file time_base.hpp.
|
inlinenoexcept |
Definition at line 460 of file time_base.hpp.
References tempoch::EncodedTime< S, F >::julian_centuries_qty().
|
inlinenoexcept |
Definition at line 455 of file time_base.hpp.
Referenced by tempoch::EncodedTime< S, F >::julian_centuries().
|
inlinenoexcept |
Definition at line 436 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 440 of file time_base.hpp.
References tempoch::EncodedTime< S, F >::EncodedTime(), and tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 433 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 450 of file time_base.hpp.
|
inlinenoexcept |
Definition at line 427 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 403 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 411 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 421 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 407 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 416 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 428 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 429 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 426 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 430 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 431 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 345 of file time_base.hpp.
|
inlinenoexcept |
Definition at line 344 of file time_base.hpp.
Referenced by tempoch::EncodedTime< S, F >::from_raw(), and tempoch::EncodedTime< S, F >::try_new().
|
inline |
Definition at line 354 of file time_base.hpp.
References tempoch::Time< S >::from_encoded(), and tempoch::scale_tag_v.
|
inline |
Definition at line 360 of file time_base.hpp.
References tempoch::Time< S >::from_encoded(), and tempoch::scale_tag_v.
|
inline |
Definition at line 376 of file time_base.hpp.
References tempoch::Time< S >::from_encoded(), and tempoch::scale_tag_v.
|
inline |
Definition at line 470 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 465 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 495 of file time_base.hpp.
References tempoch::Time< S >::from_encoded(), tempoch::scale_tag_v, and tempoch::Time< S >::to_civil().
|
inline |
Definition at line 500 of file time_base.hpp.
References tempoch::Time< S >::from_encoded_with(), tempoch::scale_tag_v, and tempoch::Time< S >::to_civil().
|
inline |
Definition at line 365 of file time_base.hpp.
References tempoch::Time< S >::from_encoded_with(), and tempoch::scale_tag_v.
|
inline |
Definition at line 371 of file time_base.hpp.
References tempoch::Time< S >::from_encoded_with(), and tempoch::scale_tag_v.
|
inline |
Definition at line 381 of file time_base.hpp.
References tempoch::Time< S >::from_encoded_with(), and tempoch::scale_tag_v.
|
inlinestatic |
Definition at line 333 of file time_base.hpp.
References tempoch::EncodedTime< S, F >::EncodedTime(), and tempoch::EncodedTime< S, F >::raw().
|
inline |
Definition at line 386 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inline |
Definition at line 395 of file time_base.hpp.
References tempoch::scale_tag_v.
|
inlinenoexcept |
Definition at line 346 of file time_base.hpp.