XRootD
XrdSsiBVec Class Reference

#include <XrdSsiBVec.hh>

+ Collaboration diagram for XrdSsiBVec:

Public Member Functions

 XrdSsiBVec ()
 
 ~XrdSsiBVec ()
 
bool IsSet (uint32_t bval)
 
void Reset ()
 
void Set (uint32_t bval)
 
void UnSet (uint32_t bval)
 

Detailed Description

Definition at line 35 of file XrdSsiBVec.hh.

Constructor & Destructor Documentation

◆ XrdSsiBVec()

XrdSsiBVec::XrdSsiBVec ( )
inline

Definition at line 57 of file XrdSsiBVec.hh.

57 : bitVec(0) {}

◆ ~XrdSsiBVec()

XrdSsiBVec::~XrdSsiBVec ( )
inline

Definition at line 58 of file XrdSsiBVec.hh.

58 {}

Member Function Documentation

◆ IsSet()

bool XrdSsiBVec::IsSet ( uint32_t  bval)
inline

Definition at line 44 of file XrdSsiBVec.hh.

45  {if (bval < 64) return bitVec & 1LL << bval;
46  std::set<uint32_t>::iterator it = theSet.find(bval);
47  return it != theSet.end();
48  }

◆ Reset()

void XrdSsiBVec::Reset ( )
inline

Definition at line 55 of file XrdSsiBVec.hh.

55 {bitVec = 0; theSet.clear();}

◆ Set()

void XrdSsiBVec::Set ( uint32_t  bval)
inline

Definition at line 39 of file XrdSsiBVec.hh.

40  {if (bval < 64) bitVec |= 1LL << bval;
41  else theSet.insert(bval);
42  }

◆ UnSet()

void XrdSsiBVec::UnSet ( uint32_t  bval)
inline

Definition at line 50 of file XrdSsiBVec.hh.

51  {if (bval < 64) bitVec &= ~(1LL<<bval);
52  else theSet.erase(bval);
53  }

The documentation for this class was generated from the following file: