src/libYARP_OS/src/mesh.cpp
MeshLink *Mesh::FindByLabel ( const YARPString& label )
{
	int
		found = 0;
	MeshLink
		*cursor = root;

	while ( cursor != NULL && !found )
	{                              
		if ( label == cursor->GetLabel() )
		{
			found = 1;
		}
		else
		{
			cursor = cursor->BaseGetMeshNext();
		}
	}

	return cursor;
}
/*-----------------------------------------------------------------------------
Function	FindByLabel
                                                                           
Description	Searches for a link with the given name within the mesh.

Input		label			The name to search for.

Returns		A pointer to the link if it was found, otherwise NULL
-----------------------------------------------------------------------------*/
Function        FindByLabel
Description     Searches for a link with the given name within the mesh.

Input           label                   The name to search for.

Returns         A pointer to the link if it was found, otherwise NULL
Function FindByLabel Description Searches for a link with the given name within the mesh . Input label The name to search for . Returns A pointer to the link if it was found otherwise NULL
MeshLink *Mesh::FindByLabel ( const YARPString& label )
{
	int
		found = 0;
	MeshLink
		*cursor = root;
	while ( cursor != NULL && !found )
	{                              
		if ( label == cursor->GetLabel() )
		{
			found = 1;
		}
		else
		{
			cursor = cursor->BaseGetMeshNext();
		}
	}
	return cursor;
}
MeshLink * Mesh :: FindByLabel ( const YARPString & label ) { int found = 0 ; MeshLink * cursor = root ; while ( cursor != NULL && ! found ) { if ( label == cursor -> GetLabel ( ) ) { found = 1 ; } else { cursor = cursor -> BaseGetMeshNext ( ) ; } } return cursor ; }
Function        FindByLabel
Description     Searches for a link with the given name within the mesh.
Function FindByLabel Description Searches for a link with the given name within the mesh .