QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
set_iter_s Struct Reference

Represent the state of a scan through a set. More...

Collaboration diagram for set_iter_s:
[legend]

Data Fields

unsigned element
 The result of set_first() or set_next(). More...
 
struct set_iter_snext
 private. for ALLOC More...
 
const set_tset
 the set to which this iterator belongs More...
 

Detailed Description

Represent the state of a scan through a set.

Very useful in for-loops:

set_iter_t *iter;
create_and_populate (set);
for (iter = set_first (set); iter; iter = set_next (iter))
do_something (iter->element);

Field Documentation

unsigned element

The result of set_first() or set_next().

set_next() will start at the following element.

Note
For inverted sets, indicates a non-member.
struct set_iter_s* next

private. for ALLOC

const set_t* set

the set to which this iterator belongs


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