KiCad PCB EDA Suite
Loading...
Searching...
No Matches
NETINFO_MAPPING::iterator Class Reference

Wrapper class, so you can iterate through NETINFO_ITEM*s, not std::pair<int/wxString, NETINFO_ITEM*> More...

#include <netinfo.h>

Public Member Functions

 iterator (std::map< int, int >::const_iterator aIter, const NETINFO_MAPPING *aMapping)
 
const iteratoroperator++ ()
 pre-increment operator
 
iterator operator++ (int)
 post-increment operator
 
NETINFO_ITEMoperator* () const
 
NETINFO_ITEMoperator-> () const
 
bool operator!= (const iterator &aOther) const
 
bool operator== (const iterator &aOther) const
 

Private Attributes

std::map< int, int >::const_iterator m_iterator
 
const NETINFO_MAPPINGm_mapping
 

Detailed Description

Wrapper class, so you can iterate through NETINFO_ITEM*s, not std::pair<int/wxString, NETINFO_ITEM*>

Definition at line 248 of file netinfo.h.

Constructor & Destructor Documentation

◆ iterator()

NETINFO_MAPPING::iterator::iterator ( std::map< int, int >::const_iterator  aIter,
const NETINFO_MAPPING aMapping 
)
inline

Definition at line 251 of file netinfo.h.

Member Function Documentation

◆ operator!=()

bool NETINFO_MAPPING::iterator::operator!= ( const iterator aOther) const
inline

Definition at line 277 of file netinfo.h.

References m_iterator.

◆ operator*()

NETINFO_ITEM * NETINFO_MAPPING::iterator::operator* ( ) const

Definition at line 333 of file netinfo_list.cpp.

References BOARD::FindNet(), NETINFO_MAPPING::m_board, m_iterator, and m_mapping.

◆ operator++() [1/2]

const iterator & NETINFO_MAPPING::iterator::operator++ ( )
inline

pre-increment operator

Definition at line 257 of file netinfo.h.

References m_iterator.

◆ operator++() [2/2]

iterator NETINFO_MAPPING::iterator::operator++ ( int  )
inline

post-increment operator

Definition at line 265 of file netinfo.h.

References m_iterator.

◆ operator->()

NETINFO_ITEM * NETINFO_MAPPING::iterator::operator-> ( ) const

Definition at line 339 of file netinfo_list.cpp.

◆ operator==()

bool NETINFO_MAPPING::iterator::operator== ( const iterator aOther) const
inline

Definition at line 282 of file netinfo.h.

References m_iterator.

Member Data Documentation

◆ m_iterator

std::map<int,int>::const_iterator NETINFO_MAPPING::iterator::m_iterator
private

Definition at line 288 of file netinfo.h.

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

◆ m_mapping

const NETINFO_MAPPING* NETINFO_MAPPING::iterator::m_mapping
private

Definition at line 289 of file netinfo.h.

Referenced by operator*().


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