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

Constructor & Destructor Documentation

◆ DIFF_PAIR_DIMENSION() [1/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 125 of file board_design_settings.h.

126  {
127  m_Width = 0;
128  m_Gap = 0;
129  m_ViaGap = 0;
130  }

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

133  {
134  m_Width = aWidth;
135  m_Gap = aGap;
136  m_ViaGap = aViaGap;
137  }

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

147  {
148  if( m_Width != aOther.m_Width )
149  return m_Width < aOther.m_Width;
150 
151  if( m_Gap != aOther.m_Gap )
152  return m_Gap < aOther.m_Gap;
153 
154  return m_ViaGap < aOther.m_ViaGap;
155  }

References m_Gap, m_ViaGap, and m_Width.

◆ operator==()

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

Definition at line 139 of file board_design_settings.h.

140  {
141  return ( m_Width == aOther.m_Width )
142  && ( m_Gap == aOther.m_Gap )
143  && ( m_ViaGap == aOther.m_ViaGap );
144  }

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: