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

LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs. More...

#include <lseq.h>

Inheritance diagram for LSEQ:

Public Member Functions

 LSEQ ()
 
template<class InputIterator >
 LSEQ (InputIterator aStart, InputIterator aEnd)
 
 LSEQ (std::initializer_list< PCB_LAYER_ID > aLayers)
 
int TestLayers (PCB_LAYER_ID aRhs, PCB_LAYER_ID aLhs) const
 

Public Attributes

PCB_LAYER_ID elements
 STL member.
 

Detailed Description

LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.

A sequence provides a certain order.

It can also be used as an iterator:

 for( LSEQ cu_stack = aSet.CuStack();  cu_stack;  ++cu_stack )
 {
     layer_id = *cu_stack;
     :
     things to do with layer_id;
 }

Definition at line 46 of file lseq.h.

Constructor & Destructor Documentation

◆ LSEQ() [1/3]

LSEQ::LSEQ ( )
inline

Definition at line 50 of file lseq.h.

◆ LSEQ() [2/3]

template<class InputIterator >
LSEQ::LSEQ ( InputIterator  aStart,
InputIterator  aEnd 
)
inline

Definition at line 54 of file lseq.h.

◆ LSEQ() [3/3]

LSEQ::LSEQ ( std::initializer_list< PCB_LAYER_ID aLayers)
inline

Definition at line 58 of file lseq.h.

Member Function Documentation

◆ TestLayers()

int LSEQ::TestLayers ( PCB_LAYER_ID  aRhs,
PCB_LAYER_ID  aLhs 
) const

Definition at line 27 of file lseq.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Member Data Documentation

◆ elements

PCB_LAYER_ID std::vector< PCB_LAYER_ID >::elements
inherited

STL member.


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