-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ntuple] Clean up utility definitions #17359
base: master
Are you sure you want to change the base?
Conversation
d2d61ea
to
8f0cb39
Compare
Test Results 17 files 17 suites 3d 20h 51m 17s ⏱️ For more details on these failures, see this check. Results for commit 0dff097. ♻️ This comment has been updated with latest results. |
94af528
to
cfc6ab2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally LGTM, but some comments especially regarding NBytesOnDisk
. Not sure if giving up abstraction is an improvement...
/// TODO(jblomer): consider moving this to `RNTupleDescriptor` | ||
struct RNTupleLocator { | ||
class RNTupleLocator { | ||
public: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, what's the advantage of a class
if we have getters and setters without further checks? Looking at the changes in this commit, a struct
feels more ergonomic...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's to be more resilient to future changes. Maybe we want to rename a member, or add a check (e.g., if the type used in fPosition
fits the locator type).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. There is still a forward declaration of struct RNTupleLocator;
in RPageStorageFile.hxx
that is now causing warnings...
cfc6ab2
to
f12814c
Compare
f12814c
to
75be5ac
Compare
/// TODO(jblomer): consider moving this to `RNTupleDescriptor` | ||
struct RNTupleLocator { | ||
class RNTupleLocator { | ||
public: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. There is still a forward declaration of struct RNTupleLocator;
in RPageStorageFile.hxx
that is now causing warnings...
75be5ac
to
0dff097
Compare
Preparation to move the common definitions from RNTupleUtil.h out of the experimental namespace. Some definitions are removed or moved to
ROOT::Internal
. Some API improvements for the remaining public types.Part of the PR series to move an initial set of RNTuple APIs out of the experimental namespace.