hash_map< K, T >::hash_map_iterator Class Reference


Public Member Functions

 hash_map_iterator ()
 hash_map_iterator (Entry &e)
std::pair< const K, T > & operator * () const
std::pair< const K, T > * operator-> () const
bool operator== (hash_map_iterator i) const
bool operator!= (hash_map_iterator i) const

Detailed Description

template<class K, class T>
class hash_map< K, T >::hash_map_iterator

Definition at line 33 of file hash_map.icc.


Constructor & Destructor Documentation

template<class K, class T>
hash_map< K, T >::hash_map_iterator::hash_map_iterator (  )  [inline]

Definition at line 36 of file hash_map.icc.

00036 : entry(0) {}

template<class K, class T>
hash_map< K, T >::hash_map_iterator::hash_map_iterator ( Entry e  )  [inline]

Definition at line 37 of file hash_map.icc.

00037 : entry(&e) {} 


Member Function Documentation

template<class K, class T>
std::pair<const K,T>& hash_map< K, T >::hash_map_iterator::operator * (  )  const [inline]

Definition at line 38 of file hash_map.icc.

References hash_map< K, T >::Entry::data.

Referenced by hash_map< K, T >::hash_map_iterator::operator->().

00038 { return entry->data; }

template<class K, class T>
bool hash_map< K, T >::hash_map_iterator::operator!= ( hash_map_iterator  i  )  const [inline]

Definition at line 43 of file hash_map.icc.

References hash_map< K, T >::hash_map_iterator::entry.

00043                                                {
00044       return (entry != i.entry);
00045     }

template<class K, class T>
std::pair<const K,T>* hash_map< K, T >::hash_map_iterator::operator-> (  )  const [inline]

Definition at line 39 of file hash_map.icc.

References hash_map< K, T >::hash_map_iterator::operator *().

00039 { return &(operator*()); }

template<class K, class T>
bool hash_map< K, T >::hash_map_iterator::operator== ( hash_map_iterator  i  )  const [inline]

Definition at line 40 of file hash_map.icc.

References hash_map< K, T >::hash_map_iterator::entry.

00040                                                {
00041       return (entry == i.entry);
00042     }


The documentation for this class was generated from the following file:
Generated on Mon May 27 17:54:03 2013 for Geant4 by  doxygen 1.4.7