21 #ifndef SRC_NETLIST_PINS_H_
22 #define SRC_NETLIST_PINS_H_
25 #include "../entity_system/entity_system.h"
26 #include "../entity_system/vector_property.h"
43 std::string name(entity_system::entity pin)
const {
44 return m_names[m_system.
lookup(pin)];
46 entity_system::entity owner(entity_system::entity pin)
const {
47 return m_owners[m_system.
lookup(pin)];
49 entity_system::entity net(entity_system::entity pin)
const {
50 return m_nets[m_system.
lookup(pin)];
52 entity_system::entity standard_cell_pin(entity_system::entity pin)
const {
53 return m_std_cell_pin[m_system.
lookup(pin)];
56 std::pair< std::vector<entity_system::entity>::const_iterator, std::vector<entity_system::entity>::const_iterator > owners()
const {
57 return std::make_pair(m_owners.
begin(), m_owners.
end());
60 std::pair< std::vector<entity_system::entity>::const_iterator, std::vector<entity_system::entity>::const_iterator >
nets()
const {
61 return std::make_pair(m_nets.
begin(), m_nets.
end());
64 void name(entity_system::entity pin, std::string name);
65 void owner(entity_system::entity pin, entity_system::entity owner);
66 void net(entity_system::entity pin, entity_system::entity net);
67 void standard_cell_pin(entity_system::entity pin, entity_system::entity std_cell_pin);
std::vector< T >::const_iterator begin() const
Begin iterator.
Definition: vector_property.h:137
std::vector< T >::const_iterator end() const
End iterator.
Definition: vector_property.h:146
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