|
KiCad PCB EDA Suite
|
#include <pin_map.h>
Public Member Functions | |
| PIN_MAP ()=default | |
| PIN_MAP (const wxString &aName) | |
| const wxString & | GetName () const |
| void | SetName (const wxString &aName) |
| void | SetEntry (const wxString &aPinNumber, const wxString &aPadNumber) |
| Set the pad number for a symbol pin. | |
| void | ClearEntry (const wxString &aPinNumber) |
| Remove the entry for aPinNumber. | |
| bool | HasEntry (const wxString &aPinNumber) const |
| const wxString & | GetPadNumber (const wxString &aPinNumber) const |
| const std::vector< PIN_MAP_ENTRY > & | GetEntries () const |
| bool | IsEmpty () const |
| bool | IsIdentity (const std::vector< wxString > &aPinNumbers) const |
| bool | operator== (const PIN_MAP &aOther) const |
Private Member Functions | |
| std::vector< PIN_MAP_ENTRY >::iterator | findEntry (const wxString &aPinNumber) |
| std::vector< PIN_MAP_ENTRY >::const_iterator | findEntry (const wxString &aPinNumber) const |
Private Attributes | |
| wxString | m_name |
| std::vector< PIN_MAP_ENTRY > | m_entries |
A named pin map.
A pin map is footprint-agnostic: it carries only a name unique within the owning symbol and the pin-to-pad entries. The link between a footprint and the map it uses lives in ASSOCIATED_FOOTPRINT, so more than one footprint can reference the same named map without copying the entries.
Schematic instances do not own PIN_MAP objects; they reference one by name and overlay sparse edits via PIN_MAP_INSTANCE_OVERRIDE.
|
default |
References PIN_MAP().
Referenced by operator==(), and PIN_MAP().
|
explicit |
Definition at line 33 of file pin_map.cpp.
References m_name.
| void PIN_MAP::ClearEntry | ( | const wxString & | aPinNumber | ) |
Remove the entry for aPinNumber.
No-op if no such entry exists.
Definition at line 70 of file pin_map.cpp.
References findEntry(), and m_entries.
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 39 of file pin_map.cpp.
References m_entries.
Referenced by ClearEntry(), GetPadNumber(), HasEntry(), and SetEntry().
|
private |
Definition at line 49 of file pin_map.cpp.
References m_entries.
|
inline |
Definition at line 91 of file pin_map.h.
References m_entries.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and ERC_TESTER::TestPinMap().
|
inline |
Definition at line 69 of file pin_map.h.
References m_name.
Referenced by PIN_MAP_SET::AddOrReplace(), BOOST_AUTO_TEST_CASE(), and ERC_TESTER::TestPinMap().
| const wxString & PIN_MAP::GetPadNumber | ( | const wxString & | aPinNumber | ) | const |
Definition at line 85 of file pin_map.cpp.
References empty(), findEntry(), and m_entries.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and SCH_PIN::GetEffectivePadNumber().
| bool PIN_MAP::HasEntry | ( | const wxString & | aPinNumber | ) | const |
Definition at line 79 of file pin_map.cpp.
References findEntry(), and m_entries.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and SCH_PIN::GetEffectivePadNumber().
|
inline |
Definition at line 93 of file pin_map.h.
References m_entries.
Referenced by BOOST_AUTO_TEST_CASE().
| bool PIN_MAP::IsIdentity | ( | const std::vector< wxString > & | aPinNumbers | ) | const |
Definition at line 95 of file pin_map.cpp.
References pin.
Referenced by BOOST_AUTO_TEST_CASE().
| bool PIN_MAP::operator== | ( | const PIN_MAP & | aOther | ) | const |
Definition at line 107 of file pin_map.cpp.
| void PIN_MAP::SetEntry | ( | const wxString & | aPinNumber, |
| const wxString & | aPadNumber ) |
Set the pad number for a symbol pin.
Replaces any existing entry with the same pin number.
Definition at line 59 of file pin_map.cpp.
References findEntry(), and m_entries.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), PANEL_SYMBOL_PIN_MAP::harvestGrid(), MakeLegacyPinMap(), SCH_IO_KICAD_SEXPR_PARSER::parseOnePinMap(), ParsePinMapSet(), and PIN_MAP_RESOLVER_FIXTURE::PIN_MAP_RESOLVER_FIXTURE().
|
inline |
|
private |
Definition at line 111 of file pin_map.h.
Referenced by ClearEntry(), findEntry(), findEntry(), GetEntries(), GetPadNumber(), HasEntry(), IsEmpty(), operator==(), and SetEntry().
|
private |