Example #1
0
/*!
 * \brief Try to connect a port
 *
 * \param port: port to connect
 * \todo handle more than one coinciding port
 * \bug the todo is a bug...
 */
void Wire::tryConnectPort(Port * port)
{
    Port * p = port->findCoincidingPort();
    if(p) {
        p->connectTo(p);
    }
}