udbEntityRefs

Description

Returns a temporary list of references for the specified entity. This is a convenience function that combines several common tasks. By using this function, you do not need to create lists of type UdbKindList.

Syntax

#include “udb/udb.h” 
int  udbEntityRefs(UdbEntity entity, 
                   char *refKindString, 
                   char *entKindString, 
                   int unique, 
                   UdbReference **refs) 

Arguments

Argument
Description
UdbEntity entity
Specify the entity
char *refKinds
Pass NULL or an unallocated reference kind string.
char *entKinds
Pass NULL or an unallocated entity kind string.
int unique
Set to 1 to return only the first matching reference to each unique entity. Set to 0 otherwise.
UdbReference **refs
Location to return list of references.

Return Values

Return Values
Description
int
Returns the length of the list of references.

See Also

udbLexemeReference

udbListReference

udbLookupEntityByReference

udbLookupReferenceExists

udbReferenceEntity


Scientific Toolworks, Inc.
http://www.scitools.com