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

Constructor & Destructor Documentation

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

Definition at line 492 of file class_netinfo.h.

492  : m_iterator( aIter )
493  {
494  }
NETNAMES_MAP::const_iterator m_iterator

Member Function Documentation

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

Definition at line 521 of file class_netinfo.h.

References m_iterator.

522  {
523  return m_iterator != aOther.m_iterator;
524  }
NETNAMES_MAP::const_iterator m_iterator
NETINFO_ITEM* NETINFO_LIST::iterator::operator* ( ) const
inline

Definition at line 511 of file class_netinfo.h.

References m_iterator.

512  {
513  return m_iterator->second;
514  }
NETNAMES_MAP::const_iterator m_iterator
const iterator& NETINFO_LIST::iterator::operator++ ( )
inline

pre-increment operator

Definition at line 497 of file class_netinfo.h.

References m_iterator.

498  {
499  ++m_iterator;
500  return *this;
501  }
NETNAMES_MAP::const_iterator m_iterator
iterator NETINFO_LIST::iterator::operator++ ( int  )
inline

post-increment operator

Definition at line 504 of file class_netinfo.h.

References m_iterator.

505  {
506  iterator ret = *this;
507  ++m_iterator;
508  return ret;
509  }
NETNAMES_MAP::const_iterator m_iterator
iterator(NETNAMES_MAP::const_iterator aIter)
NETINFO_ITEM* NETINFO_LIST::iterator::operator-> ( ) const
inline

Definition at line 516 of file class_netinfo.h.

References m_iterator.

517  {
518  return m_iterator->second;
519  }
NETNAMES_MAP::const_iterator m_iterator
bool NETINFO_LIST::iterator::operator== ( const iterator aOther) const
inline

Definition at line 526 of file class_netinfo.h.

References m_iterator.

527  {
528  return m_iterator == aOther.m_iterator;
529  }
NETNAMES_MAP::const_iterator m_iterator

Member Data Documentation

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

Definition at line 532 of file class_netinfo.h.

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


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