MAUtil::Dictionary< Key, Storage >::Iterator Class Reference

#include <MAUtil/Dictionary.h>

List of all members.


Detailed Description

template<class Key, class Storage>
class MAUtil::Dictionary< Key, Storage >::Iterator

An Iterator is bound to a specific Dictionary object. The Iterator can point to a specific element in that Dictionary, or at Dictionary::end(), which is "beyond" the last element of the Dictionary. If the iterator points at Dictionary::end(), attempting to access the element will cause a crash. The Iterator is bidirectional; it can move backwards or forwards through the Dictionary.


Public Member Functions

Storage & operator * ()
Storage * operator-> ()
Iteratoroperator++ ()
Iterator operator++ (int)
Iteratoroperator-- ()
Iterator operator-- (int)
bool operator== (const Iterator &) const
bool operator!= (const Iterator &) const
Iteratoroperator= (const Iterator &)
 Iterator (const Iterator &)

Protected Member Functions

 Iterator (dict_t *)

Protected Attributes

DictNodemNode
dict_t * mDict

Friends

class Dictionary
class ConstIterator


Constructor & Destructor Documentation

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator::Iterator const Iterator  ) 
 

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator::Iterator dict_t *   )  [protected]
 


Member Function Documentation

template<class Key, class Storage>
Storage & MAUtil::Dictionary< Key, Storage >::Iterator::operator *  ) 
 

template<class Key, class Storage>
Storage * MAUtil::Dictionary< Key, Storage >::Iterator::operator->  ) 
 

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator & MAUtil::Dictionary< Key, Storage >::Iterator::operator++  ) 
 

Causes the Iterator to point to the next element in the Dictionary to which it is bound. If the Iterator points to Dictionary::end(), this operation will cause a crash.

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator MAUtil::Dictionary< Key, Storage >::Iterator::operator++ int   ) 
 

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator & MAUtil::Dictionary< Key, Storage >::Iterator::operator--  ) 
 

Causes the Iterator to point to the previous element in the Dictionary to which it is bound.

Note:
If the iterator points to the first node, this operation will cause it to point to Dictionary::end().

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator MAUtil::Dictionary< Key, Storage >::Iterator::operator-- int   ) 
 

template<class Key, class Storage>
bool MAUtil::Dictionary< Key, Storage >::Iterator::operator== const Iterator  )  const
 

template<class Key, class Storage>
bool MAUtil::Dictionary< Key, Storage >::Iterator::operator!= const Iterator  )  const
 

template<class Key, class Storage>
MAUtil::Dictionary< Key, Storage >::Iterator & MAUtil::Dictionary< Key, Storage >::Iterator::operator= const Iterator  ) 
 


Friends And Related Function Documentation

template<class Key, class Storage>
friend class Dictionary [friend]
 

template<class Key, class Storage>
friend class ConstIterator [friend]
 


Member Data Documentation

template<class Key, class Storage>
DictNode* MAUtil::Dictionary< Key, Storage >::Iterator::mNode [protected]
 

template<class Key, class Storage>
dict_t* MAUtil::Dictionary< Key, Storage >::Iterator::mDict [protected]
 


Generated on Sat Feb 13 00:15:39 2010 for MoSync 2 beta 1 by  doxygen 1.4.6-NO