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

Constructor & Destructor Documentation

◆ DIFF_PAIR_DIMENSION() [1/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 121 of file board_design_settings.h.

122  {
123  m_Width = 0;
124  m_Gap = 0;
125  m_ViaGap = 0;
126  }

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

129  {
130  m_Width = aWidth;
131  m_Gap = aGap;
132  m_ViaGap = aViaGap;
133  }

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

143  {
144  if( m_Width != aOther.m_Width )
145  return m_Width < aOther.m_Width;
146 
147  if( m_Gap != aOther.m_Gap )
148  return m_Gap < aOther.m_Gap;
149 
150  return m_ViaGap < aOther.m_ViaGap;
151  }

References m_Gap, m_ViaGap, and m_Width.

◆ operator==()

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

Definition at line 135 of file board_design_settings.h.

136  {
137  return ( m_Width == aOther.m_Width )
138  && ( m_Gap == aOther.m_Gap )
139  && ( m_ViaGap == aOther.m_ViaGap );
140  }

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: