KiCad PCB EDA Suite
NETINFO_LIST::iterator Class Reference

#include <netinfo.h>

Public Member Functions

 iterator (NETNAMES_MAP::const_iterator aIter)
 
const iteratoroperator++ ()
 pre-increment operator More...
 
iterator operator++ (int)
 post-increment operator More...
 
NETINFO_ITEMoperator* () const
 
NETINFO_ITEMoperator-> () const
 
bool operator!= (const iterator &aOther) const
 
bool operator== (const iterator &aOther) const
 

Private Attributes

NETNAMES_MAP::const_iterator m_iterator
 

Detailed Description

Definition at line 400 of file netinfo.h.

Constructor & Destructor Documentation

◆ iterator()

NETINFO_LIST::iterator::iterator ( NETNAMES_MAP::const_iterator  aIter)
inline

Definition at line 403 of file netinfo.h.

403 : m_iterator( aIter )
404 {
405 }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:443

Member Function Documentation

◆ operator!=()

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

Definition at line 432 of file netinfo.h.

433 {
434 return m_iterator != aOther.m_iterator;
435 }

References m_iterator.

◆ operator*()

NETINFO_ITEM * NETINFO_LIST::iterator::operator* ( ) const
inline

Definition at line 422 of file netinfo.h.

423 {
424 return m_iterator->second;
425 }

References m_iterator.

◆ operator++() [1/2]

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

pre-increment operator

Definition at line 408 of file netinfo.h.

409 {
410 ++m_iterator;
411 return *this;
412 }

References m_iterator.

◆ operator++() [2/2]

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

post-increment operator

Definition at line 415 of file netinfo.h.

416 {
417 iterator ret = *this;
418 ++m_iterator;
419 return ret;
420 }
iterator(NETNAMES_MAP::const_iterator aIter)
Definition: netinfo.h:403

References m_iterator.

◆ operator->()

NETINFO_ITEM * NETINFO_LIST::iterator::operator-> ( ) const
inline

Definition at line 427 of file netinfo.h.

428 {
429 return m_iterator->second;
430 }

References m_iterator.

◆ operator==()

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

Definition at line 437 of file netinfo.h.

438 {
439 return m_iterator == aOther.m_iterator;
440 }

References m_iterator.

Member Data Documentation

◆ m_iterator

NETNAMES_MAP::const_iterator NETINFO_LIST::iterator::m_iterator
private

Definition at line 443 of file netinfo.h.

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


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