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

ConnectorList CNItem::connectorList (  )  [inherited]

Returns a list of connectors associated with the CNItem

Definition at line 133 of file cnitem.cpp.

References Node::getAllConnectors().

{
      ConnectorList list;

      const NodeInfoMap::iterator nodeMapEnd = m_nodeMap.end();
      for ( NodeInfoMap::iterator it = m_nodeMap.begin(); it != nodeMapEnd; ++it )
      {
            Node *node = p_icnDocument->nodeWithID(it.data().id);
            if (node)
            {
                  ConnectorList nodeList = node->getAllConnectors();
                  ConnectorList::iterator end = nodeList.end();
                  for ( ConnectorList::iterator it = nodeList.begin(); it != end; ++it )
                  {
                        if ( *it && !list.contains(*it) )
                        {
                              list.append(*it);
                        }
                  }

            }
      }
      
      return list;
}


Generated by  Doxygen 1.6.0   Back to index