ot::KeyIterator Class Reference
[Core Classes]

#include <StringTable.h>

List of all members.


Detailed Description

This is a little helper class that iterates through the keys in a StringTable. You cannot reset the Iterator.
Author:
Gerhard Reitmayr


Public Member Functions

 KeyIterator (StringTable &table)
int hasMoreKeys () const
const std::string & nextElement ()

Protected Attributes

StringMap::const_iterator it
 iterator to keep track of the KeyIterator
StringMapmap
 the actual StringMap we are working with


Constructor & Destructor Documentation

ot::KeyIterator::KeyIterator StringTable table  )  [inline]
 

constructor to create a new KeyIterator for a given StringTable. It initializes the iterator and sets it to the first key.

Parameters:
table the StringTable to iterate through


Member Function Documentation

int ot::KeyIterator::hasMoreKeys  )  const
 

tests if there are more keys to see.

Returns:
0 if no more keys are left, 1 otherwise

const std::string & ot::KeyIterator::nextElement  ) 
 

returns the key at the current location and advances the iterator by one.

Returns:
the key string at the current location.


Member Data Documentation

StringMap::const_iterator ot::KeyIterator::it [protected]
 

iterator to keep track of the KeyIterator

StringMap& ot::KeyIterator::map [protected]
 

the actual StringMap we are working with


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:29:11 2007 for NaviTrack by  doxygen 1.4.6