Skip to content

Commit 2365dd5

Browse files
committed
Add clear method to AbstractRef
1 parent 834ca85 commit 2365dd5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

DataFormats/common/include/CommonDataFormat/AbstractRef.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ class AbstractRef
7979

8080
GPUdi() bool operator==(const AbstractRef& o) const { return getRawWOFlags() == o.getRawWOFlags(); }
8181
GPUdi() bool operator!=(const AbstractRef& o) const { return !operator==(o); }
82+
GPUdi() void clear() { setRaw((Base_t(SrcMask & ((0x1 << NBSrc) - 1)) << NBIdx) | Base_t(IdxMask & ((0x1 << NBIdx) - 1))); }
8283

8384
protected:
8485
Base_t mRef = IdxMask | (SrcMask << NBIdx); // packed reference, dummy by default

0 commit comments

Comments
 (0)