11 #ifndef ROOT_RConcurrentHashColl 12 #define ROOT_RConcurrentHashColl 29 mutable std::unique_ptr<ROOT::TRWSpinLock>
fRWLock;
50 bool Insert(
char *buf,
int len)
const;
63 return l[0] ==
r[0] &&
l[1] ==
r[1] && l[2] ==
r[2] && l[3] ==
r[3];
71 struct less<
ROOT::Internal::RConcurrentHashColl::HashValue> {
78 return l[0] <
r[0] ? true :
84 l[3] <
r[3] ? true :
false;
std::unique_ptr< ROOT::TRWSpinLock > fRWLock
Namespace for new ROOT classes and functions.
This class is a TS set of unsigned set.
friend std::ostream & operator<<(std::ostream &os, const RConcurrentHashColl::HashValue &h)
static HashValue Hash(char *buf, int len)
Return the hash object corresponding to the buffer.
bool operator==(const RConcurrentHashColl::HashValue &lhs, const RConcurrentHashColl::HashValue &rhs)
bool Find(const HashValue &hash) const
Return true if the hash is already in already there.
bool operator()(const ROOT::Internal::RConcurrentHashColl::HashValue &lhs, const ROOT::Internal::RConcurrentHashColl::HashValue &rhs) const
unsigned long long ULong64_t
bool Insert(char *buf, int len) const
If the hash is there, return false. Otherwise, insert the hash and return true;.
std::unique_ptr< RHashSet > fHashSet
ULong64_t const * Get() const