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

Constructor & Destructor Documentation

◆ iterator()

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

Definition at line 393 of file netinfo.h.

393  : m_iterator( aIter )
394  {
395  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433

Member Function Documentation

◆ operator *()

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

Definition at line 412 of file netinfo.h.

413  {
414  return m_iterator->second;
415  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433

References m_iterator.

◆ operator!=()

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

Definition at line 422 of file netinfo.h.

423  {
424  return m_iterator != aOther.m_iterator;
425  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433

References m_iterator.

◆ operator++() [1/2]

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

pre-increment operator

Definition at line 398 of file netinfo.h.

399  {
400  ++m_iterator;
401  return *this;
402  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433

References m_iterator.

◆ operator++() [2/2]

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

post-increment operator

Definition at line 405 of file netinfo.h.

406  {
407  iterator ret = *this;
408  ++m_iterator;
409  return ret;
410  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433
iterator(NETNAMES_MAP::const_iterator aIter)
Definition: netinfo.h:393

References m_iterator.

◆ operator->()

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

Definition at line 417 of file netinfo.h.

418  {
419  return m_iterator->second;
420  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433

References m_iterator.

◆ operator==()

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

Definition at line 427 of file netinfo.h.

428  {
429  return m_iterator == aOther.m_iterator;
430  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:433

References m_iterator.

Member Data Documentation

◆ m_iterator

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

Definition at line 433 of file netinfo.h.

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


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