IMatches Interface |
Namespace: de.unika.ipd.grGen.libGr
public interface IMatches : IEnumerable<IMatch>, IEnumerable
The IMatches type exposes the following members.
Name | Description | |
---|---|---|
Count |
The number of matches found by Producer
| |
First |
Returns the first match (null if no match exists).
| |
Producer |
The action object used to generate this IMatches object
|
Name | Description | |
---|---|---|
Clone |
Clone the matches
| |
Clone(IDictionaryIMatch, IMatch) |
Clones the matches.
| |
Filter_keepFirst |
For filtering with the auto-supplied filter keepFirst
| |
Filter_keepFirstFraction |
For filtering with the auto-supplied filter keepFirstFraction
| |
Filter_keepLast |
For filtering with the auto-supplied filter keepLast
| |
Filter_keepLastFraction |
For filtering with the auto-supplied filter keepLastFraction
| |
Filter_removeFirst |
For filtering with the auto-supplied filter removeFirst
| |
Filter_removeFirstFraction |
For filtering with the auto-supplied filter removeFirstFraction
| |
Filter_removeLast |
For filtering with the auto-supplied filter removeLast
| |
Filter_removeLastFraction |
For filtering with the auto-supplied filter removeLastFraction
| |
FromList |
Reincludes the array handed out with ToList, REPLACING the current matches with the ones from the list.
The list might have been reordered, matches might have been removed, or even added.
Elements which were null-ed count as deleted; this gives an O(1) mechanism to remove from the array.
| |
GetMatch |
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.
| |
RemoveMatch |
Removes the match at the given index and returns it.
| |
RemoveUnavailable | ||
ToList |
Returns the content of the current matches list in form of an array which can be efficiently indexed and reordered.
The array is destroyed when this method is called again, the content is destroyed when the rule is matched again (there is only one array existing).
| |
ToListCopy |
Returns the content of the current matches list in form of an array.
The content is destroyed when the rule is matched again (the list itself is a newly created copy).
|