KiCad PCB EDA Suite
Loading...
Searching...
No Matches
LSET::copper_layers_iterator Class Reference

#include <lset.h>

Inheritance diagram for LSET::copper_layers_iterator:
BASE_SET::set_bits_iterator

Public Types

using iterator_category = std::forward_iterator_tag
 
using value_type = size_t
 
using difference_type = std::ptrdiff_t
 
using pointer = const size_t *
 
using reference = const size_t &
 

Public Member Functions

 copper_layers_iterator (const BASE_SET &set, size_t index)
 
PCB_LAYER_ID operator* () const
 
copper_layers_iteratoroperator++ ()
 
bool operator!= (const set_bits_iterator &other) const
 
bool operator== (const set_bits_iterator &other) const
 

Protected Member Functions

void advance_to_next_set_bit ()
 

Protected Attributes

const BASE_SETm_baseSet
 
size_t m_index
 

Private Member Functions

void advance_to_next_set_copper_bit ()
 
void next_copper_layer ()
 

Detailed Description

Definition at line 316 of file lset.h.

Member Typedef Documentation

◆ difference_type

using BASE_SET::set_bits_iterator::difference_type = std::ptrdiff_t
inherited

Definition at line 223 of file base_set.h.

◆ iterator_category

using BASE_SET::set_bits_iterator::iterator_category = std::forward_iterator_tag
inherited

Definition at line 221 of file base_set.h.

◆ pointer

using BASE_SET::set_bits_iterator::pointer = const size_t*
inherited

Definition at line 224 of file base_set.h.

◆ reference

using BASE_SET::set_bits_iterator::reference = const size_t&
inherited

Definition at line 225 of file base_set.h.

◆ value_type

using BASE_SET::set_bits_iterator::value_type = size_t
inherited

Definition at line 222 of file base_set.h.

Constructor & Destructor Documentation

◆ copper_layers_iterator()

LSET::copper_layers_iterator::copper_layers_iterator ( const BASE_SET set,
size_t  index 
)

Member Function Documentation

◆ advance_to_next_set_bit()

void BASE_SET::set_bits_iterator::advance_to_next_set_bit ( )
inlineprotectedinherited

Definition at line 247 of file base_set.h.

◆ advance_to_next_set_copper_bit()

void LSET::copper_layers_iterator::advance_to_next_set_copper_bit ( )
private

Definition at line 930 of file lset.cpp.

Referenced by copper_layers_iterator().

◆ next_copper_layer()

void LSET::copper_layers_iterator::next_copper_layer ( )
private

Definition at line 910 of file lset.cpp.

References B_Cu, and F_Cu.

◆ operator!=()

bool BASE_SET::set_bits_iterator::operator!= ( const set_bits_iterator other) const
inlineinherited

Definition at line 242 of file base_set.h.

References BASE_SET::set_bits_iterator::m_index.

◆ operator*()

PCB_LAYER_ID LSET::copper_layers_iterator::operator* ( ) const

Definition at line 898 of file lset.cpp.

◆ operator++()

LSET::copper_layers_iterator & LSET::copper_layers_iterator::operator++ ( )

Definition at line 903 of file lset.cpp.

◆ operator==()

bool BASE_SET::set_bits_iterator::operator== ( const set_bits_iterator other) const
inlineinherited

Definition at line 244 of file base_set.h.

References BASE_SET::set_bits_iterator::m_index.

Member Data Documentation

◆ m_baseSet

const BASE_SET& BASE_SET::set_bits_iterator::m_baseSet
protectedinherited

Definition at line 253 of file base_set.h.

◆ m_index

size_t BASE_SET::set_bits_iterator::m_index
protectedinherited

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