BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlc::FlatHashTable_GroupControl Class Reference

#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)
 

Detailed Description

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

Member Typedef Documentation

◆ Storage

Constructor & Destructor Documentation

◆ FlatHashTable_GroupControl()

bdlc::FlatHashTable_GroupControl::FlatHashTable_GroupControl ( const bsl::uint8_t *  data)
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.

◆ ~FlatHashTable_GroupControl()

bdlc::FlatHashTable_GroupControl::~FlatHashTable_GroupControl ( )
default

Member Function Documentation

◆ available()

bsl::uint32_t bdlc::FlatHashTable_GroupControl::available ( ) const
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].

◆ inUse()

bsl::uint32_t bdlc::FlatHashTable_GroupControl::inUse ( ) const
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].

◆ match()

bsl::uint32_t bdlc::FlatHashTable_GroupControl::match ( bsl::uint8_t  value) const
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).

◆ neverFull()

bool bdlc::FlatHashTable_GroupControl::neverFull ( ) const
inline

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

Member Data Documentation

◆ k_EMPTY

const bsl::uint8_t bdlc::FlatHashTable_GroupControl::k_EMPTY = 0x80
static

◆ k_ERASED

const bsl::uint8_t bdlc::FlatHashTable_GroupControl::k_ERASED = 0xC0
static

◆ k_SIZE

const bsl::size_t bdlc::FlatHashTable_GroupControl::k_SIZE = sizeof(Storage)
static

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