C Container Collection (CCC)
Loading...
Searching...
No Matches
CCC_Bitset Struct Reference

#include <private_bitset.h>

Detailed Description

A Bitset is a contiguous array of fixed size integers. These aid in cache friendly storage and operations.

By default a bit set is initialized with size equal to capacity but the user may select to initialize a 0 sized bit set with non-zero capacity for pushing bits back dynamically.

Data Fields

unsigned * blocks
 
size_t count
 
size_t capacity
 
CCC_Allocatorallocate
 
void * context
 

Field Documentation

◆ allocate

CCC_Allocator* CCC_Bitset::allocate

The user provided allocation function for resizing, if any.

◆ blocks

unsigned* CCC_Bitset::blocks

The array of bit blocks, a platform defined standard bit width.

◆ capacity

size_t CCC_Bitset::capacity

The number of bits capable of being tracked in the bit block array.

◆ context

void* CCC_Bitset::context

Auxiliary data for resizing, if any.

◆ count

size_t CCC_Bitset::count

The number of active bits in the set available for reads and writes.


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