OR-Tools  9.6
NonOrderedSetHasher< IntType >

Detailed Description

template<typename IntType>
class operations_research::bop::NonOrderedSetHasher< IntType >

Definition at line 208 of file bop_ls.h.

Public Member Functions

 NonOrderedSetHasher (absl::BitGenRef random)
 
void Initialize (int size)
 
void IgnoreElement (IntType e)
 
uint64_t Hash (const std::vector< IntType > &set) const
 
uint64_t Hash (IntType e) const
 
bool IsInitialized () const
 

Constructor & Destructor Documentation

◆ NonOrderedSetHasher()

NonOrderedSetHasher ( absl::BitGenRef  random)
inlineexplicit

Definition at line 210 of file bop_ls.h.

Member Function Documentation

◆ Hash() [1/2]

uint64_t Hash ( const std::vector< IntType > &  set) const
inline

Definition at line 227 of file bop_ls.h.

◆ Hash() [2/2]

uint64_t Hash ( IntType  e) const
inline

Definition at line 235 of file bop_ls.h.

◆ IgnoreElement()

void IgnoreElement ( IntType  e)
inline

Definition at line 222 of file bop_ls.h.

◆ Initialize()

void Initialize ( int  size)
inline

Definition at line 213 of file bop_ls.h.

◆ IsInitialized()

bool IsInitialized ( ) const
inline

Definition at line 238 of file bop_ls.h.


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