Zephyr API Documentation  3.4.0
A Scalable Open Source RTOS
3.4.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sys_hashmap_iterator Struct Reference

Generic Hashmap iterator interface. More...

#include <hash_map_api.h>

Data Fields

const struct sys_hashmapmap
 
void(* next )(struct sys_hashmap_iterator *it)
 
void * state
 
uint64_t key
 
uint64_t value
 
const size_t size
 
size_t pos
 

Detailed Description

Generic Hashmap iterator interface.

Note
next should not be used without first checking sys_hashmap_iterator_has_next
Parameters
mapPointer to the associated Hashmap
nextModify the iterator in-place to point to the next Hashmap entry
stateImplementation-specific iterator state
keyKey associated with the current entry
valueValue associated with the current entry
sizeNumber of entries in the map
posNumber of entries already iterated

Field Documentation

◆ key

uint64_t sys_hashmap_iterator::key

◆ map

const struct sys_hashmap* sys_hashmap_iterator::map

◆ next

void(* sys_hashmap_iterator::next) (struct sys_hashmap_iterator *it)

◆ pos

size_t sys_hashmap_iterator::pos

◆ size

const size_t sys_hashmap_iterator::size

◆ state

void* sys_hashmap_iterator::state

◆ value

uint64_t sys_hashmap_iterator::value

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