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

Constructor & Destructor Documentation

◆ DIFF_PAIR_DIMENSION() [1/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 131 of file board_design_settings.h.

132  {
133  m_Width = 0;
134  m_Gap = 0;
135  m_ViaGap = 0;
136  }

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

139  {
140  m_Width = aWidth;
141  m_Gap = aGap;
142  m_ViaGap = aViaGap;
143  }

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

153  {
154  if( m_Width != aOther.m_Width )
155  return m_Width < aOther.m_Width;
156 
157  if( m_Gap != aOther.m_Gap )
158  return m_Gap < aOther.m_Gap;
159 
160  return m_ViaGap < aOther.m_ViaGap;
161  }

References m_Gap, m_ViaGap, and m_Width.

◆ operator==()

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

Definition at line 145 of file board_design_settings.h.

146  {
147  return ( m_Width == aOther.m_Width )
148  && ( m_Gap == aOther.m_Gap )
149  && ( m_ViaGap == aOther.m_ViaGap );
150  }

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: