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 <class_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 61 of file class_board_design_settings.h.

Constructor & Destructor Documentation

VIA_DIMENSION::VIA_DIMENSION ( )
inline

Definition at line 66 of file class_board_design_settings.h.

67  {
68  m_Diameter = 0;
69  m_Drill = 0;
70  }
VIA_DIMENSION::VIA_DIMENSION ( int  aDiameter,
int  aDrill 
)
inline

Definition at line 72 of file class_board_design_settings.h.

73  {
74  m_Diameter = aDiameter;
75  m_Drill = aDrill;
76  }

Member Function Documentation

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

Definition at line 83 of file class_board_design_settings.h.

References m_Diameter, and m_Drill.

84  {
85  if( m_Diameter != aOther.m_Diameter )
86  return m_Diameter < aOther.m_Diameter;
87 
88  return m_Drill < aOther.m_Drill;
89  }
bool VIA_DIMENSION::operator== ( const VIA_DIMENSION aOther) const
inline

Definition at line 78 of file class_board_design_settings.h.

References m_Diameter, and m_Drill.

79  {
80  return ( m_Diameter == aOther.m_Diameter ) && ( m_Drill == aOther.m_Drill );
81  }

Member Data Documentation


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