Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
78fca0b7
Commit
78fca0b7
authored
6 years ago
by
Danilo Piparo
Browse files
Options
Downloads
Patches
Plain Diff
[DF][ROOT-9785] RResultPtr<Type_t> can hold results of type IsConvertibleToType_t
parent
3b58538e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tree/dataframe/inc/ROOT/RResultPtr.hxx
+12
-0
12 additions, 0 deletions
tree/dataframe/inc/ROOT/RResultPtr.hxx
with
12 additions
and
0 deletions
tree/dataframe/inc/ROOT/RResultPtr.hxx
+
12
−
0
View file @
78fca0b7
...
...
@@ -74,6 +74,9 @@ class RResultPtr {
using
SPT_t
=
std
::
shared_ptr
<
T
>
;
// friend declarations
template
<
typename
T1
>
friend
class
RResultPtr
;
template
<
typename
T1
>
friend
RResultPtr
<
T1
>
RDFDetail
::
MakeResultPtr
(
const
std
::
shared_ptr
<
T1
>
&
,
::
ROOT
::
Detail
::
RDF
::
RLoopManager
&
,
std
::
shared_ptr
<
RDFInternal
::
RActionBase
>
);
...
...
@@ -145,6 +148,15 @@ public:
RResultPtr
&
operator
=
(
const
RResultPtr
&
)
=
default
;
RResultPtr
&
operator
=
(
RResultPtr
&&
)
=
default
;
explicit
operator
bool
()
const
{
return
bool
(
fObjPtr
);
}
template
<
typename
TO
,
typename
std
::
enable_if
<
std
::
is_convertible
<
T
,
TO
>
::
value
,
int
>::
type
=
0
>
operator
RResultPtr
<
TO
>
()
const
{
RResultPtr
<
TO
>
rp
;
rp
.
fLoopManager
=
fLoopManager
;
rp
.
fObjPtr
=
fObjPtr
;
rp
.
fActionPtr
=
fActionPtr
;
return
rp
;
}
/// Get a const reference to the encapsulated object.
/// Triggers event loop and execution of all actions booked in the associated RLoopManager.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment