Skip to content

[tmva] Cleanup RModel classes layout#15170

Merged
vepadulano merged 3 commits intoroot-project:masterfrom
vepadulano:rmodel-remove-tobject
Apr 8, 2024
Merged

[tmva] Cleanup RModel classes layout#15170
vepadulano merged 3 commits intoroot-project:masterfrom
vepadulano:rmodel-remove-tobject

Conversation

@vepadulano
Copy link
Copy Markdown
Member

@vepadulano vepadulano commented Apr 8, 2024

As a followup to #15163 and in relation to #15156

  • Apply rule of five
  • Use correct ClassDef macro only when necessary
  • Remove relationship to TObject from RModel_Base
  • Properly implement virtual hierarchy for RModel_GNNBase and derived

Also apply clang-format changes in a separate commit

@vepadulano vepadulano self-assigned this Apr 8, 2024
@vepadulano vepadulano requested a review from lmoneta as a code owner April 8, 2024 12:20
@vepadulano vepadulano force-pushed the rmodel-remove-tobject branch from 9944fb0 to 42a440b Compare April 8, 2024 12:20
* Apply rule of five
* Use correct `ClassDef` macro only when necessary
* Remove relationship to `TObject` from `RModel_Base`
* Properly implement virtual hierarchy for `RModel_GNNBase` and derived
@vepadulano vepadulano force-pushed the rmodel-remove-tobject branch from 42a440b to 52ea8b0 Compare April 8, 2024 12:25
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2024

Test Results

    12 files      12 suites   2d 1h 8m 24s ⏱️
 2 609 tests  2 609 ✅ 0 💤 0 ❌
29 344 runs  29 344 ✅ 0 💤 0 ❌

Results for commit c0e7947.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Contributor

@guitargeek guitargeek left a comment

Choose a reason for hiding this comment

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

Thanks! These changes make sense to me and go in the right direction 👍

@vepadulano vepadulano merged commit 5895545 into root-project:master Apr 8, 2024
ClassDef(RModel_Base,1);

/**
Default constructor. Needed to allow serialization of ROOT objects. See
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Note if one need to have I/O without providing a default constructor, you can provide an alternate I/O constructor (you can even customize then name of the argument class if so desired).

class TRootIOCtor;  // forward declaration.
....
     RModel_Base(TRootIOCtor *) {}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants