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

#include <drc_item.h>

Inheritance diagram for DRC_ITEMS_PROVIDER:
RC_ITEMS_PROVIDER

Public Member Functions

 DRC_ITEMS_PROVIDER (BOARD *aBoard, MARKER_BASE::MARKER_T aMarkerType, MARKER_BASE::MARKER_T otherMarkerType=MARKER_BASE::MARKER_UNSPEC)
 
 DRC_ITEMS_PROVIDER (const DRC_ITEMS_PROVIDER &)=delete
 
DRC_ITEMS_PROVIDERoperator= (const DRC_ITEMS_PROVIDER &)=delete
 
void SetSeverities (int aSeverities) override
 
int GetCount (int aSeverity=-1) const override
 
std::shared_ptr< RC_ITEMGetItem (int aIndex) const override
 Retrieve a RC_ITEM by index.
 
void DeleteItem (int aIndex, bool aDeep) override
 Remove (and optionally deletes) the indexed item from the list.
 

Private Attributes

BOARDm_board
 
std::vector< MARKER_BASE::MARKER_Tm_markerTypes
 
int m_severities
 
std::vector< PCB_MARKER * > m_filteredMarkers
 

Detailed Description

Definition at line 252 of file drc_item.h.

Constructor & Destructor Documentation

◆ DRC_ITEMS_PROVIDER() [1/2]

DRC_ITEMS_PROVIDER::DRC_ITEMS_PROVIDER ( BOARD * aBoard,
MARKER_BASE::MARKER_T aMarkerType,
MARKER_BASE::MARKER_T otherMarkerType = MARKER_BASE::MARKER_UNSPEC )
inline

Definition at line 255 of file drc_item.h.

References m_board, m_markerTypes, m_severities, and MARKER_BASE::MARKER_UNSPEC.

Referenced by DRC_ITEMS_PROVIDER(), and operator=().

◆ DRC_ITEMS_PROVIDER() [2/2]

DRC_ITEMS_PROVIDER::DRC_ITEMS_PROVIDER ( const DRC_ITEMS_PROVIDER & )
delete

References DRC_ITEMS_PROVIDER().

Member Function Documentation

◆ DeleteItem()

void DRC_ITEMS_PROVIDER::DeleteItem ( int aIndex,
bool aDeep )
overridevirtual

Remove (and optionally deletes) the indexed item from the list.

Parameters
aDeepIf true, the source item should be deleted as well as its entry in the list.

Implements RC_ITEMS_PROVIDER.

Definition at line 552 of file drc_item.cpp.

References m_board, and m_filteredMarkers.

◆ GetCount()

int DRC_ITEMS_PROVIDER::GetCount ( int aSeverity = -1) const
overridevirtual

Implements RC_ITEMS_PROVIDER.

Definition at line 524 of file drc_item.cpp.

References alg::contains(), m_board, m_filteredMarkers, and m_markerTypes.

◆ GetItem()

std::shared_ptr< RC_ITEM > DRC_ITEMS_PROVIDER::GetItem ( int aIndex) const
overridevirtual

Retrieve a RC_ITEM by index.

Implements RC_ITEMS_PROVIDER.

Definition at line 544 of file drc_item.cpp.

References MARKER_BASE::GetRCItem(), and m_filteredMarkers.

◆ operator=()

DRC_ITEMS_PROVIDER & DRC_ITEMS_PROVIDER::operator= ( const DRC_ITEMS_PROVIDER & )
delete

References DRC_ITEMS_PROVIDER().

◆ SetSeverities()

void DRC_ITEMS_PROVIDER::SetSeverities ( int aSeverities)
overridevirtual

Implements RC_ITEMS_PROVIDER.

Definition at line 500 of file drc_item.cpp.

References alg::contains(), m_board, m_filteredMarkers, m_markerTypes, and m_severities.

Member Data Documentation

◆ m_board

BOARD* DRC_ITEMS_PROVIDER::m_board
private

Definition at line 280 of file drc_item.h.

Referenced by DeleteItem(), DRC_ITEMS_PROVIDER(), GetCount(), and SetSeverities().

◆ m_filteredMarkers

std::vector<PCB_MARKER*> DRC_ITEMS_PROVIDER::m_filteredMarkers
private

Definition at line 284 of file drc_item.h.

Referenced by DeleteItem(), GetCount(), GetItem(), and SetSeverities().

◆ m_markerTypes

std::vector<MARKER_BASE::MARKER_T> DRC_ITEMS_PROVIDER::m_markerTypes
private

Definition at line 281 of file drc_item.h.

Referenced by DRC_ITEMS_PROVIDER(), GetCount(), and SetSeverities().

◆ m_severities

int DRC_ITEMS_PROVIDER::m_severities
private

Definition at line 283 of file drc_item.h.

Referenced by DRC_ITEMS_PROVIDER(), and SetSeverities().


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