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

Constructor & Destructor Documentation

◆ VIA_DIMENSION() [1/2]

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 106 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

◆ VIA_DIMENSION() [2/2]

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

Definition at line 112 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

Member Function Documentation

◆ operator<()

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

Definition at line 123 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

◆ operator==()

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

Definition at line 118 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

Member Data Documentation

◆ m_Diameter

◆ m_Drill


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