src/libYARP_OS/src/mesh.cpp
void Mesh::Clear()
{
	MeshLink
		*cursor = root;

	if ( autoClear != 0 && autoClear != -1 )
	{
		while ( cursor != NULL )
		{
			cursor = root->BaseGetMeshNext();
			delete root;
			root = cursor;
		}
	}
}
/*-----------------------------------------------------------------------------
Function	Clear
                                                                           
Description	Deletes all links from a mesh.

Input		-
Returns		-
-----------------------------------------------------------------------------*/
Function        Clear
Description     Deletes all links from a mesh.

Input
Returns
Function Clear Description Deletes all links from a mesh . Input Returns
void Mesh::Clear()
{
	MeshLink
		*cursor = root;
	if ( autoClear != 0 && autoClear != -1 )
	{
		while ( cursor != NULL )
		{
			cursor = root->BaseGetMeshNext();
			delete root;
			root = cursor;
		}
	}
}
void Mesh :: Clear ( ) { MeshLink * cursor = root ; if ( autoClear != 0 && autoClear != -1 ) { while ( cursor != NULL ) { cursor = root -> BaseGetMeshNext ( ) ; delete root ; root = cursor ; } } }
Function        Clear
Description     Deletes all links from a mesh.
Function Clear Description Deletes all links from a mesh .