CR2RE Pipeline Reference Manual 1.6.10
Functions
Hdrl_multiiter

Functions

hdrl_iter * hdrl_multiiter_new (intptr_t niters, hdrl_iter *iters[], hdrl_iter_flags flags)
 iterate over multiple iterators
 

Detailed Description

Function Documentation

◆ hdrl_multiiter_new()

hdrl_iter * hdrl_multiiter_new ( intptr_t  niters,
hdrl_iter *  iters[],
hdrl_iter_flags  flags 
)

iterate over multiple iterators

Parameters
nitersnumber of iterators
itersarray of iterators
flagsflags of iterator

Iterates over multiple iterators returning their results as an array of pointers of the same length as number of iterators. The length of all iterators must currently be equal unless the HDRL_ITER_ALLOW_EMPTY flag is set iterators. Then the iterator will return NULL for the exhausted iterator entries. The multiiter may have HDRL_ITER_OWNS_DATA set in which case it will delete the result values itself. To take ownership set the pointer in the multiiter result to NULL.

Definition at line 80 of file hdrl_multiiter.c.