KiCad PCB EDA Suite
NETINFO_LIST::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 (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

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

Definition at line 503 of file netinfo.h.

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 506 of file netinfo.h.

506  : m_iterator( aIter )
507  {
508  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546

Member Function Documentation

◆ operator *()

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

Definition at line 525 of file netinfo.h.

526  {
527  return m_iterator->second;
528  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546

References m_iterator.

◆ operator!=()

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

Definition at line 535 of file netinfo.h.

536  {
537  return m_iterator != aOther.m_iterator;
538  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546

References m_iterator.

◆ operator++() [1/2]

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

pre-increment operator

Definition at line 511 of file netinfo.h.

512  {
513  ++m_iterator;
514  return *this;
515  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546

References m_iterator.

◆ operator++() [2/2]

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

post-increment operator

Definition at line 518 of file netinfo.h.

519  {
520  iterator ret = *this;
521  ++m_iterator;
522  return ret;
523  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546
iterator(NETNAMES_MAP::const_iterator aIter)
Definition: netinfo.h:506

References m_iterator.

◆ operator->()

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

Definition at line 530 of file netinfo.h.

531  {
532  return m_iterator->second;
533  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546

References m_iterator.

◆ operator==()

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

Definition at line 540 of file netinfo.h.

541  {
542  return m_iterator == aOther.m_iterator;
543  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:546

References m_iterator.

Member Data Documentation

◆ m_iterator

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

Definition at line 546 of file netinfo.h.

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


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