Design Pattern Examples
Overview of object-oriented design patterns
iterator_class.py File Reference

Implementation of the IteratorContainer_Class class, the IIterator interface, along with the implementations of the Iterator and ItemPair classes as used in the Iterator Pattern. More...

Go to the source code of this file.

Classes

class  ItemPair
 Represents a key/value pair where the key and value are strings. More...
 
class  IIterator
 Represents an iterator for some type. More...
 
class  Iterator
 Represents an iterator for a container by implementing the IIterator interface. More...
 
class  IteratorContainer_Class
 Represents a container that offers up two kinds of iterators for the hardcoded contents, ItemPair and string. More...
 

Namespaces

namespace  DesignPatternExamples_python
 The DesignPatternExamples_python package, containing 20 examples of design patterns, each in their own namespace.
 
namespace  DesignPatternExamples_python.iterator
 
namespace  DesignPatternExamples_python.iterator.iterator_class
 

Detailed Description

Implementation of the IteratorContainer_Class class, the IIterator interface, along with the implementations of the Iterator and ItemPair classes as used in the Iterator Pattern.

Definition in file iterator_class.py.