KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PIN_MAP_SET Class Reference

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_MAPFindByName (const wxString &aName) const
 
PIN_MAPFindByName (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_MAPm_maps
 

Detailed Description

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.

Definition at line 122 of file pin_map.h.

Member Function Documentation

◆ AddOrReplace()

◆ FindByName() [1/2]

PIN_MAP * PIN_MAP_SET::FindByName ( const wxString & aName)

Definition at line 145 of file pin_map.cpp.

◆ FindByName() [2/2]

const PIN_MAP * PIN_MAP_SET::FindByName ( const wxString & aName) const

◆ GetAll()

const std::vector< PIN_MAP > & PIN_MAP_SET::GetAll ( ) const
inline

◆ IsEmpty()

bool PIN_MAP_SET::IsEmpty ( ) const
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().

◆ operator!=()

bool PIN_MAP_SET::operator!= ( const PIN_MAP_SET & aOther) const
inline

Definition at line 142 of file pin_map.h.

◆ operator==()

bool PIN_MAP_SET::operator== ( const PIN_MAP_SET & aOther) const
inline

Definition at line 141 of file pin_map.h.

References m_maps.

◆ Remove()

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().

Member Data Documentation

◆ m_maps

std::vector<PIN_MAP> PIN_MAP_SET::m_maps
private

Definition at line 145 of file pin_map.h.

Referenced by AddOrReplace(), FindByName(), GetAll(), IsEmpty(), operator==(), and Remove().


The documentation for this class was generated from the following files: