Click or drag to resize

LGSPMatchesListMatch, MatchInterface Methods

The LGSPMatchesListMatch, MatchInterface generic type exposes the following members.

Methods
  NameDescription
Public methodAdd
adds a match object to the end of the list; only applicable if this is the match of an iteration, not an action
Public methodClear
remove all filled and committed elements from the list
Public methodClone
Clone the matches
Public methodClone(IDictionaryIMatch, IMatch)
Clones the matches.
Public methodFilter_keepFirst
For filtering with the auto-supplied filter keepFirst
Public methodFilter_keepFirstFraction
For filtering with the auto-supplied filter keepFirstFraction
Public methodFilter_keepLast
For filtering with the auto-supplied filter keepLast
Public methodFilter_keepLastFraction
For filtering with the auto-supplied filter keepLastFraction
Public methodFilter_removeFirst
For filtering with the auto-supplied filter removeFirst
Public methodFilter_removeFirstFraction
For filtering with the auto-supplied filter removeFirstFraction
Public methodFilter_removeLast
For filtering with the auto-supplied filter removeLast
Public methodFilter_removeLastFraction
For filtering with the auto-supplied filter removeLastFraction
Public methodFilterExact_keepFirst
For filtering with the auto-supplied filter keepFirst
Public methodFilterExact_keepFirstFraction
For filtering with the auto-supplied filter keepFirstFraction
Public methodFilterExact_keepLast
For filtering with the auto-supplied filter keepLast
Public methodFilterExact_keepLastFraction
For filtering with the auto-supplied filter keepLastFraction
Public methodFilterExact_removeFirst
For filtering with the auto-supplied filter removeFirst
Public methodFilterExact_removeFirstFraction
For filtering with the auto-supplied filter removeFirstFraction
Public methodFilterExact_removeLast
For filtering with the auto-supplied filter removeLast
Public methodFilterExact_removeLastFraction
For filtering with the auto-supplied filter removeLastFraction
Public methodFromList
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.
Public methodFromListExact
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.
Public methodGetEnumerator
Returns an enumerator over all found matches with inexact match interface type.
Public methodGetEnumeratorExact
Returns an enumerator over all found matches with exact match interface type
Public methodGetMatch
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.
Public methodGetMatchExact
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.
Public methodGetNextUnfilledPosition
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
Public methodPositionWasFilledFixIt
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
Public methodRemoveFirst
removes the first match object from the the list
Public methodRemoveMatch
Removes the match at the given index and returns it.
Public methodRemoveMatchExact
Removes the match of exact type at the given index and returns it.
Public methodRemoveUnavailable
Public methodToList
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).
Public methodToListCopy
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.
Public methodToListExact
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).
Top
See Also