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

Constructor & Destructor Documentation

◆ DIFF_PAIR_DIMENSION() [1/2]

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 146 of file board_design_settings.h.

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

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

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

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

References m_Gap, m_ViaGap, and m_Width.

◆ operator==()

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

Definition at line 160 of file board_design_settings.h.

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

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: