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

Automagic serialization #586

Merged
merged 35 commits into from
Jun 16, 2022
Merged

Automagic serialization #586

merged 35 commits into from
Jun 16, 2022

Conversation

alkino
Copy link
Member

@alkino alkino commented May 27, 2022

All types are supported

@alkino alkino force-pushed the start_serialize branch 2 times, most recently from 7660c4b to 7498eb8 Compare May 29, 2022 18:58
@alkino
Copy link
Member Author

alkino commented May 29, 2022

What are we doing with broadcast?
Write something of shape [3,1], read something of shape [1,3].

@codecov-commenter
Copy link

codecov-commenter commented Jun 10, 2022

Codecov Report

❗ No coverage uploaded for pull request base (master@f3ce0be). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #586   +/-   ##
=========================================
  Coverage          ?   79.34%           
=========================================
  Files             ?       65           
  Lines             ?     3534           
  Branches          ?        0           
=========================================
  Hits              ?     2804           
  Misses            ?      730           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f3ce0be...7c577dd. Read the comment docs.

include/highfive/bits/H5Attribute_misc.hpp Outdated Show resolved Hide resolved

static constexpr size_t ndim = 1;
static constexpr size_t recursive_ndim = ndim + inspector<value_type>::recursive_ndim;
static constexpr bool is_trivially_copyable = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

From the documentation I gather that this answers the question whether the inner type is trivially copyable? Don't you need the same thing as for std::vector<T>?

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't support recursivity with T*, I can try to add it

include/highfive/bits/H5Converter_misc.hpp Outdated Show resolved Hide resolved
Copy link
Collaborator

@1uc 1uc left a comment

Choose a reason for hiding this comment

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

Very nice PR.

@alkino alkino merged commit a794a4d into master Jun 16, 2022
@alkino alkino deleted the start_serialize branch June 16, 2022 15:18
@berquist berquist mentioned this pull request Jun 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants