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_PROVIDER & operator= (const DRC_ITEMS_PROVIDER &)=delete
 
void SetSeverities (int aSeverities) override
 
int GetSeverities () const override
 
int GetCount (int aSeverity=-1) const override
 
std::shared_ptr< RC_ITEM > GetItem (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

BOARD * m_board
 
std::vector< MARKER_BASE::MARKER_T > m_markerTypes
 
int m_severities
 
std::vector< PCB_MARKER * > m_filteredMarkers
 

Detailed Description

Definition at line 293 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 296 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
aIndexis the index of the item to delete.
aDeepIf true, the source item should be deleted as well as its entry in the list.

Implements RC_ITEMS_PROVIDER.

Definition at line 713 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 691 of file drc_item.cpp.

References m_board, and m_filteredMarkers.

◆ 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 705 of file drc_item.cpp.

References MARKER_BASE::GetRCItem(), and m_filteredMarkers.

◆ GetSeverities()

int DRC_ITEMS_PROVIDER::GetSeverities ( ) const
overridevirtual

Implements RC_ITEMS_PROVIDER.

Definition at line 685 of file drc_item.cpp.

References m_severities.

◆ 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 661 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 323 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 327 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 324 of file drc_item.h.

Referenced by DRC_ITEMS_PROVIDER(), and SetSeverities().

◆ m_severities

int DRC_ITEMS_PROVIDER::m_severities
private

Definition at line 326 of file drc_item.h.

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


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