Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

ElementMapList::iterator Component::handleElement ( Element e,
const QValueList< Pin * > &  pins 
) [private]

Returns:
an iterator to the element in m_elementMapList

Definition at line 860 of file component.cpp.

References ElementMap::e, elementCreated(), m_elementMapList, and ElementMap::n.

{
      if (!e)
            return m_elementMapList.end();
      
      ElementMap em;
      em.e = e;
      int at = 0;
      QValueList<Pin*>::ConstIterator end = pins.end();
      for ( QValueList<Pin*>::ConstIterator it = pins.begin(); it != end; ++it )
      {
            (*it)->addElement(e);
            em.n[at++] = *it;
      }
      
      ElementMapList::iterator it = m_elementMapList.append(em);
      
      emit elementCreated(e);
      return it;
}


Generated by  Doxygen 1.6.0   Back to index