KiCad PCB EDA Suite
VIA_DIMENSION Struct Reference

Container to handle a stock of specific vias each with unique diameter and drill sizes in the BOARD class. More...

#include <board_design_settings.h>

Public Member Functions

 VIA_DIMENSION ()
 
 VIA_DIMENSION (int aDiameter, int aDrill)
 
bool operator== (const VIA_DIMENSION &aOther) const
 
bool operator< (const VIA_DIMENSION &aOther) const
 

Public Attributes

int m_Diameter
 
int m_Drill
 

Detailed Description

Container to handle a stock of specific vias each with unique diameter and drill sizes in the BOARD class.

Definition at line 103 of file board_design_settings.h.

Constructor & Destructor Documentation

◆ VIA_DIMENSION() [1/2]

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 108 of file board_design_settings.h.

109  {
110  m_Diameter = 0;
111  m_Drill = 0;
112  }

References m_Diameter, and m_Drill.

◆ VIA_DIMENSION() [2/2]

VIA_DIMENSION::VIA_DIMENSION ( int  aDiameter,
int  aDrill 
)
inline

Definition at line 114 of file board_design_settings.h.

115  {
116  m_Diameter = aDiameter;
117  m_Drill = aDrill;
118  }

References m_Diameter, and m_Drill.

Member Function Documentation

◆ operator<()

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

Definition at line 125 of file board_design_settings.h.

126  {
127  if( m_Diameter != aOther.m_Diameter )
128  return m_Diameter < aOther.m_Diameter;
129 
130  return m_Drill < aOther.m_Drill;
131  }

References m_Diameter, and m_Drill.

◆ operator==()

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

Definition at line 120 of file board_design_settings.h.

121  {
122  return ( m_Diameter == aOther.m_Diameter ) && ( m_Drill == aOther.m_Drill );
123  }

References m_Diameter, and m_Drill.

Member Data Documentation

◆ m_Diameter

◆ m_Drill


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