MCPcopy Create free account
hub / github.com/VCVRack/Rack / addModel

Method addModel

src/plugin/Plugin.cpp:21–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void Plugin::addModel(Model* model) {
22 // Check that the model is not added to a plugin already
23 assert(!model->plugin);
24 model->plugin = this;
25 models.push_back(model);
26}
27
28Model* Plugin::getModel(const std::string& slug) {
29 auto it = std::find_if(models.begin(), models.end(), [&](Model* m) {

Callers 1

initFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected