Design Pattern Examples
Overview of object-oriented design patterns
ItemIterator Struct Reference

Represents an iterator that retrieves whole items. More...

#include <Iterator_Iterators.h>

Collaboration diagram for ItemIterator:
Collaboration graph

Public Attributes

ItemPair item
 The key/value pair pointed to by this iterator. item.key and item.value are NULL if Iterator_NextItem() has not yet been called or the end of the data has been reached.
 
size_t iterator
 The (opaque) iterator value tracking progress through the data.
 

Detailed Description

Represents an iterator that retrieves whole items.

Definition at line 27 of file Iterator_Iterators.h.

Member Data Documentation

◆ item

ItemPair item

The key/value pair pointed to by this iterator. item.key and item.value are NULL if Iterator_NextItem() has not yet been called or the end of the data has been reached.

Definition at line 34 of file Iterator_Iterators.h.

Referenced by Iterator_Exercise(), Iterator_GetItems(), and Iterator_NextItem().

◆ iterator

size_t iterator

The (opaque) iterator value tracking progress through the data.

Definition at line 39 of file Iterator_Iterators.h.

Referenced by Iterator_GetItems(), and Iterator_NextItem().


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