|
KiCad PCB EDA Suite
|
A symbol-owned ordered set of named pin maps. More...
#include <pin_map.h>
Public Member Functions | |
| void | AddOrReplace (PIN_MAP aMap) |
| Insert aMap, replacing any existing entry with the same name. | |
| void | Remove (const wxString &aName) |
| Remove the map with the given name. | |
| const PIN_MAP * | FindByName (const wxString &aName) const |
| PIN_MAP * | FindByName (const wxString &aName) |
| const std::vector< PIN_MAP > & | GetAll () const |
| bool | IsEmpty () const |
| bool | operator== (const PIN_MAP_SET &aOther) const |
| bool | operator!= (const PIN_MAP_SET &aOther) const |
Private Attributes | |
| std::vector< PIN_MAP > | m_maps |
A symbol-owned ordered set of named pin maps.
Lookup by name is the only access path; the footprint-to-map link lives in the symbol's ASSOCIATED_FOOTPRINT list. Declaration order is preserved on disk and used only for UI grouping; it does not affect netlist resolution.
| void PIN_MAP_SET::AddOrReplace | ( | PIN_MAP | aMap | ) |
Insert aMap, replacing any existing entry with the same name.
Definition at line 113 of file pin_map.cpp.
References FindByName(), PIN_MAP::GetName(), and m_maps.
Referenced by 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(), SCH_IO_HTTP_LIB::loadSymbolFromPart(), SCH_IO_KICAD_SEXPR_PARSER::parsePinMaps(), and ParsePinMapSet().
| PIN_MAP * PIN_MAP_SET::FindByName | ( | const wxString & | aName | ) |
Definition at line 145 of file pin_map.cpp.
| const PIN_MAP * PIN_MAP_SET::FindByName | ( | const wxString & | aName | ) | const |
Definition at line 133 of file pin_map.cpp.
References m_maps.
Referenced by AddOrReplace(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SCH_PIN::GetEffectivePadNumber(), and ERC_TESTER::TestPinMap().
|
inline |
Definition at line 138 of file pin_map.h.
References m_maps.
Referenced by BOOST_AUTO_TEST_CASE(), LIB_SYMBOL::Compare(), SCH_IO_KICAD_SEXPR_LIB_CACHE::savePinMapData(), and ERC_TESTER::TestPinMap().
|
inline |
Definition at line 139 of file pin_map.h.
References m_maps.
Referenced by BOOST_AUTO_TEST_CASE(), SCH_IO_HTTP_LIB::loadSymbolFromPart(), and ERC_TESTER::TestPinMap().
|
inline |
|
inline |
| void PIN_MAP_SET::Remove | ( | const wxString & | aName | ) |
Remove the map with the given name.
No-op if no such map exists.
Definition at line 122 of file pin_map.cpp.
References m_maps.
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 145 of file pin_map.h.
Referenced by AddOrReplace(), FindByName(), GetAll(), IsEmpty(), operator==(), and Remove().