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

Constructor & Destructor Documentation

DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( )
inline

Definition at line 117 of file board_design_settings.h.

118  {
119  m_Width = 0;
120  m_Gap = 0;
121  m_ViaGap = 0;
122  }
DIFF_PAIR_DIMENSION::DIFF_PAIR_DIMENSION ( int  aWidth,
int  aGap,
int  aViaGap 
)
inline

Definition at line 124 of file board_design_settings.h.

125  {
126  m_Width = aWidth;
127  m_Gap = aGap;
128  m_ViaGap = aViaGap;
129  }

Member Function Documentation

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

Definition at line 138 of file board_design_settings.h.

References m_Gap, m_ViaGap, and m_Width.

139  {
140  if( m_Width != aOther.m_Width )
141  return m_Width < aOther.m_Width;
142 
143  if( m_Gap != aOther.m_Gap )
144  return m_Gap < aOther.m_Gap;
145 
146  return m_ViaGap < aOther.m_ViaGap;
147  }
bool DIFF_PAIR_DIMENSION::operator== ( const DIFF_PAIR_DIMENSION aOther) const
inline

Definition at line 131 of file board_design_settings.h.

References m_Gap, m_ViaGap, and m_Width.

132  {
133  return ( m_Width == aOther.m_Width )
134  && ( m_Gap == aOther.m_Gap )
135  && ( m_ViaGap == aOther.m_ViaGap );
136  }

Member Data Documentation


The documentation for this struct was generated from the following file: