CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
astro::moon_phase::detail::RootGenerator< POLICY > Struct Template Reference

Eager-by-one Moon-phase roots in JDE(TT); next refines the following root before returning. More...

#include <moon_phase.hpp>

Public Member Functions

 RootGenerator (const double start_jde)
 RootGenerator (const double start_jde, const phase_moments::PhaseKind kind)
auto peek () const -> double
 Inspect the pending root without computing another one.
auto next () -> double
 Return the pending root after successfully computing its successor.

Detailed Description

template<NumericPolicy POLICY>
struct astro::moon_phase::detail::RootGenerator< POLICY >

Eager-by-one Moon-phase roots in JDE(TT); next refines the following root before returning.

Constructor & Destructor Documentation

◆ RootGenerator() [1/2]

template<NumericPolicy POLICY>
astro::moon_phase::detail::RootGenerator< POLICY >::RootGenerator ( const double start_jde)
inlineexplicit

◆ RootGenerator() [2/2]

template<NumericPolicy POLICY>
astro::moon_phase::detail::RootGenerator< POLICY >::RootGenerator ( const double start_jde,
const phase_moments::PhaseKind kind )
inlineexplicit

Member Function Documentation

◆ next()

template<NumericPolicy POLICY>
auto astro::moon_phase::detail::RootGenerator< POLICY >::next ( ) ->double
inlinenodiscard

Return the pending root after successfully computing its successor.

◆ peek()

template<NumericPolicy POLICY>
auto astro::moon_phase::detail::RootGenerator< POLICY >::peek ( ) const->double
inlinenodiscard

Inspect the pending root without computing another one.


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