| 
    KiCad PCB EDA Suite
    
   | 
 
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD. More...
#include <netlist.h>
Public Member Functions | |
| NETLIST () | |
| virtual | ~NETLIST ()=default | 
| bool | IsEmpty () const | 
| void | Clear () | 
| Remove all components from the netlist.   | |
| unsigned | GetCount () const | 
| COMPONENT * | GetComponent (unsigned aIndex) | 
| Return the COMPONENT at aIndex.   | |
| void | AddComponent (COMPONENT *aComponent) | 
| Add aComponent to the NETLIST.   | |
| void | AddGroup (NETLIST_GROUP *aGroup) | 
| NETLIST_GROUP * | GetGroupByUuid (const KIID &aUuid) | 
| Return a NETLIST_GROUP by aUuid.   | |
| void | ApplyGroupMembership () | 
| After groups and components are parsed, apply the group memberships to the internal components based on the group member UUIDs.   | |
| COMPONENT * | GetComponentByReference (const wxString &aReference) | 
| Return a COMPONENT by aReference.   | |
| COMPONENT * | GetComponentByPath (const KIID_PATH &aPath) | 
| Return a COMPONENT by aPath.   | |
| COMPONENT * | GetComponentByUuid (const KIID &aUuid) | 
| Return a COMPONENT by aUuid.   | |
| void | SortByFPID () | 
| void | SortByReference () | 
| void | SetFindByTimeStamp (bool aFindByTimeStamp) | 
| bool | IsFindByTimeStamp () const | 
| void | SetReplaceFootprints (bool aReplace) | 
| bool | GetReplaceFootprints () const | 
| bool | AnyFootprintsLinked () const | 
| void | Format (const char *aDocName, OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl=0) | 
| void | FormatCvpcbNetlist (OUTPUTFORMATTER *aOut) | 
| NETLIST () | |
| bool | IsEmpty () const | 
| void | Clear () | 
| Remove all components from the netlist.   | |
| unsigned | GetCount () const | 
| COMPONENT * | GetComponent (unsigned aIndex) | 
| Return the COMPONENT at aIndex.   | |
| void | AddComponent (COMPONENT *aComponent) | 
| Add aComponent to the NETLIST.   | |
| void | AddGroup (NETLIST_GROUP *aGroup) | 
| NETLIST_GROUP * | GetGroupByUuid (const KIID &aUuid) | 
| Return a NETLIST_GROUP by aUuid.   | |
| void | ApplyGroupMembership () | 
| After groups and components are parsed, apply the group memberships to the internal components based on the group member UUIDs.   | |
| COMPONENT * | GetComponentByReference (const wxString &aReference) | 
| Return a COMPONENT by aReference.   | |
| COMPONENT * | GetComponentByPath (const KIID_PATH &aPath) | 
| Return a COMPONENT by aPath.   | |
| COMPONENT * | GetComponentByUuid (const KIID &aUuid) | 
| Return a COMPONENT by aUuid.   | |
| void | SortByFPID () | 
| void | SortByReference () | 
| void | SetFindByTimeStamp (bool aFindByTimeStamp) | 
| bool | IsFindByTimeStamp () const | 
| void | SetReplaceFootprints (bool aReplace) | 
| bool | GetReplaceFootprints () const | 
| bool | AnyFootprintsLinked () const | 
| void | Format (const char *aDocName, OUTPUTFORMATTER *aOut, int aNestLevel, int aCtl=0) | 
| void | FormatCvpcbNetlist (OUTPUTFORMATTER *aOut) | 
Protected Attributes | |
| COMPONENTS | m_components | 
| NETLIST_GROUPS | m_groups | 
| bool | m_findByTimeStamp | 
| bool | m_replaceFootprints | 
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD.
Definition at line 280 of file common/netlist_reader/netlist.h.
      
  | 
  inline | 
Definition at line 283 of file common/netlist_reader/netlist.h.
References m_findByTimeStamp, and m_replaceFootprints.
      
  | 
  virtualdefault | 
      
  | 
  inline | 
