Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ContextProcessor refactoring #2220

Merged

Conversation

johnhaddon
Copy link
Member

This tidies things up a little, and moves us closer to being able to remove the deprecated Ownership argument from the Context copy constructor. Once we can do that, we can look at optimising Context::EditableScope further.

This just calls the existing `removeMatching()` method on the underlying Context. Also fixed comment.
This allows us to stop using the deprecated Context::Borrowed constructor.

Breaking Changes :

- ContextProcessor : Changed signature of `processContext()`.
This simplifies derived class implementations. In general I'm trying to move towards this pattern for all DependencyNode subclasses, rather than having everything reimplement the base class `affects()` method directly.

Breaking Changes :

- ContextProcessor : Added `affectsContext()` pure virtual method.
@andrewkaufman andrewkaufman merged commit 061bae6 into GafferHQ:master Aug 9, 2017
@johnhaddon johnhaddon deleted the contextProcessorRefactoring branch August 10, 2017 08:47
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.

None yet

2 participants