Logo Data Structures and Algorithms with Object-Oriented Design Patterns in C++
next up previous contents index

Member Variables

A Tree::Iter contains two member variables--tree and stack. The former is a const reference to a Tree. Upon creation, an iterator is associated with a specific tree instance and that association remains until the iterator is destroyed. The second member variable is a reference to a Stack instance.

   program16352
Program: Tree::Iter Class Definition


next up previous contents index

Bruno Copyright © 1997 by Bruno R. Preiss, P.Eng. All rights reserved.