Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Project Juggler
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
Container registry
Model registry
Operate
Environments
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
Show more breadcrumbs
EIC
Project Juggler
Commits
fa539623
Commit
fa539623
authored
3 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
gaudi@36.5 has no more DataObjectHandle::setRead
parent
713ccfbc
No related branches found
No related tags found
1 merge request
!417
gaudi@36.5 has no more DataObjectHandle::setRead
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
JugBase/JugBase/DataHandle.h
+0
-2
0 additions, 2 deletions
JugBase/JugBase/DataHandle.h
with
0 additions
and
2 deletions
JugBase/JugBase/DataHandle.h
+
0
−
2
View file @
fa539623
...
...
@@ -149,13 +149,11 @@ const T* DataHandle<T>::get() {
}
}
if
(
LIKELY
(
m_isGoodType
))
{
DataObjectHandle
<
DataWrapper
<
T
>>::
setRead
();
return
static_cast
<
DataWrapper
<
T
>*>
(
dataObjectp
)
->
getData
();
}
else
if
(
m_isCollection
)
{
// The reader does not know the specific type of the collection. So we need a reinterpret_cast if the handle was
// created by the reader.
DataWrapper
<
podio
::
CollectionBase
>*
tmp
=
static_cast
<
DataWrapper
<
podio
::
CollectionBase
>*>
(
dataObjectp
);
DataObjectHandle
<
DataWrapper
<
T
>>::
setRead
();
return
reinterpret_cast
<
const
T
*>
(
tmp
->
collectionBase
());
}
else
{
std
::
string
errorMsg
(
"The type provided for "
+
DataObjectHandle
<
DataWrapper
<
T
>>::
pythonRepr
()
+
...
...
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