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

#include <base_set.h>

Public Types

using iterator_category = std::random_access_iterator_tag
 
using value_type = bool
 
using difference_type = std::ptrdiff_t
 
using pointer = void
 
using reference = bool
 

Public Member Functions

 const_iterator (const BASE_SET *set, size_t pos)
 
bool operator* () const
 
const_iteratoroperator++ ()
 
const_iterator operator+ (difference_type n) const
 
difference_type operator- (const const_iterator &other) const
 
auto operator<=> (const const_iterator &) const =default
 

Private Attributes

const BASE_SETm_set
 
size_t m_pos
 

Detailed Description

Definition at line 74 of file base_set.h.

Member Typedef Documentation

◆ difference_type

Definition at line 79 of file base_set.h.

◆ iterator_category

using BASE_SET::const_iterator::iterator_category = std::random_access_iterator_tag

Definition at line 77 of file base_set.h.

◆ pointer

Definition at line 80 of file base_set.h.

◆ reference

Definition at line 81 of file base_set.h.

◆ value_type

Definition at line 78 of file base_set.h.

Constructor & Destructor Documentation

◆ const_iterator()

BASE_SET::const_iterator::const_iterator ( const BASE_SET set,
size_t  pos 
)
inline

Definition at line 83 of file base_set.h.

Member Function Documentation

◆ operator*()

bool BASE_SET::const_iterator::operator* ( ) const
inline

Definition at line 84 of file base_set.h.

◆ operator+()

const_iterator BASE_SET::const_iterator::operator+ ( difference_type  n) const
inline

Definition at line 90 of file base_set.h.

◆ operator++()

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

Definition at line 85 of file base_set.h.

◆ operator-()

difference_type BASE_SET::const_iterator::operator- ( const const_iterator other) const
inline

Definition at line 94 of file base_set.h.

References m_pos.

◆ operator<=>()

auto BASE_SET::const_iterator::operator<=> ( const const_iterator ) const
default

Member Data Documentation

◆ m_pos

size_t BASE_SET::const_iterator::m_pos
private

Definition at line 102 of file base_set.h.

Referenced by operator-().

◆ m_set

const BASE_SET* BASE_SET::const_iterator::m_set
private

Definition at line 101 of file base_set.h.


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