newntui/discovermdi/src/disgraphnode.cpp
//------------------------------------------------------------------------------------
// This private function will search all graph trying to find the node with the
// specified ID. Returns pointer to this node or NULL if not found.
//------------------------------------------------------------------------------------
This private function will search all graph trying to find the node with the
specified ID. Returns pointer to this node or NULL if not found.
This private function will search all graph trying to find the node with the specified ID . Returns pointer to this node or NULL if not found .
CDisGraphNode* CDisGraph::FindNodeWithID(int id) {
CDisGraphNode* pNode;
   TSDListIterator nodeIterator(pNodeDList());
   while(nodeIterator) {
       pNode = CDisGraphNode::castDown(nodeIterator.pObject());
	   if(pNode->GetNodeID()==id) return pNode;
	   nodeIterator++;
   }
   return NULL;
}
CDisGraphNode * CDisGraph :: FindNodeWithID ( int id ) { CDisGraphNode * pNode ; TSDListIterator nodeIterator ( pNodeDList ( ) ) ; while ( nodeIterator ) { pNode = CDisGraphNode :: castDown ( nodeIterator . pObject ( ) ) ; if ( pNode -> GetNodeID ( ) == id ) return pNode ; nodeIterator ++ ; } return NULL ; }
This private function will search all graph trying to find the node with the
specified ID.
This private function will search all graph trying to find the node with the specified ID .