CRoaring  4.2.1
Roaring bitmaps in C (and C++)
roaring_uint32_iterator_s Struct Reference

#include <roaring.h>

Public Attributes

const roaring_bitmap_tparent
 
const ROARING_CONTAINER_T * container
 
uint8_t typecode
 
int32_t container_index
 
uint32_t highbits
 
roaring_container_iterator_t container_it
 
uint32_t current_value
 
bool has_value
 

Detailed Description

What follows is code use to iterate through values in a roaring bitmap

roaring_bitmap_t *r =... roaring_uint32_iterator_t i; roaring_iterator_create(r, &i); while(i.has_value) { printf("value = %d\n", i.current_value); roaring_uint32_iterator_advance(&i); }

Obviously, if you modify the underlying bitmap, the iterator becomes invalid. So don't. A struct used to keep iterator state. Users should only access current_value and has_value, the rest of the type should be treated as opaque.

Definition at line 1016 of file roaring.h.

Member Data Documentation

◆ container

const ROARING_CONTAINER_T* roaring_uint32_iterator_s::container

Definition at line 1018 of file roaring.h.

◆ container_index

int32_t roaring_uint32_iterator_s::container_index

Definition at line 1020 of file roaring.h.

◆ container_it

roaring_container_iterator_t roaring_uint32_iterator_s::container_it

Definition at line 1022 of file roaring.h.

◆ current_value

uint32_t roaring_uint32_iterator_s::current_value

Definition at line 1024 of file roaring.h.

◆ has_value

bool roaring_uint32_iterator_s::has_value

Definition at line 1025 of file roaring.h.

◆ highbits

uint32_t roaring_uint32_iterator_s::highbits

Definition at line 1021 of file roaring.h.

◆ parent

const roaring_bitmap_t* roaring_uint32_iterator_s::parent

Definition at line 1017 of file roaring.h.

◆ typecode

uint8_t roaring_uint32_iterator_s::typecode

Definition at line 1019 of file roaring.h.


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