Iterator Class Reference

A BTree iterator. More...

#include <BTree.h++>

Inheritance diagram for Iterator:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Iterator (BTree< K, V, ORDER > &tree)
 Construct a new Iterator for the given BTree.
virtual ~Iterator ()
 Destructor.
virtual void rewind ()
 Rewind the iterator to the first item in the sequence.
virtual V next () throw (OutOfBoundsException)
 Get the next item in the sequence.
virtual bool hasNext ()
 Test if there are more items in the sequence.
virtual void remove ()
 Remove the current item from the sequence.

Detailed Description

template<typename K, typename V, int ORDER = 10>
class ccxx::BTree< K, V, ORDER >::Iterator

A BTree iterator.

Author:
Mark Lindner.

Constructor & Destructor Documentation

Iterator ( BTree< K, V, ORDER > &  tree  ) 

Construct a new Iterator for the given BTree.

virtual ~Iterator (  )  [inline, virtual]

Destructor.

Reimplemented from Iterator< V >.


Member Function Documentation

virtual bool hasNext (  )  [virtual]

Test if there are more items in the sequence.

Implements Iterator< V >.

virtual V next (  )  throw (OutOfBoundsException) [virtual]

Get the next item in the sequence.

Implements Iterator< V >.

virtual void remove (  )  [virtual]

Remove the current item from the sequence.

Implements Iterator< V >.

virtual void rewind (  )  [virtual]

Rewind the iterator to the first item in the sequence.

Implements Iterator< V >.


The documentation for this class was generated from the following file:
Generated on Sat Nov 26 16:49:08 2011 for libcommonc++ by  doxygen 1.6.3