Definition at line 289 of file pcb_netlist.h.
References m_findByTimeStamp, and m_replaceFootprints.
| void NETLIST::AddComponent | ( | COMPONENT * | aComponent | ) | 
Add aComponent to the NETLIST.
Definition at line 182 of file common/netlist_reader/netlist.cpp.
References m_components.
| void NETLIST::AddComponent | ( | COMPONENT * | aComponent | ) | 
| void NETLIST::AddGroup | ( | NETLIST_GROUP * | aGroup | ) | 
| aGroup | is the NETLIST_GROUP to save to the NETLIST. | 
Definition at line 188 of file common/netlist_reader/netlist.cpp.
References m_groups.
| void NETLIST::AddGroup | ( | NETLIST_GROUP * | aGroup | ) | 
| aGroup | is the NETLIST_GROUP to save to the NETLIST. | 
| bool NETLIST::AnyFootprintsLinked | ( | ) | const | 
Definition at line 296 of file common/netlist_reader/netlist.cpp.
References empty(), and m_components.
| bool NETLIST::AnyFootprintsLinked | ( | ) | const | 
| void NETLIST::ApplyGroupMembership | ( | ) | 
After groups and components are parsed, apply the group memberships to the internal components based on the group member UUIDs.
Definition at line 308 of file common/netlist_reader/netlist.cpp.
References GetComponentByUuid(), group, m_groups, and COMPONENT::SetGroup().
| void NETLIST::ApplyGroupMembership | ( | ) | 
After groups and components are parsed, apply the group memberships to the internal components based on the group member UUIDs.
      
  | 
  inline | 
Remove all components from the netlist.
Definition at line 299 of file common/netlist_reader/netlist.h.
References m_components.
      
  | 
  inline | 
Remove all components from the netlist.
Definition at line 303 of file pcb_netlist.h.
References m_components.
| void NETLIST::Format | ( | const char * | aDocName, | 
| OUTPUTFORMATTER * | aOut, | ||
| int | aNestLevel, | ||
| int | aCtl = 0 ) | 
Definition at line 167 of file common/netlist_reader/netlist.cpp.
References m_components, and OUTPUTFORMATTER::Print().
Referenced by FormatCvpcbNetlist().
| void NETLIST::Format | ( | const char * | aDocName, | 
| OUTPUTFORMATTER * | aOut, | ||
| int | aNestLevel, | ||
| int | aCtl = 0 ) | 
      
  | 
  inline | 
Definition at line 389 of file common/netlist_reader/netlist.h.
References CTL_FOR_CVPCB, and Format().
      
  | 
  inline | 
Definition at line 393 of file pcb_netlist.h.
References CTL_FOR_CVPCB, and Format().
      
  | 
  inline | 
