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 134 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 136 of file drc_test_provider_diff_pair_coupling.cpp.

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

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: