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

#include <lset.h>

Inheritance diagram for LSET::non_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

 non_copper_layers_iterator (const BASE_SET &set, size_t index)
 
PCB_LAYER_ID operator* () const
 
non_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_non_copper_bit ()
 

Detailed Description

Definition at line 328 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

◆ non_copper_layers_iterator()

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

Definition at line 939 of file lset.cpp.

References advance_to_next_set_non_copper_bit().

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_non_copper_bit()

void LSET::non_copper_layers_iterator::advance_to_next_set_non_copper_bit ( )
private

Definition at line 957 of file lset.cpp.

Referenced by non_copper_layers_iterator().

◆ 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::non_copper_layers_iterator::operator* ( ) const

Definition at line 945 of file lset.cpp.

◆ operator++()

LSET::non_copper_layers_iterator & LSET::non_copper_layers_iterator::operator++ ( )

Definition at line 950 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: