newntui/discovermdi/src/disgraphnode.cpp
//-----------------------------------------------------------------------------------
// This method will find the node in the graph with specified ID
//-----------------------------------------------------------------------------------
This method will find the node in the graph with specified ID
This method will find the node in the graph with specified ID
CDisGraphNode* CDisGraph::NodeFromID(int id) {
TSDListIterator nodeIterator(pNodeDList());
CDisGraphNode* pNode;
    while(nodeIterator)  {
		pNode = (CDisGraphNode *) nodeIterator.pObject();
		if(pNode->GetNodeID()==id) return pNode;
		nodeIterator++;
	}
	return NULL;
}
CDisGraphNode * CDisGraph :: NodeFromID ( int id ) { TSDListIterator nodeIterator ( pNodeDList ( ) ) ; CDisGraphNode * pNode ; while ( nodeIterator ) { pNode = ( CDisGraphNode * ) nodeIterator . pObject ( ) ; if ( pNode -> GetNodeID ( ) == id ) return pNode ; nodeIterator ++ ; } return NULL ; }
This method will find the node in the graph with specified ID
This method will find the node in the graph with specified ID