Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
mermaid.hpp File Reference

Render a Graph as a Mermaid flowchart (AP-037) More...

Detailed Description

Render a Graph as a Mermaid flowchart (AP-037)

Definition in file mermaid.hpp.

#include <cstddef>
#include <cstdint>
#include <cstdio>
#include <sbl/dsp/diagram/graph.hpp>

Go to the source code of this file.

Classes

struct  sbl::dsp::diagram::detail::Out
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::dsp
 
namespace  sbl::dsp::diagram
 A model's wiring as data, for pictures.
 
namespace  sbl::dsp::diagram::detail
 

Enumerations

enum class  sbl::dsp::diagram::Depth : uint8_t { sbl::dsp::diagram::Full , sbl::dsp::diagram::Components }
 

Functions

void sbl::dsp::diagram::detail::node_label (const Node &n, char *out, size_t cap)
 Label with the paper symbol and the cheap live parameter.
 
void sbl::dsp::diagram::detail::node_decl (const Node &n, uint8_t id, char *out, size_t cap)
 Shape by kind: the reader should tell a delay from a filter at a glance.
 
const char * sbl::dsp::diagram::detail::wave_name (Wave w)
 
void sbl::dsp::diagram::detail::edge_decl (uint8_t from, uint8_t to, Wave w, char *out, size_t cap)
 
uint8_t sbl::dsp::diagram::detail::fold_target (const Graph &g, uint8_t group)
 The group a node renders in at Components depth: nested groups fold to their id.
 
void sbl::dsp::diagram::detail::emit_group (const Graph &g, uint8_t gid, Depth depth, Out &o, int indent)
 
size_t sbl::dsp::diagram::render_mermaid (const Graph &g, char *buf, size_t cap, Depth depth=Depth::Full)
 Render the graph as a Mermaid flowchart into a buffer.