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

Constructor & Destructor Documentation

◆ VIA_DIMENSION() [1/2]

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 107 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

◆ VIA_DIMENSION() [2/2]

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

Definition at line 113 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

Member Function Documentation

◆ operator<()

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

Definition at line 124 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

◆ operator==()

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

Definition at line 119 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

Member Data Documentation

◆ m_Diameter

◆ m_Drill


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