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
 
OwnedFfiContextoperator= (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().

◆ 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.

◆ OwnedFfiContext() [4/4]

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

◆ ~OwnedFfiContext()

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

Definition at line 75 of file astro_context.hpp.

Member Function Documentation

◆ get()

const siderust_context_t * siderust::detail::OwnedFfiContext::get ( ) const
inline

◆ 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().

◆ operator=()

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

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