siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::AstroContext Class Reference

#include <siderust/astro_context.hpp>

Public Member Functions

constexpr AstroContext ()=default
 
constexpr AstroContext (EarthOrientationModel model)
 
constexpr EarthOrientationModel model () const
 
template<typename ModelTag >
constexpr AstroContext with_model () const
 

Static Public Member Functions

static AstroContext from_default_ffi ()
 Create an AstroContext reflecting the Rust library's built-in default.
 

Detailed Description

Examples
14_nutation_models.cpp.

Definition at line 28 of file astro_context.hpp.

Constructor & Destructor Documentation

◆ AstroContext() [1/2]

constexpr siderust::AstroContext::AstroContext ( )
constexprdefault

Referenced by from_default_ffi(), and with_model().

◆ AstroContext() [2/2]

constexpr siderust::AstroContext::AstroContext ( EarthOrientationModel  model)
inlineexplicitconstexpr

Definition at line 33 of file astro_context.hpp.

Member Function Documentation

◆ from_default_ffi()

static AstroContext siderust::AstroContext::from_default_ffi ( )
inlinestatic

Create an AstroContext reflecting the Rust library's built-in default.

Definition at line 42 of file astro_context.hpp.

References AstroContext(), and siderust::check_status().

◆ model()

constexpr EarthOrientationModel siderust::AstroContext::model ( ) const
inlineconstexpr

Definition at line 35 of file astro_context.hpp.

◆ with_model()

template<typename ModelTag >
constexpr AstroContext siderust::AstroContext::with_model ( ) const
inlineconstexpr
Examples
14_nutation_models.cpp.

Definition at line 37 of file astro_context.hpp.

References AstroContext().


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