3 #include "component.hpp" 4 #include "nlohmann/json_fwd.hpp" 6 #include "net_class.hpp" 7 #include "pool/pool.hpp" 8 #include "util/uuid.hpp" 9 #include "bom_export_settings.hpp" 30 static Block new_from_file(
const std::string &filename,
Pool &pool);
34 std::map<UUID, Net> nets;
35 std::map<UUID, Bus> buses;
36 std::map<UUID, Component> components;
37 std::map<UUID, NetClass> net_classes;
40 std::map<UUID, std::string> group_names;
41 std::map<UUID, std::string> tag_names;
42 std::string get_group_name(
const UUID &uu)
const;
43 std::string get_tag_name(
const UUID &uu)
const;
46 std::map<const class Part *, BOMRow> get_BOM(
const BOMExportSettings &settings)
const;
49 void operator=(
const Block &block);
51 void merge_nets(
Net *net,
Net *into);
57 void vacuum_group_tag_names();
66 void update_connection_count();
68 void update_diffpairs();
a class to store JSON values
Definition: json.hpp:161
Net * extract_pins(const std::set< UUIDPath< 3 >> &pins, Net *net=nullptr)
Takes pins specified by pins and moves them over to net.
Definition: block.cpp:274
Definition: bom_export_settings.hpp:11
Stores a sequence of up to 3 UUIDs.
Definition: uuid_path.hpp:13
Net * insert_net()
creates new net
Definition: block.cpp:124
A block is one level of hierarchy in the netlist.
Definition: block.hpp:26
Definition: uuid_ptr.hpp:9
void vacuum_nets()
deletes unreferenced nets
Definition: block.cpp:163
This class encapsulates a UUID and allows it to be uses as a value type.
Definition: uuid.hpp:16
Stores objects (Unit, Entity, Symbol, Part, etc.) from the pool.
Definition: pool.hpp:21
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61