Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
09001745
Commit
09001745
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- added operator() for setting a new value and accessing the BitField directly
parent
daa154cf
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDSegmentation/include/DDSegmentation/BitField64.h
+3
-0
3 additions, 0 deletions
DDSegmentation/include/DDSegmentation/BitField64.h
with
3 additions
and
0 deletions
DDSegmentation/include/DDSegmentation/BitField64.h
+
3
−
0
View file @
09001745
...
@@ -78,6 +78,9 @@ namespace DDSegmentation {
...
@@ -78,6 +78,9 @@ namespace DDSegmentation {
*/
*/
void
setValue
(
long64
value
)
{
_value
=
(
_joined
&
value
)
;
}
void
setValue
(
long64
value
)
{
_value
=
(
_joined
&
value
)
;
}
/** Operator for setting a new value and accessing the BitField directly */
BitField64
&
operator
()(
long64
val
)
{
setValue
(
val
)
;
return
*
this
;
}
/** Reset - same as setValue(0) - useful if the same encoder is used for many objects.
/** Reset - same as setValue(0) - useful if the same encoder is used for many objects.
*/
*/
void
reset
()
{
_value
=
0
;
}
void
reset
()
{
_value
=
0
;
}
...
...
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