Skip to content

PathMatcher : Add in and containing - #1550

Open
murraystevenson wants to merge 1 commit into
ImageEngine:RB-10.7from
murraystevenson:pathMatcherInAndContaining
Open

PathMatcher : Add in and containing#1550
murraystevenson wants to merge 1 commit into
ImageEngine:RB-10.7from
murraystevenson:pathMatcherInAndContaining

Conversation

@murraystevenson

Copy link
Copy Markdown
Collaborator

These provide PathMatcher with equivalent behaviour to Gaffer's in and containing set expression operators.

This implementation of containing() is based on PathMatcher::intersection()'s existing find()-based approach, rather than Gaffer::SetExpressionAlgo's .match() & ( PathMatcher::ExactMatch | PathMatcher::DescendantMatch ).

Main quandary is what to name PathMatcher::in() as in is reserved in Python. For now, I've bound it to in_() as a placeholder for discussion. pathsIn()? commonDescendants() ? somethingBetterThatIHaventYetThoughtOf()?

These provide PathMatcher with equivalent behaviour to Gaffer's `in` and `containing` set expression operators.

This implementation of `containing()` is based on `PathMatcher::intersection()`'s existing `find()`-based approach, rather than Gaffer::SetExpressionAlgo's `.match() & ( PathMatcher::ExactMatch | PathMatcher::DescendantMatch )`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant