21 #ifndef SRC_NETLIST_NETS_H_
22 #define SRC_NETLIST_NETS_H_
25 #include "../entity_system/entity_system.h"
26 #include "../entity_system/vector_property.h"
42 std::string name(entity_system::entity net)
const {
43 return m_names[m_system.
lookup(net)];
45 const std::vector<entity_system::entity> &
pins(entity_system::entity net)
const {
46 return m_pins[m_system.
lookup(net)];
48 std::pair< std::vector<std::string>::const_iterator, std::vector<std::string>::const_iterator > names()
const {
49 return std::make_pair(m_names.begin(), m_names.end());
52 std::pair< std::vector<std::vector<entity_system::entity>>::const_iterator, std::vector<std::vector<entity_system::entity>>::const_iterator >
pins()
const {
53 return std::make_pair(m_pins.begin(), m_pins.end());
56 void connect(entity_system::entity net, entity_system::entity pin);
57 void disconnect(entity_system::entity net, entity_system::entity pin);
58 void pins(entity_system::entity net, std::vector<entity_system::entity>
pins);
59 void name(entity_system::entity net, std::string name);
62 void preallocate_pins(entity_system::entity net, std::size_t pin_count);
Implementation of the vector property class.
Definition: vector_property.h:37
entity_system class.
Definition: entity_system.h:40
entity_index lookup(entity e) const
Gets the index of an entity.
Definition: entity_system.h:149