Logo Search packages:      
Sourcecode: ktechlab version File versions

Connector * FPNode::getAConnector (  )  const [virtual, inherited]

For a flownode: returns the first input connector, if it exist, or the fist outptut connector, if it exists. For an electric node: returns the first connector If the node isn't connected to anyithing, returns null ( 0 )

pointer to the desired connector

Implements Node.

Definition at line 386 of file fpnode.cpp.

      if( ! m_inputConnectorList.isEmpty() )
            return *m_inputConnectorList.begin();

      if( m_outputConnector)
            return m_outputConnector;
      return 0l;

Generated by  Doxygen 1.6.0   Back to index