microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Classes | Namespaces | Typedefs | Functions
metadata_map.hpp File Reference

Type-erased, zero-allocation metadata map generator view. More...

#include "../markdown.hpp"
#include "../microfmt.hpp"
#include "../reloco.hpp"
#include <reloco/type_id.hpp>
Include dependency graph for metadata_map.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  microfmt::property_entry
 Type-erased property entry synthesized during generation. More...
 
class  microfmt::metadata_map
 Type-erased, non-owning metadata map view driven by a sequential next callback. More...
 

Namespaces

namespace  microfmt
 
namespace  microfmt::md
 

Typedefs

using microfmt::property_print_fn_t = void(*)(const void *val_ptr, const sink &out) noexcept
 Function pointer signature for type-erased property value formatting.
 
using microfmt::metadata_next_fn_t = bool(*)(void *ctx, property_entry &out) noexcept
 Function pointer signature for fetching the next property entry.
 

Functions

void microfmt::md::write_metadata_table (writer &w, metadata_map map, span< char > scratch_buf, string_view title="Metadata Properties") noexcept
 Streams any type-erased metadata_map view into a Markdown table.
 
 RELOCO_TYPE_ID_NAME (microfmt::property_entry, "microfmt::property_entry")
 

Detailed Description

Type-erased, zero-allocation metadata map generator view.

Function Documentation

◆ RELOCO_TYPE_ID_NAME()

RELOCO_TYPE_ID_NAME ( microfmt::property_entry  ,
"microfmt::property_entry"   
)