NMap::iterator Class Reference

NMap::iterator class provides an iterator to navigate through the map object. More...

List of all members.

Public Member Functions

 iterator (void)
 Constructs a NMap::iterator.
 iterator (const iterator &other)
 Copy-constructs a NMap::iterator.
 iterator (const typename NMapSkip::iterator &it)
 Copy-constructs a NMap::iterator.
key (void) const
 Gets the key value of the iterator's item.
value (void) const
 Gets the value of the iterator's item.
iteratoroperator= (const iterator &rhs)
 Copies an iterator.
bool operator== (const iterator &rhs) const
 Test whether two iterator's items are equal.
bool operator!= (const iterator &rhs) const
 Test whether two iterator's items differs.
NMapItem< K, V > operator * (void) const
 Gets the content of the iterator's item.
iterator inc (void)
 Moves foward.
iterator operator++ (int)
 Moves foward.
const iteratoroperator++ (void) const
 Moves foward.
const iterator operator++ (int) const
 Moves foward.


Detailed Description

template<typename K, typename V>
class NMap< K, V >::iterator

NMap::iterator class provides an iterator to navigate through the map object.

Definition at line 337 of file nmap.hpp.


Constructor & Destructor Documentation

iterator ( const iterator other  )  [inline]

Copy-constructs a NMap::iterator.

Parameters:
other The object to be copied

Definition at line 348 of file nmap.hpp.

References m_it.

iterator ( const typename NMapSkip::iterator it  )  [inline]

Copy-constructs a NMap::iterator.

Parameters:
it A NMapSkip::iterator object to be copied

Definition at line 356 of file nmap.hpp.


Member Function Documentation

K key ( void   )  const [inline]

Gets the key value of the iterator's item.

Returns:
The key value of the iteratorp's item

Definition at line 364 of file nmap.hpp.

V value ( void   )  const [inline]

Gets the value of the iterator's item.

Returns:
The value of the iterator's item

Definition at line 372 of file nmap.hpp.

Referenced by NEvent1::detach().

iterator& operator= ( const iterator rhs  )  [inline]

Copies an iterator.

Parameters:
rhs The iterator to be copied
Returns:
A reference to the current object

Definition at line 381 of file nmap.hpp.

References m_it.

bool operator== ( const iterator rhs  )  const [inline]

Test whether two iterator's items are equal.

Parameters:
rhs The iterator with the item to be tested
Returns:
true if equals or false otherwise

Definition at line 392 of file nmap.hpp.

References m_it.

bool operator!= ( const iterator rhs  )  const [inline]

Test whether two iterator's items differs.

Parameters:
rhs The iterator with the item to be tested
Returns:
true if differs or false otherwise

Definition at line 406 of file nmap.hpp.

References m_it.

NMapItem<K, V> operator * ( void   )  const [inline]

Gets the content of the iterator's item.

Returns:
The content of the iterator's item

Definition at line 418 of file nmap.hpp.

iterator inc ( void   )  [inline]

Moves foward.

Returns:
An iterator pointing to the next item

Definition at line 426 of file nmap.hpp.

iterator operator++ ( int   )  [inline]

Moves foward.

Returns:
An iterator pointing to the next item

Definition at line 437 of file nmap.hpp.

const iterator& operator++ ( void   )  const [inline]

Moves foward.

Returns:
A const iterator pointing to the next item

Definition at line 449 of file nmap.hpp.

const iterator operator++ ( int   )  const [inline]

Moves foward.

Returns:
A const iterator pointing to the next item

Definition at line 461 of file nmap.hpp.


The documentation for this class was generated from the following file:
Generated on Wed Mar 5 23:10:37 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4