Loading...
Searching...
No Matches
TfCompressedBits::FastHash Struct Reference

A hash functor for TfCompressedBits that is faster than Hash. More...

#include <compressedBits.h>

Public Member Functions

size_t operator() (const TfCompressedBits &bits) const
 

Detailed Description

A hash functor for TfCompressedBits that is faster than Hash.

This hash can be computed in constant time because it only uses a fixed subset of data: the number of bits in total, the running bit, the number of words and the first cache line of words.

Definition at line 295 of file compressedBits.h.

Member Function Documentation

◆ operator()()

size_t operator() ( const TfCompressedBits bits) const
inline

Definition at line 296 of file compressedBits.h.


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