RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
Loading...
Searching...
No Matches
rpnx::querygraph::debug_message Struct Reference

A diagnostic emitted by a running query handler. More...

#include <querygraph.hpp>

Public Member Functions

template<typename... Ts>
 debug_message (std::format_string< Ts... > format_string, Ts &&... args)
 Construct and format a diagnostic message.
 
 debug_message (debug_message const &other)=default
 Copy a message and its recorded location.
 

Public Attributes

std::string message
 Already-formatted diagnostic text.
 
std::source_location location
 Source location assigned at the handler's co_yield site.
 

Detailed Description

A diagnostic emitted by a running query handler.

Yield a debug_message from a handler to attach formatted text and the yield site's source location to the current node. Messages are included in structured and binary graph dumps.

Definition at line 359 of file querygraph.hpp.

Constructor & Destructor Documentation

◆ debug_message()

template<typename... Ts>
rpnx::querygraph::debug_message::debug_message ( std::format_string< Ts... > format_string,
Ts &&... args )
inline

Construct and format a diagnostic message.

Parameters
format_stringChecked std::format format string.
argsValues interpolated into format_string.

Definition at line 373 of file querygraph.hpp.

References message.

Referenced by debug_message().

Member Data Documentation

◆ location

std::source_location rpnx::querygraph::debug_message::location

Source location assigned at the handler's co_yield site.

Definition at line 364 of file querygraph.hpp.

◆ message

std::string rpnx::querygraph::debug_message::message

Already-formatted diagnostic text.

Definition at line 362 of file querygraph.hpp.

Referenced by debug_message().


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