Return the COMPONENT at aIndex.
| aIndex | the index in m_components to fetch. | 
Definition at line 312 of file common/netlist_reader/netlist.h.
References m_components.
Referenced by TEST_NETLIST_EXPORTER_KICAD_FIXTURE::CompareNetlists(), PCB_EDIT_FRAME::LoadFootprints(), BOARD_NETLIST_UPDATER::testConnectivity(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), BOARD_NETLIST_UPDATER::updateCopperZoneNets(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
      
  | 
  inline | 
Return the COMPONENT at aIndex.
| aIndex | the index in m_components to fetch. | 
Definition at line 316 of file pcb_netlist.h.
References m_components.
Return a COMPONENT by aPath.
Definition at line 222 of file common/netlist_reader/netlist.cpp.
References m_components.
Referenced by BOARD_NETLIST_UPDATER::UpdateNetlist().
| COMPONENT * NETLIST::GetComponentByReference | ( | const wxString & | aReference | ) | 
Return a COMPONENT by aReference.
| aReference | is the reference designator the COMPONENT. | 
Definition at line 205 of file common/netlist_reader/netlist.cpp.
References m_components.
Referenced by CMP_READER::Load(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
| COMPONENT * NETLIST::GetComponentByReference | ( | const wxString & | aReference | ) | 
Return a COMPONENT by aUuid.
Definition at line 248 of file common/netlist_reader/netlist.cpp.
References m_components.
Referenced by ApplyGroupMembership().
      
  | 
  inline | 
Definition at line 304 of file common/netlist_reader/netlist.h.
References m_components.
Referenced by TEST_NETLIST_EXPORTER_KICAD_FIXTURE::CompareNetlists(), PCB_EDIT_FRAME::LoadFootprints(), BOARD_NETLIST_UPDATER::testConnectivity(), DRC_TEST_PROVIDER_SCHEMATIC_PARITY::testNetlist(), BOARD_NETLIST_UPDATER::updateCopperZoneNets(), and BOARD_NETLIST_UPDATER::UpdateNetlist().
      
  | 
  inline | 
Definition at line 308 of file pcb_netlist.h.
References m_components.
| NETLIST_GROUP * NETLIST::GetGroupByUuid | ( | const KIID & | aUuid | ) | 
Return a NETLIST_GROUP by aUuid.
| aUuid | is the KIID of the NETLIST_GROUP. | 
Definition at line 193 of file common/netlist_reader/netlist.cpp.
References group, and m_groups.
Referenced by BOARD_NETLIST_UPDATER::updateGroups().
| NETLIST_GROUP * NETLIST::GetGroupByUuid | ( | const KIID & | aUuid | ) | 
Return a NETLIST_GROUP by aUuid.
| aUuid | is the KIID of the NETLIST_GROUP. | 
      
  | 
  inline | 
Definition at line 378 of file common/netlist_reader/netlist.h.
References m_replaceFootprints.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
      
  | 
  inline | 
Definition at line 382 of file pcb_netlist.h.
References m_replaceFootprints.
      
  | 
  inline | 
Definition at line 294 of file common/netlist_reader/netlist.h.
References m_components.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
      
  | 
  inline | 
Definition at line 298 of file pcb_netlist.h.
References m_components.
      
  | 
  inline | 
Definition at line 375 of file common/netlist_reader/netlist.h.
References m_findByTimeStamp.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
      
  | 
  inline | 
Definition at line 379 of file pcb_netlist.h.
References m_findByTimeStamp.
      
  | 
  inline | 
Definition at line 374 of file common/netlist_reader/netlist.h.
References m_findByTimeStamp.
      
  | 
  inline | 
Definition at line 378 of file pcb_netlist.h.
References m_findByTimeStamp.
      
  | 
  inline | 
Definition at line 377 of file common/netlist_reader/netlist.h.
References m_replaceFootprints.
      
  | 
  inline | 
Definition at line 381 of file pcb_netlist.h.
References m_replaceFootprints.
| void NETLIST::SortByFPID | ( | ) | 
Definition at line 275 of file common/netlist_reader/netlist.cpp.
References ByFPID(), and m_components.
Referenced by PCB_EDIT_FRAME::LoadFootprints().
| void NETLIST::SortByFPID | ( | ) | 
| void NETLIST::SortByReference | ( | ) | 
Definition at line 290 of file common/netlist_reader/netlist.cpp.
References m_components.
| void NETLIST::SortByReference | ( | ) | 
      
  | 
  protected | 
Definition at line 395 of file common/netlist_reader/netlist.h.
Referenced by AddComponent(), AnyFootprintsLinked(), Clear(), Format(), GetComponent(), GetComponentByPath(), GetComponentByReference(), GetComponentByUuid(), GetCount(), IsEmpty(), SortByFPID(), and SortByReference().
      
  | 
  protected | 
Definition at line 398 of file common/netlist_reader/netlist.h.
Referenced by IsFindByTimeStamp(), NETLIST(), and SetFindByTimeStamp().
      
  | 
  protected | 
Definition at line 396 of file common/netlist_reader/netlist.h.
Referenced by AddGroup(), ApplyGroupMembership(), and GetGroupByUuid().
      
  | 
  protected | 
Definition at line 399 of file common/netlist_reader/netlist.h.
Referenced by GetReplaceFootprints(), NETLIST(), and SetReplaceFootprints().