KiCad PCB EDA Suite
DIFF_PAIR_DIMENSION Struct Reference

Container to handle a stock of specific differential pairs each with unique track width, gap and via gap. More...

#include <board_design_settings.h>

Public Member Functions

 DIFF_PAIR_DIMENSION ()
 
 DIFF_PAIR_DIMENSION (int aWidth, int aGap, int aViaGap)
 
bool operator== (const DIFF_PAIR_DIMENSION &aOther) const
 
bool operator< (const DIFF_PAIR_DIMENSION &aOther) const
 

Public Attributes

int m_Width
 
int m_Gap
 
int m_ViaGap
 

Detailed Description

Container to handle a stock of specific differential pairs each with unique track width, gap and via gap.

Definition at line 139 of file board_design_settings.h.

Constructor & Destructor Documentation

◆ DIFF_PAIR_DIMENSION() [1/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 145 of file board_design_settings.h.

146  {
147  m_Width = 0;
148  m_Gap = 0;
149  m_ViaGap = 0;
150  }

References m_Gap, m_ViaGap, and m_Width.

◆ DIFF_PAIR_DIMENSION() [2/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( int  aWidth,
int  aGap,
int  aViaGap 
)
inline

Definition at line 152 of file board_design_settings.h.

153  {
154  m_Width = aWidth;
155  m_Gap = aGap;
156  m_ViaGap = aViaGap;
157  }

References m_Gap, m_ViaGap, and m_Width.

Member Function Documentation

◆ operator<()

bool DIFF_PAIR_DIMENSION::operator< ( const DIFF_PAIR_DIMENSION aOther) const
inline

Definition at line 166 of file board_design_settings.h.

167  {
168  if( m_Width != aOther.m_Width )
169  return m_Width < aOther.m_Width;
170 
171  if( m_Gap != aOther.m_Gap )
172  return m_Gap < aOther.m_Gap;
173 
174  return m_ViaGap < aOther.m_ViaGap;
175  }

References m_Gap, m_ViaGap, and m_Width.

◆ operator==()

bool DIFF_PAIR_DIMENSION::operator== ( const DIFF_PAIR_DIMENSION aOther) const
inline

Definition at line 159 of file board_design_settings.h.

160  {
161  return ( m_Width == aOther.m_Width )
162  && ( m_Gap == aOther.m_Gap )
163  && ( m_ViaGap == aOther.m_ViaGap );
164  }

References m_Gap, m_ViaGap, and m_Width.

Member Data Documentation

◆ m_Gap

◆ m_ViaGap

◆ m_Width


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