C API Functions |
Filter the specified list of entities, using the kinds specified, and return a new, allocated, array. Use udbListEntityFree() to free this list.
The original list is automatically freed, so the most common usage of this call is to specify the same entity list for both the input and output entity lists. For example:
udbListEntityFilter(myEnts, kinds, &myEnts, &myEntsSize);
#include "udb/udb.h" void udbListEntityFilter(UdbEntity *ents, UdbKindList kinds, UdbEntity **newents, int *items)
There are no function return values.
udbListEntity(&list, NULL); udbKindList ("function", &kinds ); /* filter entity list to only specified kinds */ udbListEntityFilter(list, kinds, &funclist, &size); ... udbListEntityFree(funclist);
udbListEntity to get the entity list of all entities
udbListEntityFree to free entity list
Scientific Toolworks, Inc. http://www.scitools.com Voice: (802) 763-2995 Fax: (802) 763-3066 support@scitools.com sales@scitools.com |