![]() | LGSPMatchesListMatch, MatchInterface Class |
Namespace: de.unika.ipd.grGen.lgsp
public class LGSPMatchesList<Match, MatchInterface> : IMatchesExact<MatchInterface>, IMatches, IEnumerable<IMatch>, IEnumerable where Match : new(), MatchListElement<Match>, MatchInterface where MatchInterface : IMatch
The LGSPMatchesListMatch, MatchInterface type exposes the following members.
Name | Description | |
---|---|---|
![]() | LGSPMatchesListMatch, MatchInterface(IAction) |
Constructs a new LGSPMatchesList instance.
|
![]() | LGSPMatchesListMatch, MatchInterface(LGSPMatchesListMatch, MatchInterface) | Initializes a new instance of the LGSPMatchesListMatch, MatchInterface class |
![]() | LGSPMatchesListMatch, MatchInterface(LGSPMatchesListMatch, MatchInterface, IDictionaryIGraphElement, IGraphElement) | Initializes a new instance of the LGSPMatchesListMatch, MatchInterface class |
![]() | LGSPMatchesListMatch, MatchInterface(LGSPMatchesListMatch, MatchInterface, IDictionaryIMatch, IMatch) | Initializes a new instance of the LGSPMatchesListMatch, MatchInterface class |
Name | Description | |
---|---|---|
![]() | Count |
The number of matches in this list.
|
![]() | First |
The first match of this list.
|
![]() | FirstExact |
Returns the first match of exact type (null if no match exists).
|
![]() | FirstImplementation |
Returns the first match of exact type (null if no match exists).
|
![]() | Item |
Returns the match with the given index.
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 LGSPMatchesList object
|
![]() | Root |
The root element of the list.
|
Name | Description | |
---|---|---|
![]() | Add |
adds a match object to the end of the list; only applicable if this is the match of an iteration, not an action
|
![]() | Clear |
remove all filled and committed elements from the list
|
![]() | 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
|
![]() | FilterExact_keepFirst |
For filtering with the auto-supplied filter keepFirst
|
![]() | FilterExact_keepFirstFraction |
For filtering with the auto-supplied filter keepFirstFraction
|
![]() | FilterExact_keepLast |
For filtering with the auto-supplied filter keepLast
|
![]() | FilterExact_keepLastFraction |
For filtering with the auto-supplied filter keepLastFraction
|
![]() | FilterExact_removeFirst |
For filtering with the auto-supplied filter removeFirst
|
![]() | FilterExact_removeFirstFraction |
For filtering with the auto-supplied filter removeFirstFraction
|
![]() | FilterExact_removeLast |
For filtering with the auto-supplied filter removeLast
|
![]() | FilterExact_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.
|
![]() | FromListExact |
Reincludes the array handed out with ToListExact, 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.
|
![]() | GetEnumerator |
Returns an enumerator over all found matches with inexact match interface type.
|
![]() | GetEnumeratorExact |
Returns an enumerator over all found matches with exact match interface type
|
![]() | 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.
|
![]() | GetMatchExact |
Returns the match of exact type with the given index. Invalid indices cause an exception.
This may be slow. If you want to iterate over the elements the MatchesExact IEnumerable should be used.
|
![]() | GetNextUnfilledPosition |
returns an empty match object from the matches list
to be filled by the matching action with the found nodes, edges and subpatterns.
unless PositionWasFilledFixIt is called you always get the same element
|
![]() | PositionWasFilledFixIt |
the match object returned by GetNextUnfilledPosition was filled,
now fix it within the list, so that the next call to GetNextUnfilledPosition returns a new element
|
![]() | RemoveFirst |
removes the first match object from the the list
|
![]() | RemoveMatch |
Removes the match at the given index and returns it.
|
![]() | RemoveMatchExact |
Removes the match of exact type 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 a copy of the content of the current matches list in form of an array.
Attention: matches may get stale when the rule is matched again.
This is only a convenience helper method, unrelated to ToList, and its pairing with FromList, as well as ToListExact, and its pairing with FromListExact.
|
![]() | ToListExact |
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).
|