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

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

#include <Iterator_Iterators.h>

Collaboration diagram for ValueIterator:
Collaboration graph

Public Attributes

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

Definition at line 64 of file Iterator_Iterators.h.

Member Data Documentation

◆ iterator

size_t iterator

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

Definition at line 76 of file Iterator_Iterators.h.

Referenced by Iterator_GetValues(), and Iterator_NextValue().

◆ value

const char* value

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

Definition at line 71 of file Iterator_Iterators.h.

Referenced by Iterator_Exercise(), Iterator_GetValues(), and Iterator_NextValue().


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