示例#1
0
void NodeUpdateProxy::addLocalNode(
        Device::Node& parent,
        Device::Node&& node)
{
    ISCORE_ASSERT(node.template is<Device::AddressSettings>());

    int row = parent.childCount();
    if(deviceExplorer)
    {
        deviceExplorer->addNode(
                    &parent,
                    std::move(node),
                    row);
    }
    else
    {
        parent.emplace(parent.begin() + row,
                       std::move(node));
    }
}