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

MAINT: Move sparsehash code to library_wrappers/sparsehash #174

Merged
merged 8 commits into from
Jul 2, 2020

Conversation

gerrymanoim
Copy link
Contributor

@gerrymanoim gerrymanoim commented Jun 30, 2020

First step in #172.

Also good example for how to create a wrapper for libpy.

TODO: Once agreed, README, etc.

Copy link
Contributor

@llllllllll llllllllll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We currently have wrappers in the py namespace for sparsehash which change the constructor of sparsehash to ensure that the empty key is passed for dense hash map. Only these subclasses are adapted. I think it is fine to leave these helper types; however, we should add (to|from)_object converters for the base sparsehash types.

tests/library_wrappers/test_sparsehash.cc Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
include/libpy/library_wrappers/sparsehash.h Show resolved Hide resolved
tests/library_wrappers/test_sparsehash.cc Outdated Show resolved Hide resolved
tests/test_utils.h Outdated Show resolved Hide resolved
tests/test_utils.h Outdated Show resolved Hide resolved
tests/test_to_object.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@llllllllll llllllllll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can kill two comments but otherwise LGTM

@gerrymanoim gerrymanoim merged commit 9182490 into master Jul 2, 2020
@gerrymanoim gerrymanoim deleted the wrappers branch July 2, 2020 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants