We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 834ca85 commit 2365dd5Copy full SHA for 2365dd5
DataFormats/common/include/CommonDataFormat/AbstractRef.h
@@ -79,6 +79,7 @@ class AbstractRef
79
80
GPUdi() bool operator==(const AbstractRef& o) const { return getRawWOFlags() == o.getRawWOFlags(); }
81
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))); }
83
84
protected:
85
Base_t mRef = IdxMask | (SrcMask << NBIdx); // packed reference, dummy by default
0 commit comments