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

Constructor & Destructor Documentation

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

Definition at line 489 of file netinfo.h.

489  : m_iterator( aIter )
490  {
491  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529

Member Function Documentation

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

Definition at line 518 of file netinfo.h.

References NETINFO_MAPPING::iterator::m_iterator, and m_iterator.

519  {
520  return m_iterator != aOther.m_iterator;
521  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529
NETINFO_ITEM* NETINFO_LIST::iterator::operator* ( ) const
inline

Definition at line 508 of file netinfo.h.

References NETINFO_MAPPING::iterator::m_iterator.

509  {
510  return m_iterator->second;
511  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529
const iterator& NETINFO_LIST::iterator::operator++ ( )
inline

pre-increment operator

Definition at line 494 of file netinfo.h.

References NETINFO_MAPPING::iterator::m_iterator.

495  {
496  ++m_iterator;
497  return *this;
498  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529
iterator NETINFO_LIST::iterator::operator++ ( int  )
inline

post-increment operator

Definition at line 501 of file netinfo.h.

References NETINFO_MAPPING::iterator::m_iterator.

502  {
503  iterator ret = *this;
504  ++m_iterator;
505  return ret;
506  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529
iterator(NETNAMES_MAP::const_iterator aIter)
Definition: netinfo.h:489
NETINFO_ITEM* NETINFO_LIST::iterator::operator-> ( ) const
inline

Definition at line 513 of file netinfo.h.

References NETINFO_MAPPING::iterator::m_iterator.

514  {
515  return m_iterator->second;
516  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529
bool NETINFO_LIST::iterator::operator== ( const iterator aOther) const
inline

Definition at line 523 of file netinfo.h.

References NETINFO_MAPPING::iterator::m_iterator, and m_iterator.

524  {
525  return m_iterator == aOther.m_iterator;
526  }
NETNAMES_MAP::const_iterator m_iterator
Definition: netinfo.h:529

Member Data Documentation

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

Definition at line 529 of file netinfo.h.

Referenced by operator!=(), and operator==().


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