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

#include <layer_range.h>

Classes

class  LAYER_RANGE_ITERATOR
 

Public Member Functions

 LAYER_RANGE (PCB_LAYER_ID start, PCB_LAYER_ID stop, int layer_count)
 
LAYER_RANGE_ITERATOR begin () const
 
LAYER_RANGE_ITERATOR end () const
 
bool Contains (int aTest_layer)
 

Static Public Member Functions

static bool Contains (int aStart_layer, int aEnd_layer, int aTest_layer)
 

Private Attributes

PCB_LAYER_ID m_start
 
PCB_LAYER_ID m_stop
 
int m_layer_count
 

Detailed Description

Definition at line 26 of file layer_range.h.

Constructor & Destructor Documentation

◆ LAYER_RANGE()

LAYER_RANGE::LAYER_RANGE ( PCB_LAYER_ID  start,
PCB_LAYER_ID  stop,
int  layer_count 
)
inline

Definition at line 116 of file layer_range.h.

Member Function Documentation

◆ begin()

LAYER_RANGE_ITERATOR LAYER_RANGE::begin ( ) const
inline

Definition at line 123 of file layer_range.h.

References m_layer_count, m_start, and m_stop.

Referenced by ALTIUM_PCB::ParseBoard6Data().

◆ Contains() [1/2]

static bool LAYER_RANGE::Contains ( int  aStart_layer,
int  aEnd_layer,
int  aTest_layer 
)
inlinestatic

Definition at line 130 of file layer_range.h.

References B_Cu.

Referenced by Contains(), and PCB_VIA::IsOnLayer().

◆ Contains() [2/2]

bool LAYER_RANGE::Contains ( int  aTest_layer)
inline

Definition at line 150 of file layer_range.h.

References Contains(), m_start, and m_stop.

◆ end()

LAYER_RANGE_ITERATOR LAYER_RANGE::end ( ) const
inline

Definition at line 124 of file layer_range.h.

References m_layer_count, and m_stop.

Member Data Documentation

◆ m_layer_count

int LAYER_RANGE::m_layer_count
private

Definition at line 31 of file layer_range.h.

Referenced by begin(), and end().

◆ m_start

PCB_LAYER_ID LAYER_RANGE::m_start
private

Definition at line 29 of file layer_range.h.

Referenced by begin(), and Contains().

◆ m_stop

PCB_LAYER_ID LAYER_RANGE::m_stop
private

Definition at line 30 of file layer_range.h.

Referenced by begin(), Contains(), and end().


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