A class used to associate a SCH_PIN with its owning SCH_SHEET_PATH, in order to handle ERC checks acr...
SCH_PIN * Pin()
Gets the SCH_PIN for this context.
SCH_SHEET_PATH & Sheet()
Gets the SCH_SHEET_PATH context for the paired SCH_PIN.
void rehash()
Calculates the deterministic hash for this context.
bool operator<(const ERC_SCH_PIN_CONTEXT &other) const
Provides a deterministic ordering for item contexts based on hash value.
ERC_SCH_PIN_CONTEXT(SCH_PIN *pin, SCH_SHEET_PATH sheet)
ERC_SCH_PIN_CONTEXT & operator=(const ERC_SCH_PIN_CONTEXT &other)=default
~ERC_SCH_PIN_CONTEXT()=default
ERC_SCH_PIN_CONTEXT(const ERC_SCH_PIN_CONTEXT &other)=default
bool operator==(const ERC_SCH_PIN_CONTEXT &other) const
Tests two pin contexts for equality based on the deterministic hash.