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

#include <siderust/astro_context.hpp>

Public Member Functions

 OwnedFfiContext ()
 Create a context using the Rust library's built-in default model.
 OwnedFfiContext (EarthOrientationModel model)
 OwnedFfiContext (const AstroContext &ctx)
 OwnedFfiContext (const OwnedFfiContext &)=delete
OwnedFfiContext & operator= (const OwnedFfiContext &)=delete
 ~OwnedFfiContext ()
EarthOrientationModel model () const
 Query the Earth-orientation model stored inside this FFI context handle.
const siderust_context_t * get () const

Detailed Description

RAII wrapper around a siderust_context_t* created from an EarthOrientationModel. Used by the coordinate transform wrappers to call the new _with_context FFI variants.

Definition at line 58 of file astro_context.hpp.

Constructor & Destructor Documentation

◆ OwnedFfiContext() [1/4]

siderust::detail::OwnedFfiContext::OwnedFfiContext ( )
inline

Create a context using the Rust library's built-in default model.

Definition at line 61 of file astro_context.hpp.

References siderust::check_status().

Referenced by operator=(), OwnedFfiContext(), and OwnedFfiContext().

◆ OwnedFfiContext() [2/4]

siderust::detail::OwnedFfiContext::OwnedFfiContext ( EarthOrientationModel model)
inlineexplicit

Definition at line 65 of file astro_context.hpp.

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

◆ OwnedFfiContext() [3/4]

siderust::detail::OwnedFfiContext::OwnedFfiContext ( const AstroContext & ctx)
inlineexplicit

Definition at line 70 of file astro_context.hpp.

References model(), and OwnedFfiContext().

◆ OwnedFfiContext() [4/4]

siderust::detail::OwnedFfiContext::OwnedFfiContext ( const OwnedFfiContext & )
delete

References OwnedFfiContext().

◆ ~OwnedFfiContext()

siderust::detail::OwnedFfiContext::~OwnedFfiContext ( )
inline

Definition at line 75 of file astro_context.hpp.

Member Function Documentation

◆ get()

◆ model()

EarthOrientationModel siderust::detail::OwnedFfiContext::model ( ) const
inline

Query the Earth-orientation model stored inside this FFI context handle.

Definition at line 82 of file astro_context.hpp.

References siderust::check_status().

Referenced by OwnedFfiContext(), and OwnedFfiContext().

◆ operator=()

OwnedFfiContext & siderust::detail::OwnedFfiContext::operator= ( const OwnedFfiContext & )
delete

References OwnedFfiContext().


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