3#include "dsp/flowgraph/flowgraph.h"
10 void registerNodeSimple(ndsp::Flowgraph &flowgraph, std::string menuname)
12 std::string
id = T().d_id;
13 flowgraph.node_internal_registry.insert({id, {menuname, [](
const ndsp::Flowgraph *f) {
return std::make_shared<ndsp::NodeInternal>(f, std::make_shared<T>()); }}});
17 void registerNode(ndsp::Flowgraph &flowgraph, std::string menuname)
19 std::string
id = T(&flowgraph).blk->d_id;
20 flowgraph.node_internal_registry.insert({id, {menuname, [](
const ndsp::Flowgraph *f) {
return std::make_shared<T>(f); }}});
25 std::map<std::string, ndsp::Flowgraph::NodeInternalReg> &r;
Definition flowgraph.h:28
Definition dsp_flowgraph_register.h:24