proxygen
HashTraits Struct Reference

Public Member Functions

size_t operator() (char *a)
 
size_t operator() (const char &a)
 
size_t operator() (const StringPiece a)
 
size_t operator() (const char *a)
 
size_t operator() (const char &a)
 
size_t operator() (const StringPiece a)
 

Detailed Description

Definition at line 346 of file AtomicHashArrayTest.cpp.

Member Function Documentation

size_t HashTraits::operator() ( const char *  a)
inline

Definition at line 134 of file AtomicHashMapTest.cpp.

134  {
135  size_t result = 0;
136  while (a[0] != 0) {
137  result += static_cast<size_t>(*(a++));
138  }
139  return result;
140  }
char a
size_t HashTraits::operator() ( const char &  a)
inline

Definition at line 141 of file AtomicHashMapTest.cpp.

References a.

141  {
142  return static_cast<size_t>(a);
143  }
char a
size_t HashTraits::operator() ( const StringPiece  a)
inline

Definition at line 144 of file AtomicHashMapTest.cpp.

References ch.

144  {
145  size_t result = 0;
146  for (const auto& ch : a) {
147  result += static_cast<size_t>(ch);
148  }
149  return result;
150  }
auto ch
char a
size_t HashTraits::operator() ( char *  a)
inline

Definition at line 347 of file AtomicHashArrayTest.cpp.

347  {
348  size_t result = 0;
349  while (a[0] != 0) {
350  result += static_cast<size_t>(*(a++));
351  }
352  return result;
353  }
char a
size_t HashTraits::operator() ( const char &  a)
inline

Definition at line 354 of file AtomicHashArrayTest.cpp.

References a.

354  {
355  return static_cast<size_t>(a);
356  }
char a
size_t HashTraits::operator() ( const StringPiece  a)
inline

Definition at line 357 of file AtomicHashArrayTest.cpp.

References ch.

357  {
358  size_t result = 0;
359  for (const auto& ch : a) {
360  result += static_cast<size_t>(ch);
361  }
362  return result;
363  }
auto ch

The documentation for this struct was generated from the following files: