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 407 of file netinfo.h.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 410 of file netinfo.h.

410 : m_iterator( aIter )
411 {
412 }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:450

Member Function Documentation

◆ operator!=()

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

Definition at line 439 of file netinfo.h.

440 {
441 return m_iterator != aOther.m_iterator;
442 }

References m_iterator.

◆ operator*()

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

Definition at line 429 of file netinfo.h.

430 {
431 return m_iterator->second;
432 }

References m_iterator.

◆ operator++() [1/2]

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

pre-increment operator

Definition at line 415 of file netinfo.h.

416 {
417 ++m_iterator;
418 return *this;
419 }

References m_iterator.

◆ operator++() [2/2]

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

post-increment operator

Definition at line 422 of file netinfo.h.

423 {
424 iterator ret = *this;
425 ++m_iterator;
426 return ret;
427 }
iterator(NETNAMES_MAP::const_iterator aIter)
Definition: netinfo.h:410

References m_iterator.

◆ operator->()

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

Definition at line 434 of file netinfo.h.

435 {
436 return m_iterator->second;
437 }

References m_iterator.

◆ operator==()

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

Definition at line 444 of file netinfo.h.

445 {
446 return m_iterator == aOther.m_iterator;
447 }

References m_iterator.

Member Data Documentation

◆ m_iterator

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

Definition at line 450 of file netinfo.h.

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


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