Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

corelinux::AssociativeIterator Class Template Reference

The AssociativeIterator that extends Iterator to include the interface for describing an associative collection type without exposing its underlying representation. More...

#include <AssociativeIterator.hpp>

Inheritance diagram for corelinux::AssociativeIterator::

corelinux::Iterator corelinux::CoreLinuxObject corelinux::CoreLinuxAssociativeIterator List of all members.

Public Methods

 AssociativeIterator (void)
 Default constructor.

 AssociativeIterator (const AssociativeIterator &aRef)
 Copy constructor. More...

virtual ~AssociativeIterator (void)
 Destructor.

AssociativeIterator & operator= (const AssociativeIterator &)
 Assignment operator. More...

bool operator== (const AssociativeIterator &aRef) const
 Equality operator. More...

virtual KeyType getKey (void) const=0 throw (IteratorBoundsException)
 getKey returns the KeyType instance that is currently pointed to by the AssociativeIterator. More...


Detailed Description

template<class KeyType, class ElementType>
class corelinux::AssociativeIterator< KeyType, ElementType >

The AssociativeIterator that extends Iterator to include the interface for describing an associative collection type without exposing its underlying representation.

The implementation requires a template arguments that describes the KeyType and ElementType being iterated over.


Constructor & Destructor Documentation

template<class KeyType, class ElementType>
corelinux::AssociativeIterator< KeyType, ElementType >::AssociativeIterator const AssociativeIterator< KeyType, ElementType > &    aRef [inline]
 

Copy constructor.

Parameters:
AssociativeIterator  const reference


Member Function Documentation

template<class KeyType, class ElementType>
virtual KeyType corelinux::AssociativeIterator< KeyType, ElementType >::getKey void    const throw (IteratorBoundsException) [pure virtual]
 

getKey returns the KeyType instance that is currently pointed to by the AssociativeIterator.

Returns:
KeyType
Exceptions:
IteratorBoundsException  if the AssociativeIterator is not positioned correctly.

Reimplemented in corelinux::CoreLinuxAssociativeIterator.

template<class KeyType, class ElementType>
AssociativeIterator& corelinux::AssociativeIterator< KeyType, ElementType >::operator= const AssociativeIterator< KeyType, ElementType > &    [inline]
 

Assignment operator.

Parameters:
AssociativeIterator  const reference
Returns:
AssociativeIterator reference

template<class KeyType, class ElementType>
bool corelinux::AssociativeIterator< KeyType, ElementType >::operator== const AssociativeIterator< KeyType, ElementType > &    aRef const [inline]
 

Equality operator.

Parameters:
AssociativeIterator  const reference
Returns:
bool - true if instances are equal


The documentation for this class was generated from the following file:
This is the CoreLinux++ reference manual
Provided by The CoreLinux Consortium