MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / updateModel

Method updateModel

examples/triage/exports.cpp:50–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48
49
50void GenericExportsModel::updateModel()
51{
52 beginResetModel();
53 m_allEntries.clear();
54 for (auto& sym : m_data->GetSymbolsOfType(FunctionSymbol))
55 {
56 if ((sym->GetBinding() == GlobalBinding) || (sym->GetBinding() == WeakBinding))
57 m_allEntries.push_back(sym);
58 }
59 for (auto& sym : m_data->GetSymbolsOfType(DataSymbol))
60 {
61 if ((sym->GetBinding() == GlobalBinding) || (sym->GetBinding() == WeakBinding))
62 m_allEntries.push_back(sym);
63 }
64 endResetModel();
65
66 setFilter(m_filter);
67}
68
69
70int GenericExportsModel::columnCount(const QModelIndex&) const

Callers

nothing calls this directly

Calls 5

GetSymbolsOfTypeMethod · 0.80
GetBindingMethod · 0.80
push_backMethod · 0.80
setFilterFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected