KiCad PCB EDA Suite
Loading...
Searching...
No Matches
conn_changes.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
22#include "conn_keys.h"
23
24namespace SCH_CONNECTIVITY
25{
28{
30 std::vector<std::pair<NAME_ID, std::vector<NAME_ID>>> assigned;
31 std::vector<NAME_ID> removed;
32 bool Empty() const { return assigned.empty() && removed.empty(); }
33};
34
41{
43 std::vector<std::pair<NAME_ID, NAME_ID>> renamedNets;
44 std::vector<std::pair<std::vector<NAME_ID>, NAME_ID>> mergedNets;
45 std::vector<std::pair<NAME_ID, std::vector<NAME_ID>>> splitNets;
46 std::vector<NAME_ID> netsAdded;
47 std::vector<NAME_ID> netsRemoved;
48
53 std::vector<NAME_ID> netsChanged;
54
56 std::vector<ITEM_KEY> changedItems;
57 std::vector<ITEM_KEY> driverChangedItems;
59 std::vector<RECORD_KEY> changedIslands;
60 std::vector<ITEM_KEY> changedRuleAreas;
61
62 bool Empty() const
63 {
64 return changedIslands.empty() && changedRuleAreas.empty() && changedItems.empty() && driverChangedItems.empty()
65 && netclasses.Empty() && renamedNets.empty() && mergedNets.empty() && splitNets.empty()
66 && netsAdded.empty() && netsRemoved.empty() && netsChanged.empty();
67 }
68};
69
70} // namespace SCH_CONNECTIVITY
Value keys and the key session of the schematic connectivity engine.
uint32_t NAME_ID
Session handle of a name, ordered by UTF-8 value through NAME_LESS.
Definition conn_keys.h:42
Difference between two publications.
std::vector< ITEM_KEY > changedRuleAreas
Removed, replaced and new rule area keys.
std::vector< std::pair< std::vector< NAME_ID >, NAME_ID > > mergedNets
Old names and the one new name.
std::vector< std::pair< NAME_ID, NAME_ID > > renamedNets
Old and new name of each one to one succession group whose name changed.
std::vector< RECORD_KEY > changedIslands
Removed, replaced and new island keys.
std::vector< NAME_ID > netsRemoved
Old names of other succession groups.
std::vector< ITEM_KEY > driverChangedItems
Items whose ITEM_RESULT::driver changed or was removed.
std::vector< std::pair< NAME_ID, std::vector< NAME_ID > > > splitNets
One old name and the new names.
std::vector< NAME_ID > netsChanged
Old and current names whose membership or presentation inputs changed, with their bus dependents.
std::vector< ITEM_KEY > changedItems
Items whose row, island, rule area, source or text changed.
std::vector< NAME_ID > netsAdded
New names of other succession groups.
Difference between the previous and the current net name to netclass map.
std::vector< NAME_ID > removed
Names that no longer have netclasses.
std::vector< std::pair< NAME_ID, std::vector< NAME_ID > > > assigned
Names whose netclass list is new or different, in name order, with the new list.