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

#include <base_set.h>

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
 

Private Member Functions

void advance_to_next_set_bit ()
 

Private Attributes

const BASE_SETm_baseSet
 
size_t m_index
 

Detailed Description

Definition at line 208 of file base_set.h.

Member Typedef Documentation

◆ difference_type

Definition at line 213 of file base_set.h.

◆ iterator_category

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

Definition at line 211 of file base_set.h.

◆ pointer

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

Definition at line 214 of file base_set.h.

◆ reference

Definition at line 215 of file base_set.h.

◆ value_type

Definition at line 212 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 217 of file base_set.h.

Member Function Documentation

◆ advance_to_next_set_bit()

void BASE_SET::set_bits_iterator::advance_to_next_set_bit ( )
inlineprivate

Definition at line 237 of file base_set.h.

◆ operator!=()

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

Definition at line 232 of file base_set.h.

References m_index.

◆ operator*()

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

Definition at line 223 of file base_set.h.

◆ operator++()

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

Definition at line 225 of file base_set.h.

◆ operator==()

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

Definition at line 234 of file base_set.h.

References m_index.

Member Data Documentation

◆ m_baseSet

const BASE_SET& BASE_SET::set_bits_iterator::m_baseSet
private

Definition at line 243 of file base_set.h.

◆ m_index

size_t BASE_SET::set_bits_iterator::m_index
private

Definition at line 244 of file base_set.h.

Referenced by operator!=(), and operator==().


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