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

Represents an iterator that retrieves the key of each item. More...

#include <Iterator_Iterators.h>

Collaboration diagram for KeyIterator:
Collaboration graph

Public Attributes

const char * key
 The key pointed to by this iterator. key is NULL if Iterator_NextKey() 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 the key of each item.

Definition at line 45 of file Iterator_Iterators.h.

Member Data Documentation

◆ iterator

size_t iterator

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

Definition at line 57 of file Iterator_Iterators.h.

Referenced by Iterator_GetKeys(), and Iterator_NextKey().

◆ key

const char* key

The key pointed to by this iterator. key is NULL if Iterator_NextKey() has not yet been called or the end of the data has been reached.

Definition at line 52 of file Iterator_Iterators.h.

Referenced by Iterator_Exercise(), Iterator_GetKeys(), and Iterator_NextKey().


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