ns-allinone-2.35/nam-1.15/group.cc
void Group::get_members(int *mbrs)
{
	Tcl_HashEntry *he;
	Tcl_HashSearch hs;
	int i = 0;
	for (he = Tcl_FirstHashEntry(nodeHash_, &hs);
	     he != NULL;
	     he = Tcl_NextHashEntry(&hs), i++) 
		mbrs[i] = *Tcl_GetHashValue(he);
}
// Assume mbrs has at least size_ elements
Assume mbrs has at least size_ elements
Assume mbrs has at least size_ elements
void Group::get_members(int *mbrs)
{
	Tcl_HashEntry *he;
	Tcl_HashSearch hs;
	int i = 0;
	for (he = Tcl_FirstHashEntry(nodeHash_, &hs);
	     he != NULL;
	     he = Tcl_NextHashEntry(&hs), i++) 
		mbrs[i] = *Tcl_GetHashValue(he);
}
void Group :: get_members ( int * mbrs ) { Tcl_HashEntry * he ; Tcl_HashSearch hs ; int i = 0 ; for ( he = Tcl_FirstHashEntry ( nodeHash_ , & hs ) ; he != NULL ; he = Tcl_NextHashEntry ( & hs ) , i ++ ) mbrs [ i ] = * Tcl_GetHashValue ( he ) ; }
Assume mbrs has at least size_ elements
Assume mbrs has at least size_ elements