souffle  2.0.2-371-g6315b36
Public Member Functions
souffle::ram::analysis::SearchSignature::Hasher Class Reference

#include <Index.h>

Collaboration diagram for souffle::ram::analysis::SearchSignature::Hasher:
Collaboration graph

Public Member Functions

size_t operator() (const SearchSignature &searchSignature) const
 

Detailed Description

Definition at line 78 of file Index.h.

Member Function Documentation

◆ operator()()

size_t souffle::ram::analysis::SearchSignature::Hasher::operator() ( const SearchSignature searchSignature) const
inline

Definition at line 80 of file Index.h.

80  {
81  std::size_t seed = searchSignature.arity();
82  for (auto& constraint : searchSignature.constraints) {
83  seed ^= static_cast<size_t>(constraint) + 0x9e3779b9 + (seed << 6) + (seed >> 2);
84  }
85  return seed;
86  }

References souffle::ram::analysis::SearchSignature::arity(), and souffle::ram::analysis::SearchSignature::constraints.

Here is the call graph for this function:

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