cppLookupVName
UseCase3
// COM1205 Propagation Pattern for DemDraw Project.
//
// Created by Tom Kneeland (tomk@ccs.neu.edu)
//
// This propagation pattern searches the list of Verticies for the
// Vertex with the name specified by the vertName parameter. When the
// Vertex object is found, a pointer to it is passed back to the calling
// routine.
*operation* Vertex* cppLookUpVName(DemIdent* vertName)
*traverse*
*from* Graph
*through* -> *,vertices,*
*to* Vertex
*wrapper* Vertex
(@
if (vertName->g_equal(this->get_vertexname()->get_name()))
return_val = this;
@)