RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
Loading...
Searching...
No Matches
rpnx::querygraph::binary_traits< T > Struct Template Reference

Binary serialization customization point for dumpable values. More...

#include <querygraph.hpp>

Static Public Member Functions

static std::vector< std::byte > serialize_to_binary (T const &value)
 Serialize one value into a byte vector.
 

Detailed Description

template<typename T>
struct rpnx::querygraph::binary_traits< T >

Binary serialization customization point for dumpable values.

The default implementation delegates to RPNXSerialization. Applications may specialize this template when a value requires a custom byte representation. Query evaluation itself does not serialize values; this customization is used by diagnostic graph dumps and canonical errors.

Template Parameters
TValue type to serialize.

Definition at line 265 of file querygraph.hpp.

Member Function Documentation

◆ serialize_to_binary()

template<typename T>
static std::vector< std::byte > rpnx::querygraph::binary_traits< T >::serialize_to_binary ( T const & value)
inlinestatic

Serialize one value into a byte vector.

Parameters
valueValue to serialize.
Returns
Serialized byte representation.

Definition at line 272 of file querygraph.hpp.

Referenced by rpnx::querygraph::make_canonical_error_storage(), and rpnx::querygraph::debug_abi::graph::register_binary_descriptors().


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