ucx
UAP Common Extensions
Loading...
Searching...
No Matches
cx_iterator_base_s Struct Reference

Common data for all iterators. More...

#include <iterator.h>

Data Fields

bool(* valid )(const void *)
 True if the iterator points to valid data.
 
bool(* valid_impl )(const void *)
 Original implementation in case the function needs to be wrapped.
 
void *(* current )(const void *)
 Returns a pointer to the current element.
 
void *(* current_impl )(const void *)
 Original implementation in case the function needs to be wrapped.
 
void(* next )(void *)
 Advances the iterator.
 
void(* next_impl )(void *)
 Original implementation in case the function needs to be wrapped.
 
bool allow_remove
 Indicates whether this iterator may remove elements.
 
bool remove
 Internal flag for removing the current element when advancing.
 

Detailed Description

Common data for all iterators.

Field Documentation

◆ current

void *(* cx_iterator_base_s::current) (const void *)

Returns a pointer to the current element.

When valid returns false, the behavior of this function is undefined.

◆ next

void(* cx_iterator_base_s::next) (void *)

Advances the iterator.

When valid returns false, the behavior of this function is undefined.


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