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

#include <base_set.h>

Public Types

using iterator_category = std::bidirectional_iterator_tag
 
using value_type = ssize_t
 
using difference_type = std::ptrdiff_t
 
using pointer = const ssize_t *
 
using reference = const ssize_t &
 

Public Member Functions

 set_bits_reverse_iterator (const BASE_SET &baseSet, ssize_t index)
 
ssize_t operator* () const
 
set_bits_reverse_iteratoroperator++ ()
 
bool operator!= (const set_bits_reverse_iterator &other) const
 
bool operator== (const set_bits_reverse_iterator &other) const
 

Protected Member Functions

void advance_to_previous_set_bit ()
 

Protected Attributes

const BASE_SETm_baseSet
 
ssize_t m_index
 

Detailed Description

Definition at line 258 of file base_set.h.

Member Typedef Documentation

◆ difference_type

Definition at line 263 of file base_set.h.

◆ iterator_category

using BASE_SET::set_bits_reverse_iterator::iterator_category = std::bidirectional_iterator_tag

Definition at line 261 of file base_set.h.

◆ pointer

Definition at line 264 of file base_set.h.

◆ reference

Definition at line 265 of file base_set.h.

◆ value_type

Definition at line 262 of file base_set.h.

Constructor & Destructor Documentation

◆ set_bits_reverse_iterator()

BASE_SET::set_bits_reverse_iterator::set_bits_reverse_iterator ( const BASE_SET baseSet,
ssize_t  index 
)
inline

Definition at line 267 of file base_set.h.

Member Function Documentation

◆ advance_to_previous_set_bit()

void BASE_SET::set_bits_reverse_iterator::advance_to_previous_set_bit ( )
inlineprotected

Definition at line 293 of file base_set.h.

◆ operator!=()

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

Definition at line 282 of file base_set.h.

References m_index.

◆ operator*()

ssize_t BASE_SET::set_bits_reverse_iterator::operator* ( ) const
inline

Definition at line 273 of file base_set.h.

◆ operator++()

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

Definition at line 275 of file base_set.h.

◆ operator==()

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

Definition at line 287 of file base_set.h.

References m_index.

Member Data Documentation

◆ m_baseSet

const BASE_SET& BASE_SET::set_bits_reverse_iterator::m_baseSet
protected

Definition at line 301 of file base_set.h.

◆ m_index

ssize_t BASE_SET::set_bits_reverse_iterator::m_index
protected

Definition at line 302 of file base_set.h.

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


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