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

#include <lset.h>

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

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

Detailed Description

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

◆ all_set_layers_iterator()

LSET::all_set_layers_iterator::all_set_layers_iterator ( const BASE_SET set,
size_t  index 
)
inline

Definition at line 298 of file lset.h.

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.

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

Definition at line 303 of file lset.h.

◆ operator++()

all_set_layers_iterator & LSET::all_set_layers_iterator::operator++ ( )
inline

Definition at line 305 of file lset.h.

References BASE_SET::set_bits_iterator::operator++().

◆ 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 file: