Beispiel #1
0
void NodeUpdateProxy::addLocalAddress(
        Device::Node& parentnode,
        const Device::AddressSettings& settings,
        int row)
{
    if(deviceExplorer)
    {
        deviceExplorer->addAddress(
                    &parentnode,
                    settings,
                    row);
    }
    else
    {
        parentnode.emplace(parentnode.begin() + row, settings, &parentnode);
    }
}
Beispiel #2
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));
    }
}