list_filter


Description:

public static List<ElementFactory> list_filter (List<ElementFactory> list, Caps caps, PadDirection direction, bool subsetonly)

Filter out all the elementfactories in list that can handle caps in the given direction.

If subsetonly is true, then only the elements whose pads templates are a complete superset of caps will be returned. Else any element whose pad templates caps can intersect with caps will be returned.

Parameters:

list

a List of ElementFactory to filter

caps

a Caps

direction

a PadDirection to filter on

subsetonly

whether to filter on caps subsets or not.

Returns:

a List of ElementFactory elements that match the given requisites. Use list_free after usage.




2022 vala-language.org