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 262 of file board_project_settings.h.

Constructor & Destructor Documentation

◆ LAYER_PAIR() [1/2]

LAYER_PAIR::LAYER_PAIR ( )
inline

Definition at line 265 of file board_project_settings.h.

◆ LAYER_PAIR() [2/2]

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

Definition at line 270 of file board_project_settings.h.

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 284 of file board_project_settings.h.

References m_layerA, and m_layerB.

Referenced by LAYER_PAIR_SETTINGS::addLayerPairInternal(), and LAYER_PAIR_SETTINGS::GetEnabledLayerPairs().

◆ SetLayerA()

void LAYER_PAIR::SetLayerA ( PCB_LAYER_ID  aLayer)
inline

Definition at line 278 of file board_project_settings.h.

◆ SetLayerB()

void LAYER_PAIR::SetLayerB ( PCB_LAYER_ID  aLayer)
inline

Definition at line 279 of file board_project_settings.h.

Member Data Documentation

◆ m_layerA

PCB_LAYER_ID LAYER_PAIR::m_layerA
private

Definition at line 291 of file board_project_settings.h.

Referenced by HasSameLayers().

◆ m_layerB

PCB_LAYER_ID LAYER_PAIR::m_layerB
private

Definition at line 292 of file board_project_settings.h.

Referenced by HasSameLayers().


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