2 #include "common/common.hpp"
3 #include "nlohmann/json_fwd.hpp"
5 #include "util/uuid.hpp"
6 #include "util/uuid_path.hpp"
7 #include "util/uuid_ptr.hpp"
17 Connection(
const json &j,
class Block *block);
18 Connection(Net *n) : net(n)
23 json serialize()
const;
41 Component(
const UUID &uu,
const json &j,
class IPool &pool,
class Block *block =
nullptr);
42 Component(
const UUID &uu);
44 UUID get_uuid()
const;
47 const class Entity *entity =
nullptr;
48 const class Part *part =
nullptr;
53 bool nopopulate =
false;
64 std::map<UUIDPath<2>, std::set<int>>
pin_names;
65 std::map<UUIDPath<2>, std::string> custom_pin_names;
67 std::string replace_text(
const std::string &t,
bool *replaced =
nullptr)
const;
69 json serialize()
const;
std::map< UUIDPath< 2 >, std::set< int > > pin_names
used to select alternate pin names
Definition: component.hpp:64
std::map< UUIDPath< 2 >, Connection > connections
which Nins are connected to which Net the UUIDPath consists of Gate and Pin UUID
Definition: component.hpp:59
a class to store JSON values
Definition: json.hpp:166
basic_json<> json
default JSON class
Definition: json_fwd.hpp:61