BDE 4.14.0 Production release
|
#include <bdlc_flathashtable_groupcontrol.h>
Public Types | |
typedef bsl::uint64_t | Storage |
Public Member Functions | |
FlatHashTable_GroupControl (const bsl::uint8_t *data) | |
~FlatHashTable_GroupControl ()=default | |
bsl::uint32_t | available () const |
bsl::uint32_t | inUse () const |
bsl::uint32_t | match (bsl::uint8_t value) const |
bool | neverFull () const |
Static Public Attributes | |
static const bsl::uint8_t | k_EMPTY = 0x80 |
static const bsl::uint8_t | k_ERASED = 0xC0 |
static const bsl::size_t | k_SIZE = sizeof(Storage) |
This class provides methods for making inquires to the data of a group control loading during construction.
typedef bsl::uint64_t bdlc::FlatHashTable_GroupControl::Storage |
|
inlineexplicit |
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.
|
default |
|
inline |
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]
.
|
inline |
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]
.
|
inline |
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)
.
|
inline |
Return true
if this group control was never full (i.e., has a value that is empty, but not erased).
|
static |
|
static |
|
static |