2 #include "util/uuid.hpp"
3 #include "nlohmann/json_fwd.hpp"
4 #include "pool/unit.hpp"
5 #include "block/block.hpp"
6 #include "schematic_symbol.hpp"
7 #include "line_net.hpp"
8 #include "common/text.hpp"
9 #include "net_label.hpp"
10 #include "bus_label.hpp"
11 #include "bus_ripper.hpp"
12 #include "power_symbol.hpp"
13 #include "common/line.hpp"
14 #include "common/arc.hpp"
15 #include "util/warning.hpp"
16 #include "common/layer_provider.hpp"
17 #include "frame/frame.hpp"
18 #include "common/picture.hpp"
19 #include "schematic_junction.hpp"
31 bool has_label =
false;
32 bool has_power_sym =
false;
47 std::map<UUID, SchematicJunction> junctions;
48 std::map<UUID, SchematicSymbol> symbols;
49 std::map<UUID, class LineNet> net_lines;
50 std::map<UUID, class Text> texts;
51 std::map<UUID, NetLabel> net_labels;
52 std::map<UUID, PowerSymbol> power_symbols;
53 std::map<UUID, BusLabel> bus_labels;
54 std::map<UUID, BusRipper> bus_rippers;
55 std::map<UUID, Line> lines;
56 std::map<UUID, Arc> arcs;
57 std::map<UUID, Picture> pictures;
58 std::map<std::string, std::string> title_block_values;
59 std::vector<Warning> warnings;
63 void expand_symbols(
const class Schematic &sch);
64 void expand_symbol(
const UUID &sym_uuid,
const Schematic &sch);
65 void simplify_net_lines();
67 void delete_duplicate_net_lines();
68 void vacuum_junctions();
69 void delete_dependants();
70 void propagate_net_segments();
71 std::map<UUID, NetSegmentInfo> analyze_net_segments(
bool place_warnings =
false);
72 std::set<UUIDPath<3>> get_pins_connected_to_net_segment(
const UUID &uu_segment);
73 void update_junction_connections();
74 void update_bus_ripper_connections();
92 json serialize()
const;
95 void expand_symbol_without_net_lines(
const UUID &sym_uuid,
const Schematic &sch);
A block is one level of hierarchy in the netlist.
Definition: block.hpp:26
Make a Bus member's Net available on the schematic.
Definition: bus_ripper.hpp:19
A Bus is used for grouping nets.
Definition: bus.hpp:20
A Junction is a point in 2D-Space.
Definition: junction.hpp:20
Definition: layer_provider.hpp:7
LineNet is similar to Line, except it denotes electrical connection.
Definition: line_net.hpp:17
Interface for classes that store objects identified by UUID (e.g. Line or Junction)
Definition: object_provider.hpp:10
Definition: schematic_junction.hpp:6
Definition: schematic_symbol.hpp:17
A Schematic is the visual representation of a Block.
Definition: schematic.hpp:29
Definition: symbol.hpp:19
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Definition: uuid_ptr.hpp:8
a class to store JSON values
Definition: json.hpp:166
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61