KiCad PCB EDA Suite
VIA_DIMENSION Struct Reference

Struct VIA_DIMENSION is a small helper 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

Struct VIA_DIMENSION is a small helper container to handle a stock of specific vias each with unique diameter and drill sizes in the BOARD class.

Definition at line 78 of file board_design_settings.h.

Constructor & Destructor Documentation

◆ VIA_DIMENSION() [1/2]

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 83 of file board_design_settings.h.

84  {
85  m_Diameter = 0;
86  m_Drill = 0;
87  }

References m_Diameter, and m_Drill.

◆ VIA_DIMENSION() [2/2]

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

Definition at line 89 of file board_design_settings.h.

90  {
91  m_Diameter = aDiameter;
92  m_Drill = aDrill;
93  }

References m_Diameter, and m_Drill.

Member Function Documentation

◆ operator<()

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

Definition at line 100 of file board_design_settings.h.

101  {
102  if( m_Diameter != aOther.m_Diameter )
103  return m_Diameter < aOther.m_Diameter;
104 
105  return m_Drill < aOther.m_Drill;
106  }

References m_Diameter, and m_Drill.

◆ operator==()

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

Definition at line 95 of file board_design_settings.h.

96  {
97  return ( m_Diameter == aOther.m_Diameter ) && ( m_Drill == aOther.m_Drill );
98  }

References m_Diameter, and m_Drill.

Member Data Documentation

◆ m_Diameter

◆ m_Drill


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