microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | List of all members
microfmt::remote_trap_view Class Reference

Formattable summary view of a trap context. More...

#include <exception_frame.hpp>

Public Member Functions

constexpr remote_trap_view (const trap_context &trap, exception_frame_ref decoder, symbol_resolver_ref resolver, symbol_resolution_context &symbol_context RELOCO_LIFETIMEBOUND) noexcept
 Constructs a trap summary view.
 
constexpr const trap_context & trap () const noexcept RELOCO_LIFETIMEBOUND
 Returns the wrapped trap context.
 
constexpr exception_frame_ref decoder () const noexcept
 Returns the trap-frame decoder handle.
 
constexpr symbol_resolver_ref resolver () const noexcept
 Returns the symbol resolver handle.
 
constexpr symbol_resolution_context & symbol_context () const noexcept RELOCO_LIFETIMEBOUND
 

Detailed Description

Formattable summary view of a trap context.

Constructor & Destructor Documentation

◆ remote_trap_view()

constexpr microfmt::remote_trap_view::remote_trap_view ( const trap_context &  trap,
exception_frame_ref  decoder,
symbol_resolver_ref  resolver,
symbol_resolution_context &symbol_context  RELOCO_LIFETIMEBOUND 
)
inlineconstexprnoexcept

Constructs a trap summary view.

Parameters
trapThe decoded trap context to summarize.
decoderTrap-frame decoder (used for reason descriptions).
resolverSymbol resolver for PCs.
symbol_contextCaller-owned symbol-resolution scratch and state.

Member Function Documentation

◆ decoder()

constexpr exception_frame_ref microfmt::remote_trap_view::decoder ( ) const
inlineconstexprnoexcept

Returns the trap-frame decoder handle.

Returns
Bound exception_frame_ref.

◆ resolver()

constexpr symbol_resolver_ref microfmt::remote_trap_view::resolver ( ) const
inlineconstexprnoexcept

Returns the symbol resolver handle.

Returns
Bound symbol_resolver_ref.

◆ symbol_context()

constexpr symbol_resolution_context & microfmt::remote_trap_view::symbol_context ( ) const
inlineconstexprnoexcept

◆ trap()

constexpr const trap_context & microfmt::remote_trap_view::trap ( ) const
inlineconstexprnoexcept

Returns the wrapped trap context.

Returns
Reference to the trap_context.

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