This class provides methods for making inquires to the data of a group control loading during construction.

Synopsis

Declared in <bdlc_flathashtable_groupcontrol.h>

class FlatHashTable_GroupControl;

Type Aliases

Name

Description

Storage

Packed control‐byte storage type (SSE2 __m128i).

Member Functions

Name

Description

FlatHashTable_GroupControl [constructor]

Create a group control query object using the specified data. The bytes of data have no alignment requirement. The behavior is undefined unless data has at least k_SIZE bytes available.

available

Return a bit mask of the k_SIZE entries that are empty or erased. The bit at index i corresponds to the result for data[i].

inUse

Return a bit mask of the k_SIZE entries that are in use (i.e., not empty or erased). The bit at index i corresponds to the result for data[i].

match

Return a bit mask of the k_SIZE entries that have the specified value. The bit at index i corresponds to the result for data[i]. The behavior is undefined unless 0 == (0x80 & value).

neverFull

Return true if this group control was never full (i.e., has a value that is empty, but not erased).

Static Data Members

Name

Description

k_EMPTY

Control‐byte value meaning the slot is empty.

k_ERASED

Control‐byte value meaning the slot was erased.

k_SIZE

Number of control bytes in one group (sizeof(Storage)).

Created with MrDocs