ns-allinone-2.35/ns-2.35/common/node.cc
Node* Node::get_node_by_address (nsaddr_t id)
{
	Node * tnode = nodehead_.lh_first;
	for (; tnode; tnode = tnode->nextnode()) {
		if (tnode->address_ == id ) {
			return (tnode);
		}
	}
	return NULL;
}
// A class static method. Return the node instance from the static node list
A class static method. Return the node instance from the static node list
A class static method . Return the node instance from the static node list
Node* Node::get_node_by_address (nsaddr_t id)
{
	Node * tnode = nodehead_.lh_first;
	for (; tnode; tnode = tnode->nextnode()) {
		if (tnode->address_ == id ) {
			return (tnode);
		}
	}
	return NULL;
}
Node * Node :: get_node_by_address ( nsaddr_t id ) { Node * tnode = nodehead_ . lh_first ; for ( ; tnode ; tnode = tnode -> nextnode ( ) ) { if ( tnode -> address_ == id ) { return ( tnode ) ; } } return NULL ; }
A class static method.
A class static method .