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 <class_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 478 of file class_netinfo.h.

Constructor & Destructor Documentation

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

Definition at line 481 of file class_netinfo.h.

481  : m_iterator( aIter )
482  {
483  }
NETNAMES_MAP::const_iterator m_iterator

Member Function Documentation

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

Definition at line 510 of file class_netinfo.h.

References m_iterator.

511  {
512  return m_iterator != aOther.m_iterator;
513  }
NETNAMES_MAP::const_iterator m_iterator
NETINFO_ITEM* NETINFO_LIST::iterator::operator* ( ) const
inline

Definition at line 500 of file class_netinfo.h.

References m_iterator.

501  {
502  return m_iterator->second;
503  }
NETNAMES_MAP::const_iterator m_iterator
const iterator& NETINFO_LIST::iterator::operator++ ( )
inline

pre-increment operator

Definition at line 486 of file class_netinfo.h.

References m_iterator.

487  {
488  ++m_iterator;
489  return *this;
490  }
NETNAMES_MAP::const_iterator m_iterator
iterator NETINFO_LIST::iterator::operator++ ( int  )
inline

post-increment operator

Definition at line 493 of file class_netinfo.h.

References m_iterator.

494  {
495  iterator ret = *this;
496  ++m_iterator;
497  return ret;
498  }
NETNAMES_MAP::const_iterator m_iterator
iterator(NETNAMES_MAP::const_iterator aIter)
NETINFO_ITEM* NETINFO_LIST::iterator::operator-> ( ) const
inline

Definition at line 505 of file class_netinfo.h.

References m_iterator.

506  {
507  return m_iterator->second;
508  }
NETNAMES_MAP::const_iterator m_iterator
bool NETINFO_LIST::iterator::operator== ( const iterator aOther) const
inline

Definition at line 515 of file class_netinfo.h.

References m_iterator.

516  {
517  return m_iterator == aOther.m_iterator;
518  }
NETNAMES_MAP::const_iterator m_iterator

Member Data Documentation

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

Definition at line 521 of file class_netinfo.h.

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


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