GrGen.NET v4.4 API: the libGr class library (the type exact interface gets generated)
IMatches Interface
An object representing a (possibly empty) set of matches in a graph before the rewrite has been applied. If it is a match of an action, it is returned by IAction.Match() and given to the OnMatched event. Otherwise it's the match of an iterated-pattern, and the producing action is null.
Declaration Syntax
C#
public interface IMatches : IEnumerable<IMatch>, 
	IEnumerable
Members
All MembersMethodsProperties



IconMemberDescription
Clone()()()()
Clone the matches

Count
The number of matches found by Producer

FilterKeepFirst(Int32)
For filtering with the auto-supplied filter keepFirst

FilterKeepFirstFraction(Double)
For filtering with the auto-supplied filter keepFirstFraction

FilterKeepLast(Int32)
For filtering with the auto-supplied filter keepLast

FilterKeepLastFraction(Double)
For filtering with the auto-supplied filter keepLastFraction

FilterRemoveFirst(Int32)
For filtering with the auto-supplied filter removeFirst

FilterRemoveFirstFraction(Double)
For filtering with the auto-supplied filter removeFirstFraction

FilterRemoveLast(Int32)
For filtering with the auto-supplied filter removeLast

FilterRemoveLastFraction(Double)
For filtering with the auto-supplied filter removeLastFraction

First
Returns the first match (null if no match exists).

GetMatch(Int32)
Returns the match with the given index. Invalid indices cause an exception. This may be slow. If you want to iterate over the elements the Matches IEnumerable should be used.

Producer
The action object used to generate this IMatches object

RemoveMatch(Int32)
Removes the match at the given index and returns it.

Assembly: libGr (Module: libGr) Version: 4.4.0.0 (4.4.0.0)