KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BASE_SET::set_bits_iterator Class Reference

#include <base_set.h>

Inheritance diagram for BASE_SET::set_bits_iterator:
LSET::all_set_layers_iterator LSET::copper_layers_iterator LSET::non_copper_layers_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

 set_bits_iterator (const BASE_SET &baseSet, size_t index)
 
size_t operator* () const
 
set_bits_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 218 of file base_set.h.

Member Typedef Documentation

◆ difference_type

Definition at line 223 of file base_set.h.

◆ iterator_category

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

Definition at line 221 of file base_set.h.

◆ pointer

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

Definition at line 224 of file base_set.h.

◆ reference

Definition at line 225 of file base_set.h.

◆ value_type

Definition at line 222 of file base_set.h.

Constructor & Destructor Documentation

◆ set_bits_iterator()

BASE_SET::set_bits_iterator::set_bits_iterator ( const BASE_SET baseSet,
size_t  index 
)
inline

Definition at line 227 of file base_set.h.

Member Function Documentation

◆ advance_to_next_set_bit()

void BASE_SET::set_bits_iterator::advance_to_next_set_bit ( )
inlineprotected

Definition at line 247 of file base_set.h.

◆ operator!=()

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

Definition at line 242 of file base_set.h.

References m_index.

◆ operator*()

size_t BASE_SET::set_bits_iterator::operator* ( ) const
inline

Definition at line 233 of file base_set.h.

◆ operator++()

set_bits_iterator & BASE_SET::set_bits_iterator::operator++ ( )
inline

Definition at line 235 of file base_set.h.

Referenced by LSET::all_set_layers_iterator::operator++().

◆ operator==()

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

Definition at line 244 of file base_set.h.

References m_index.

Member Data Documentation

◆ m_baseSet

const BASE_SET& BASE_SET::set_bits_iterator::m_baseSet
protected

Definition at line 253 of file base_set.h.

◆ m_index

size_t BASE_SET::set_bits_iterator::m_index
protected

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