KiCad PCB EDA Suite
|
A class used to associate a SCH_PIN with its owning SCH_SHEET_PATH, in order to handle ERC checks across connected common hierarchical schematics/. More...
#include <erc_sch_pin_context.h>
Public Member Functions | |
ERC_SCH_PIN_CONTEXT () | |
ERC_SCH_PIN_CONTEXT (SCH_PIN *pin, SCH_SHEET_PATH sheet) | |
ERC_SCH_PIN_CONTEXT (const ERC_SCH_PIN_CONTEXT &other)=default | |
ERC_SCH_PIN_CONTEXT & | operator= (const ERC_SCH_PIN_CONTEXT &other)=default |
~ERC_SCH_PIN_CONTEXT ()=default | |
SCH_PIN * | Pin () const |
Get the SCH_PIN for this context. | |
const SCH_SHEET_PATH & | Sheet () const |
Get the SCH_SHEET_PATH context for the paired SCH_PIN. | |
bool | operator== (const ERC_SCH_PIN_CONTEXT &other) const |
Test two pin contexts for equality based on the deterministic hash. | |
bool | operator< (const ERC_SCH_PIN_CONTEXT &other) const |
Provide a deterministic ordering for item contexts based on hash value. | |
Protected Member Functions | |
void | rehash () |
Calculate the deterministic hash for this context. | |
Protected Attributes | |
SCH_PIN * | m_pin |
SCH_SHEET_PATH | m_sheet |
size_t | m_hash |
A class used to associate a SCH_PIN with its owning SCH_SHEET_PATH, in order to handle ERC checks across connected common hierarchical schematics/.
Definition at line 39 of file erc_sch_pin_context.h.
|
inline |
Definition at line 42 of file erc_sch_pin_context.h.
|
inline |
Definition at line 48 of file erc_sch_pin_context.h.
References rehash().
|
default |
|
default |
bool ERC_SCH_PIN_CONTEXT::operator< | ( | const ERC_SCH_PIN_CONTEXT & | other | ) | const |
Provide a deterministic ordering for item contexts based on hash value.
Definition at line 53 of file erc_sch_pin_context.cpp.
References m_hash.
|
default |
bool ERC_SCH_PIN_CONTEXT::operator== | ( | const ERC_SCH_PIN_CONTEXT & | other | ) | const |
Test two pin contexts for equality based on the deterministic hash.
Definition at line 47 of file erc_sch_pin_context.cpp.
References m_hash.
SCH_PIN * ERC_SCH_PIN_CONTEXT::Pin | ( | ) | const |
Get the SCH_PIN for this context.
Definition at line 35 of file erc_sch_pin_context.cpp.
References m_pin.
Referenced by ERC_TESTER::TestPinToPin().
|
protected |
Calculate the deterministic hash for this context.
Definition at line 59 of file erc_sch_pin_context.cpp.
References SCH_SHEET_PATH::GetCurrentHash(), hash_combine(), m_hash, m_pin, and m_sheet.
Referenced by ERC_SCH_PIN_CONTEXT().
const SCH_SHEET_PATH & ERC_SCH_PIN_CONTEXT::Sheet | ( | ) | const |
Get the SCH_SHEET_PATH context for the paired SCH_PIN.
Definition at line 41 of file erc_sch_pin_context.cpp.
References m_sheet.
Referenced by ERC_TESTER::TestPinToPin().
|
protected |
Definition at line 89 of file erc_sch_pin_context.h.
Referenced by operator<(), operator==(), and rehash().
|
protected |
Definition at line 87 of file erc_sch_pin_context.h.
|
protected |
Definition at line 88 of file erc_sch_pin_context.h.