STX  1.0.0
List of all members
stx::ReportPayload Class Reference

#include <report.h>

Detailed Description

ReportPayload holds a reference to the report's data and is used accross ABI-boundaries by panic handlers, as FixedReport can vary accross configurations. ReportPayload is essentially a type-erased view of FixedReport and SpanReport (as in std::span).

ReportPayload is the type of the second argument to panic_handler.

Constructor & Destructor Documentation

◆ ReportPayload() [1/4]

constexpr stx::ReportPayload::ReportPayload ( FixedReport const &  report)
inlineexplicitnoexcept

◆ ReportPayload() [2/4]

constexpr stx::ReportPayload::ReportPayload ( SpanReport const &  report)
inlineexplicitnoexcept

◆ ReportPayload() [3/4]

constexpr stx::ReportPayload::ReportPayload ( ReportPayload const &  )
defaultnoexcept

◆ ReportPayload() [4/4]

constexpr stx::ReportPayload::ReportPayload ( ReportPayload &&  )
defaultnoexcept

◆ ~ReportPayload()

stx::ReportPayload::~ReportPayload ( )
defaultnoexcept

Member Function Documentation

◆ data()

constexpr std::string_view const& stx::ReportPayload::data ( ) const
inlinenoexcept

◆ operator=() [1/2]

constexpr ReportPayload& stx::ReportPayload::operator= ( ReportPayload const &  )
defaultnoexcept

◆ operator=() [2/2]

constexpr ReportPayload& stx::ReportPayload::operator= ( ReportPayload &&  )
defaultnoexcept

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