+bool GraphBase::OutPort::RemoveInPort() {
+ if ( _InPortsSize != 1 ) {
+ return false ;
+ }
+ int index = 1 ;
+ GraphBase::InPort * toPort = _InPorts[ index - 1 ] ;
+ _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 ;
+}
+