KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LAYER_PAIR Class Reference

#include <board_project_settings.h>

Public Member Functions

 LAYER_PAIR ()
 
 LAYER_PAIR (PCB_LAYER_ID a, PCB_LAYER_ID b)
 
PCB_LAYER_ID GetLayerA () const
 
PCB_LAYER_ID GetLayerB () const
 
void SetLayerA (PCB_LAYER_ID aLayer)
 
void SetLayerB (PCB_LAYER_ID aLayer)
 
bool HasSameLayers (const LAYER_PAIR &aOther) const
 

Private Attributes

PCB_LAYER_ID m_layerA
 
PCB_LAYER_ID m_layerB
 

Detailed Description

Definition at line 284 of file board_project_settings.h.

Constructor & Destructor Documentation

◆ LAYER_PAIR() [1/2]

LAYER_PAIR::LAYER_PAIR ( )
inline

Definition at line 287 of file board_project_settings.h.

References m_layerA, m_layerB, and UNDEFINED_LAYER.

Referenced by HasSameLayers().

◆ LAYER_PAIR() [2/2]

LAYER_PAIR::LAYER_PAIR ( PCB_LAYER_ID a,
PCB_LAYER_ID b )
inline

Definition at line 292 of file board_project_settings.h.

References m_layerA, and m_layerB.

Member Function Documentation

◆ GetLayerA()

◆ GetLayerB()

◆ HasSameLayers()

bool LAYER_PAIR::HasSameLayers ( const LAYER_PAIR & aOther) const
inline
Returns
true if the two layer pairs have the same layers, regardless of order

Definition at line 306 of file board_project_settings.h.

References LAYER_PAIR(), m_layerA, and m_layerB.

Referenced by LAYER_PAIR_SETTINGS::addLayerPairInternal().

◆ SetLayerA()

void LAYER_PAIR::SetLayerA ( PCB_LAYER_ID aLayer)
inline

Definition at line 300 of file board_project_settings.h.

References m_layerA.

◆ SetLayerB()

void LAYER_PAIR::SetLayerB ( PCB_LAYER_ID aLayer)
inline

Definition at line 301 of file board_project_settings.h.

References m_layerB.

Member Data Documentation

◆ m_layerA

PCB_LAYER_ID LAYER_PAIR::m_layerA
private

Definition at line 313 of file board_project_settings.h.

Referenced by GetLayerA(), HasSameLayers(), LAYER_PAIR(), LAYER_PAIR(), and SetLayerA().

◆ m_layerB

PCB_LAYER_ID LAYER_PAIR::m_layerB
private

Definition at line 314 of file board_project_settings.h.

Referenced by GetLayerB(), HasSameLayers(), LAYER_PAIR(), LAYER_PAIR(), and SetLayerB().


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