1 #ifndef __XRDSSIBVEC_HH__
2 #define __XRDSSIBVEC_HH__
39 inline void Set(uint32_t bval)
40 {
if (bval < 64) bitVec |= 1LL << bval;
41 else theSet.insert(bval);
44 inline bool IsSet(uint32_t bval)
45 {
if (bval < 64)
return bitVec & 1LL << bval;
46 std::set<uint32_t>::iterator it = theSet.find(bval);
47 return it != theSet.end();
50 inline void UnSet(uint32_t bval)
51 {
if (bval < 64) bitVec &= ~(1LL<<bval);
52 else theSet.erase(bval);
55 inline void Reset() {bitVec = 0; theSet.clear();}
63 std::set<uint32_t> theSet;
bool IsSet(uint32_t bval)
void UnSet(uint32_t bval)