From 82fc902879aadddeba4aad64af991ed52e9f5c0c Mon Sep 17 00:00:00 2001 From: rahuel Date: Wed, 9 Mar 2005 08:08:51 +0000 Subject: [PATCH] Debug of KindOfPort --- src/GraphBase/DataFlowBase_OutPort.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/GraphBase/DataFlowBase_OutPort.cxx b/src/GraphBase/DataFlowBase_OutPort.cxx index 61d6cfa..d03f937 100644 --- a/src/GraphBase/DataFlowBase_OutPort.cxx +++ b/src/GraphBase/DataFlowBase_OutPort.cxx @@ -103,17 +103,21 @@ bool GraphBase::OutPort::RemoveInPort() { } int index = 1 ; GraphBase::InPort * toPort = _InPorts[ index - 1 ] ; - cdebug << "OutPort::RemoveInPort " << NodeName() << "( " << PortName() << " " << PortStatus() << " ) --> " - << toPort->NodeName() << "( " << toPort->PortName() << " " << toPort->PortStatus() - << " )" << endl ; _InPortsSize -= 1 ; _InPorts.resize( _InPortsSize ) ; _Links.resize( _InPortsSize ) ; _MapOfInPorts.erase( toPort->NodePortName() ) ; if ( _InPortsSize == 0 ) { PortStatus(NotConnected ) ; + if ( IsSwitch() ) { + Kind( SUPERV::InLineParameter ) ; + } } toPort->RemoveOutPort() ; + cdebug << "OutPort::RemoveInPort " << NodeName() << "( " << PortName() << " " << PortStatus() + << " " << Kind() << " ) _InPortsSize " << _InPortsSize << " --> " + << toPort->NodeName() << "( " << toPort->PortName() << " " << toPort->PortStatus() + << " " << toPort->Kind() << " )" << endl ; return true ; } @@ -138,6 +142,9 @@ bool GraphBase::OutPort::RemoveInPort( GraphBase::InPort * toPort ) { _MapOfInPorts.erase( toPort->NodePortName() ) ; if ( _InPortsSize == 0 ) { PortStatus(NotConnected ) ; + if ( IsSwitch() ) { + Kind( SUPERV::InLineParameter ) ; + } } toPort->RemoveOutPort() ; return true ; -- 2.39.2