MCPcopy Create free account
hub / github.com/aldelaro5/dolphin-memory-engine / getStructMap

Method getStructMap

Source/GUI/StructEditor/StructSelectModel.cpp:480–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480QMap<QString, StructDef*> StructSelectModel::getStructMap()
481{
482 QMap<QString, StructDef*> structMap = {};
483 StructTreeNode* curNode = m_rootNode;
484 QVector<StructTreeNode*> queue = {curNode->getChildren()};
485
486 while (!queue.isEmpty())
487 {
488 curNode = queue.takeFirst();
489 if (curNode->isGroup())
490 for (int i = static_cast<int>(curNode->getChildren().count()) - 1; i >= 0; --i)
491 queue.push_front(curNode->getChildren()[i]);
492 else
493 structMap.insert(curNode->getNameSpace(), curNode->getStructDef());
494 }
495
496 return structMap;
497}

Callers 1

MainWindowMethod · 0.45

Calls 3

getNameSpaceMethod · 0.80
getStructDefMethod · 0.80
isGroupMethod · 0.45

Tested by

no test coverage detected