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

Constructor & Destructor Documentation

◆ VIA_DIMENSION() [1/2]

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 109 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

◆ VIA_DIMENSION() [2/2]

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

Definition at line 115 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

Member Function Documentation

◆ operator<()

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

Definition at line 126 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

◆ operator==()

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

Definition at line 121 of file board_design_settings.h.

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

References m_Diameter, and m_Drill.

Member Data Documentation

◆ m_Diameter

◆ m_Drill


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