libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
CMUTIL_Iterator Struct Reference

Iterator of collection members. More...

Data Fields

CMBool(* HasNext )(const CMUTIL_Iterator *iter)
 Check iterator has the next element.
 
void *(* Next )(CMUTIL_Iterator *iter)
 Get the next element from this iterator.
 
void(* Destroy )(CMUTIL_Iterator *iter)
 Destroy this iterator.
 

Detailed Description

Iterator of collection members.

Field Documentation

◆ HasNext

CMBool(* CMUTIL_Iterator::HasNext) (const CMUTIL_Iterator *iter)

Check iterator has the next element.

Parameters
iterThis iterator object.
Returns
CMTrue if this iterator has the next element. CMFalse if there are no more elements.

◆ Next

void *(* CMUTIL_Iterator::Next) (CMUTIL_Iterator *iter)

Get the next element from this iterator.

Parameters
iterThis iterator object.
Returns
Next element.

◆ Destroy

void(* CMUTIL_Iterator::Destroy) (CMUTIL_Iterator *iter)

Destroy this iterator.

This method must be called after using this iterator.

Parameters
iterThis iterator object.

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