MCPcopy Create free account
hub / github.com/Qucs/qucs / getModules

Method getModules

qucs/module.cpp:490–500  ·  view source on GitHub ↗

The function returns the registered modules in the given category as a pointer list. The pointer list is empty if there is no such category available.

Source from the content-addressed store, hash-verified

488// as a pointer list. The pointer list is empty if there is no such
489// category available.
490QList<Module *> Category::getModules (QString category) {
491 QList<Module *> res;
492 QList<Category *>::const_iterator it;
493 for (it = Category::Categories.constBegin();
494 it != Category::Categories.constEnd(); it++) {
495 if (category == (*it)->Name) {
496 res = (*it)->Content;
497 }
498 }
499 return res;
500}
501
502// Returns the index number into the category list for the given
503// category name. The function returns minus 1 if there is no such

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected