KiCad PCB EDA Suite
DIFF_PAIR_KEY Struct Reference

Public Member Functions

bool operator< (const DIFF_PAIR_KEY &b) const
 

Public Attributes

int netP
 
int netN
 
wxString gapRuleName
 
wxString uncoupledRuleName
 
std::optional< MINOPTMAX< int > > gapConstraint
 
DRC_RULEgapRule
 
std::optional< MINOPTMAX< int > > uncoupledConstraint
 
DRC_RULEuncoupledRule
 

Detailed Description

Definition at line 125 of file drc_test_provider_diff_pair_coupling.cpp.

Member Function Documentation

◆ operator<()

bool DIFF_PAIR_KEY::operator< ( const DIFF_PAIR_KEY b) const
inline

Definition at line 127 of file drc_test_provider_diff_pair_coupling.cpp.

128 {
129 if( netP < b.netP )
130 {
131 return true;
132 }
133 else if( netP > b.netP )
134 {
135 return false;
136 }
137 else // netP == b.netP
138 {
139 if( netN < b.netN )
140 return true;
141 else if( netN > b.netN )
142 return false;
143 else if( gapRuleName.IsEmpty() )
144 return gapRuleName < b.gapRuleName;
145 else
147 }
148 }

References gapRuleName, netN, netP, and uncoupledRuleName.

Member Data Documentation

◆ gapConstraint

std::optional<MINOPTMAX<int> > DIFF_PAIR_KEY::gapConstraint

◆ gapRule

DRC_RULE* DIFF_PAIR_KEY::gapRule

◆ gapRuleName

wxString DIFF_PAIR_KEY::gapRuleName

◆ netN

int DIFF_PAIR_KEY::netN

◆ netP

int DIFF_PAIR_KEY::netP

◆ uncoupledConstraint

std::optional<MINOPTMAX<int> > DIFF_PAIR_KEY::uncoupledConstraint

◆ uncoupledRule

DRC_RULE* DIFF_PAIR_KEY::uncoupledRule

◆ uncoupledRuleName

wxString DIFF_PAIR_KEY::uncoupledRuleName

The documentation for this struct was generated from the following file: