YOrch 1.0.0
Loading...
Searching...
No Matches
yorch::exec_context< Ctx, Prev > Struct Template Reference

Lightweight borrowed view used during execution. More...

#include <context.hpp>

Collaboration diagram for yorch::exec_context< Ctx, Prev >:

Public Member Functions

constexpr Prev & prev_view () &noexcept
 
constexpr const Prev & prev_view () const &noexcept
 

Public Attributes

Ctx & ctx
 
Prev prev
 Optional direct-parent payload view used by direct-parent access specs.
 

Detailed Description

template<typename Ctx, typename Prev = no_prev>
struct yorch::exec_context< Ctx, Prev >

Lightweight borrowed view used during execution.

This type does not own the context object. It only exposes an external context to execution and resolution logic for the duration of a run. The caller must ensure that ctx outlives the exec_context.

Template Parameters
CtxBorrowed context type.

Definition at line 187 of file context.hpp.

Member Function Documentation

◆ prev_view() [1/2]

template<typename Ctx , typename Prev = no_prev>
constexpr Prev & yorch::exec_context< Ctx, Prev >::prev_view ( ) &
inlineconstexprnoexcept

Definition at line 194 of file context.hpp.

◆ prev_view() [2/2]

template<typename Ctx , typename Prev = no_prev>
constexpr const Prev & yorch::exec_context< Ctx, Prev >::prev_view ( ) const &
inlineconstexprnoexcept

Definition at line 198 of file context.hpp.

Member Data Documentation

◆ ctx

template<typename Ctx , typename Prev = no_prev>
Ctx& yorch::exec_context< Ctx, Prev >::ctx

Definition at line 189 of file context.hpp.

◆ prev

template<typename Ctx , typename Prev = no_prev>
Prev yorch::exec_context< Ctx, Prev >::prev

Optional direct-parent payload view used by direct-parent access specs.

Definition at line 192 of file context.hpp.


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