MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / setChild

Method setChild

file_plugins/gerber/compnode.cpp:66–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64ComponentsNode* ComponentsNode::parentItem() { return m_parentItem; }
65
66void ComponentsNode::setChild(int row, ComponentsNode* item)
67{
68 if (item)
69 item->m_parentItem = this;
70 if (row < childItems.size())
71 childItems[row].reset(item);
72}
73
74void ComponentsNode::append(ComponentsNode* item)
75{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
resetMethod · 0.45

Tested by

no test coverage detected