Skip to content
Snippets Groups Projects
Commit 09001745 authored by Frank Gaede's avatar Frank Gaede
Browse files

- 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
...@@ -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 ; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment