KiCad PCB EDA Suite
|
An implementation of the RC_ITEM_LIST interface which uses the global SHEETLIST to fulfill the contract. More...
#include <erc_settings.h>
Public Member Functions | |
SHEETLIST_ERC_ITEMS_PROVIDER (SCHEMATIC *aSchematic) | |
void | SetSeverities (int aSeverities) override |
int | GetCount (int aSeverity=-1) const override |
std::shared_ptr< RC_ITEM > | GetItem (int aIndex) const override |
Retrieve a RC_ITEM by index. | |
std::shared_ptr< ERC_ITEM > | GetERCItem (int aIndex) const |
void | DeleteItem (int aIndex, bool aDeep) override |
Remove (and optionally deletes) the indexed item from the list. | |
Private Member Functions | |
void | visitMarkers (std::function< void(SCH_MARKER *)> aVisitor) const |
Private Attributes | |
SCHEMATIC * | m_schematic |
int | m_severities |
std::vector< SCH_MARKER * > | m_filteredMarkers |
An implementation of the RC_ITEM_LIST interface which uses the global SHEETLIST to fulfill the contract.
Definition at line 243 of file erc_settings.h.
|
inline |
Definition at line 251 of file erc_settings.h.
|
overridevirtual |
Remove (and optionally deletes) the indexed item from the list.
aDeep | If true, the source item should be deleted as well as its entry in the list. |
Implements RC_ITEMS_PROVIDER.
Definition at line 424 of file erc_settings.cpp.
References SCH_SCREENS::DeleteMarker(), m_filteredMarkers, m_schematic, and SCHEMATIC::Root().
|
overridevirtual |
Implements RC_ITEMS_PROVIDER.
Definition at line 383 of file erc_settings.cpp.
References SCHEMATIC::ErcSettings(), MARKER_BASE::GetRCItem(), ERC_SETTINGS::GetSeverity(), MARKER_BASE::IsExcluded(), m_filteredMarkers, m_schematic, RPT_SEVERITY_EXCLUSION, and visitMarkers().
Referenced by BOOST_FIXTURE_TEST_CASE().
std::shared_ptr< ERC_ITEM > SHEETLIST_ERC_ITEMS_PROVIDER::GetERCItem | ( | int | aIndex | ) | const |
Definition at line 410 of file erc_settings.cpp.
References MARKER_BASE::GetRCItem(), and m_filteredMarkers.
Referenced by GetItem().
|
overridevirtual |
Retrieve a RC_ITEM by index.
Implements RC_ITEMS_PROVIDER.
Definition at line 418 of file erc_settings.cpp.
References GetERCItem().
|
overridevirtual |
Implements RC_ITEMS_PROVIDER.
Definition at line 359 of file erc_settings.cpp.
References SCHEMATIC::ErcSettings(), MARKER_BASE::GetRCItem(), ERC_SETTINGS::GetSeverity(), MARKER_BASE::IsExcluded(), m_filteredMarkers, m_schematic, m_severities, RPT_SEVERITY_EXCLUSION, and visitMarkers().
Referenced by BOOST_FIXTURE_TEST_CASE().
|
private |
Definition at line 321 of file erc_settings.cpp.
References SCHEMATIC::BuildUnorderedSheetList(), MARKER_BASE::GetMarkerType(), MARKER_BASE::GetRCItem(), m_schematic, MARKER_BASE::MARKER_ERC, and SCH_MARKER_T.
Referenced by GetCount(), and SetSeverities().
|
private |
Definition at line 248 of file erc_settings.h.
Referenced by DeleteItem(), GetCount(), GetERCItem(), and SetSeverities().
|
private |
Definition at line 246 of file erc_settings.h.
Referenced by DeleteItem(), GetCount(), SetSeverities(), and visitMarkers().
|
private |
Definition at line 247 of file erc_settings.h.
Referenced by SetSeverities().