KiCad PCB EDA Suite
DIFF_PAIR_DIMENSION Struct Reference

Struct DIFF_PAIR_DIMENSION is a small helper 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

Struct DIFF_PAIR_DIMENSION is a small helper container to handle a stock of specific differential pairs each with unique track width, gap and via gap.

Definition at line 138 of file board_design_settings.h.

Constructor & Destructor Documentation

◆ DIFF_PAIR_DIMENSION() [1/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 144 of file board_design_settings.h.

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

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 151 of file board_design_settings.h.

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

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 165 of file board_design_settings.h.

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

References m_Gap, m_ViaGap, and m_Width.

◆ operator==()

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

Definition at line 158 of file board_design_settings.h.

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

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: