|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
#include <graph.hpp>
Public Member Functions | |
| uint8_t | add_group (const char *name, uint8_t parent=NO_GROUP) |
| Open a group (a component); returns its id. Nodes added with it belong to it. | |
| uint8_t | add_node (Kind kind, const char *name, uint8_t group, float value=0.0f, float value2=0.0f) |
| void | add_edge (uint8_t from, uint8_t to, Wave wave) |
| uint8_t | node_count () const |
| uint8_t | edge_count () const |
| uint8_t | group_count () const |
| const Node & | node (uint8_t i) const |
| const Edge & | edge (uint8_t i) const |
| const Group & | group (uint8_t i) const |
| uint8_t | count (Kind kind) const |
| How many nodes of a kind the graph holds — the structural tests' question. | |
| bool | overflowed () const |
| True if a describe() lost something: a node, edge or group was refused. | |
| void | clear () |
Static Public Attributes | |
| static constexpr uint8_t | MAX_NODES = 64 |
| a 32-mode bank and the string around it | |
| static constexpr uint8_t | MAX_EDGES = 128 |
| static constexpr uint8_t | MAX_GROUPS = 16 |
|
inline |
Open a group (a component); returns its id. Nodes added with it belong to it.
Definition at line 75 of file graph.hpp.
References MAX_GROUPS, and sbl::dsp::diagram::NO_GROUP.
Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::describe(), sbl::dsp::pm::LoadJunction< Load >::describe(), sbl::dsp::pm::ModalResonator< MaxModes >::describe(), and sbl::dsp::pm::StringLoop::describe().
|
inline |
Definition at line 81 of file graph.hpp.
References group(), MAX_NODES, and sbl::dsp::diagram::NO_NODE.
Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::describe(), sbl::dsp::pm::ThermalFriction::describe(), sbl::dsp::pm::TableFriction::describe(), sbl::dsp::pm::Bow< Law >::describe(), sbl::dsp::pm::MassSpringDamper::describe(), sbl::dsp::pm::LoadJunction< Load >::describe(), sbl::dsp::pm::ModalResonator< MaxModes >::describe(), and sbl::dsp::pm::StringLoop::describe().
|
inline |
Definition at line 88 of file graph.hpp.
References MAX_EDGES, and sbl::dsp::diagram::NO_NODE.
Referenced by sbl::dsp::pm::StringBase< Exciter, Load, MaxPeriod >::describe(), sbl::dsp::pm::Bow< Law >::describe(), sbl::dsp::pm::LoadJunction< Load >::describe(), sbl::dsp::pm::ModalResonator< MaxModes >::describe(), and sbl::dsp::pm::StringLoop::describe().
|
inline |
Definition at line 93 of file graph.hpp.
Referenced by sbl::dsp::diagram::detail::emit_group(), and sbl::dsp::diagram::render_mermaid().
|
inline |
Definition at line 94 of file graph.hpp.
Referenced by sbl::dsp::diagram::render_mermaid().
|
inline |
Definition at line 95 of file graph.hpp.
Referenced by sbl::dsp::diagram::detail::emit_group(), and sbl::dsp::diagram::render_mermaid().
|
inline |
Definition at line 96 of file graph.hpp.
Referenced by sbl::dsp::diagram::detail::emit_group(), and sbl::dsp::diagram::render_mermaid().
|
inline |
Definition at line 97 of file graph.hpp.
Referenced by sbl::dsp::diagram::render_mermaid().
|
inline |
Definition at line 98 of file graph.hpp.
Referenced by add_node(), sbl::dsp::diagram::detail::emit_group(), sbl::dsp::diagram::detail::fold_target(), and sbl::dsp::diagram::render_mermaid().
|
inline |
|
inline |
|
staticconstexpr |
a 32-mode bank and the string around it
Definition at line 70 of file graph.hpp.
Referenced by add_node().
|
staticconstexpr |
Definition at line 71 of file graph.hpp.
Referenced by add_edge(), and sbl::dsp::diagram::render_mermaid().
|
staticconstexpr |
Definition at line 72 of file graph.hpp.
Referenced by add_group().