ucx
UAP Common Extensions
Loading...
Searching...
No Matches
Data Fields
cx_iterator_s Struct Reference

Internal iterator struct - use CxIterator. More...

#include <iterator.h>

Data Fields

struct cx_iterator_base_s base
 The base properties of this iterator.
 
void * elem_handle
 Handle for the current element, if required.
 
void const * src_handle
 Handle for the source collection, if any.
 
struct {
   void const *   key
 A pointer to the key.
 
   void *   value
 A pointer to the value.
 
kv_data
 Field for storing a key-value pair.
 
size_t slot
 Field for storing a slot number.
 
size_t index
 If the iterator is position-aware, contains the index of the element in the underlying collection.
 

Detailed Description

Internal iterator struct - use CxIterator.

Field Documentation

◆ index

size_t cx_iterator_s::index

If the iterator is position-aware, contains the index of the element in the underlying collection.

Otherwise, this field is usually uninitialized.

◆ 

struct { ... } cx_iterator_s::kv_data

Field for storing a key-value pair.

May be used by iterators that iterate over k/v-collections.

◆ slot

size_t cx_iterator_s::slot

Field for storing a slot number.

May be used by iterators that iterate over multi-bucket collections.


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