KiCad PCB EDA Suite
Loading...
Searching...
No Matches
BASE_SET::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

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

Private Attributes

BASE_SETm_set
 
size_t m_pos
 

Detailed Description

Definition at line 43 of file base_set.h.

Member Typedef Documentation

◆ difference_type

using BASE_SET::iterator::difference_type = std::ptrdiff_t

Definition at line 48 of file base_set.h.

◆ iterator_category

using BASE_SET::iterator::iterator_category = std::random_access_iterator_tag

Definition at line 46 of file base_set.h.

◆ pointer

Definition at line 49 of file base_set.h.

◆ reference

Definition at line 50 of file base_set.h.

◆ value_type

Definition at line 47 of file base_set.h.

Constructor & Destructor Documentation

◆ iterator()

BASE_SET::iterator::iterator ( BASE_SET set,
size_t  pos 
)
inline

Definition at line 52 of file base_set.h.

Member Function Documentation

◆ operator*()

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

Definition at line 53 of file base_set.h.

◆ operator+()

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

Definition at line 59 of file base_set.h.

◆ operator++()

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

Definition at line 54 of file base_set.h.

◆ operator-()

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

Definition at line 63 of file base_set.h.

References m_pos.

◆ operator<=>()

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

Member Data Documentation

◆ m_pos

size_t BASE_SET::iterator::m_pos
private

Definition at line 71 of file base_set.h.

Referenced by operator-().

◆ m_set

BASE_SET* BASE_SET::iterator::m_set
private

Definition at line 70 of file base_set.h.


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