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
 
DRC_RULEparentRule
 

Detailed Description

Definition at line 133 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 135 of file drc_test_provider_diff_pair_coupling.cpp.

136  {
137  if( netP < b.netP )
138  {
139  return true;
140  }
141  else if( netP > b.netP )
142  {
143  return false;
144  }
145  else // netP == b.netP
146  {
147  if( netN < b.netN )
148  return true;
149  else if( netN > b.netN )
150  return false;
151  else
152  return parentRule < b.parentRule;
153  }
154  }

References netN, netP, and parentRule.

Member Data Documentation

◆ netN

int DIFF_PAIR_KEY::netN

◆ netP

int DIFF_PAIR_KEY::netP

◆ parentRule

DRC_RULE* DIFF_PAIR_KEY::parentRule

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