-
Notifications
You must be signed in to change notification settings - Fork 21
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
DM-19575: Add Storable mixin to ExposureInfo components #465
Merged
Commits on Jun 7, 2019
-
Configuration menu - View commit details
-
Copy full SHA for a8b3a88 - Browse repository at this point
Copy the full SHA a8b3a88View commit details -
Remove pybind11 wrappers for Storable.
Wrapping Storable's optional methods leads to a confusing Python API. In practice, any subclass of Storable that is, for example, printable or hashable will provide its own wrappers for those operations anyway.
Configuration menu - View commit details
-
Copy full SHA for 8a7f6df - Browse repository at this point
Copy the full SHA 8a7f6dfView commit details -
Clarify importance of Storable::clone.
Non-cloneable Storables cannot be used (practically) with PolymorphicValue, and therefore with Key<T extends Storable>.
Configuration menu - View commit details
-
Copy full SHA for c7137e6 - Browse repository at this point
Copy the full SHA c7137e6View commit details -
The requirement to return a smart pointer to Storable made it difficult to use Storable as a mixin for classes that already have a clone method. Renaming the method minimizes the number of times that cloneStorable must be implemented (typically only in the direct subclass of Storable).
Configuration menu - View commit details
-
Copy full SHA for 0bdc0b8 - Browse repository at this point
Copy the full SHA 0bdc0b8View commit details -
Make Storable::cloneStorable return shared_ptr.
While unique_ptr is a better return type for a factory method, a unique_ptr return cannot be implemented in terms of a shared_ptr return (though the reverse is true), and our existing classes cannot be modified to clone by unique_ptr without running into a pybind11 bug. At present it looks like the pybind11 team is leaning towards forbidding such code rather than supporting unique_ptr to shared_ptr conversion.
Configuration menu - View commit details
-
Copy full SHA for 9d41e64 - Browse repository at this point
Copy the full SHA 9d41e64View commit details -
Equals was returning `false` for comparisons to self.
Configuration menu - View commit details
-
Copy full SHA for d42ffac - Browse repository at this point
Copy the full SHA d42ffacView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6c3e0ca - Browse repository at this point
Copy the full SHA 6c3e0caView commit details -
Add helper template for implementing Storable::equals.
The template handles the most common behavior, where an object of a class implementing Storable is comparable to other objects of the same class, but should always be unequal to other Storables.
Configuration menu - View commit details
-
Copy full SHA for 2a83ed1 - Browse repository at this point
Copy the full SHA 2a83ed1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62b4da7 - Browse repository at this point
Copy the full SHA 62b4da7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 11968e2 - Browse repository at this point
Copy the full SHA 11968e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for dcef0e7 - Browse repository at this point
Copy the full SHA dcef0e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e95d7f0 - Browse repository at this point
Copy the full SHA e95d7f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1b371b - Browse repository at this point
Copy the full SHA a1b371bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7ed9bf6 - Browse repository at this point
Copy the full SHA 7ed9bf6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 24e3978 - Browse repository at this point
Copy the full SHA 24e3978View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4423e2 - Browse repository at this point
Copy the full SHA b4423e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bd1e83 - Browse repository at this point
Copy the full SHA 4bd1e83View commit details -
Configuration menu - View commit details
-
Copy full SHA for dadb992 - Browse repository at this point
Copy the full SHA dadb992View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6795017 - Browse repository at this point
Copy the full SHA 6795017View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6b608f - Browse repository at this point
Copy the full SHA f6b608fView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.