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

Constructor & Destructor Documentation

◆ VIA_DIMENSION() [1/2]

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 87 of file board_design_settings.h.

88  {
89  m_Diameter = 0;
90  m_Drill = 0;
91  }

References m_Diameter, and m_Drill.

◆ VIA_DIMENSION() [2/2]

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

Definition at line 93 of file board_design_settings.h.

94  {
95  m_Diameter = aDiameter;
96  m_Drill = aDrill;
97  }

References m_Diameter, and m_Drill.

Member Function Documentation

◆ operator<()

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

Definition at line 104 of file board_design_settings.h.

105  {
106  if( m_Diameter != aOther.m_Diameter )
107  return m_Diameter < aOther.m_Diameter;
108 
109  return m_Drill < aOther.m_Drill;
110  }

References m_Diameter, and m_Drill.

◆ operator==()

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

Definition at line 99 of file board_design_settings.h.

100  {
101  return ( m_Diameter == aOther.m_Diameter ) && ( m_Drill == aOther.m_Drill );
102  }

References m_Diameter, and m_Drill.

Member Data Documentation

◆ m_Diameter

◆ m_Drill


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