MCPcopy Create free account
hub / github.com/cneben/QuickQanava / removeFromSelectionImpl

Function removeFromSelectionImpl

src/qanGraph.cpp:1347–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1345
1346template <class Primitive_t>
1347void removeFromSelectionImpl(QPointer<Primitive_t> primitive,
1348 qcm::Container<std::vector, QPointer<Primitive_t>>& selectedPrimitives)
1349{
1350 if (selectedPrimitives.contains(primitive.data()))
1351 selectedPrimitives.removeAll(primitive.data());
1352}
1353
1354void Graph::removeFromSelection(qan::Node& node) {
1355 removeFromSelectionImpl<qan::Node>(&node, _selectedNodes);

Callers

nothing calls this directly

Calls 3

containsMethod · 0.45
dataMethod · 0.45
removeAllMethod · 0.45

Tested by

no test coverage detected