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

corelinux::AssociativeIterator Template Class 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

Inheritance graph
[legend]
Collaboration diagram for corelinux::AssociativeIterator:

Collaboration graph
[legend]
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> template class corelinux::AssociativeIterator

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<classKeyType, classElementType>
corelinux::AssociativeIterator<KeyType, ElementType>::AssociativeIterator<KeyType, ElementType> ( const AssociativeIterator<KeyType, ElementType> & aRef )
 

Copy constructor.

Parameters:
AssociativeIterator   const reference


Member Function Documentation

template<classKeyType, classElementType>
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<classKeyType, classElementType>
AssociativeIterator<KeyType, ElementType> & corelinux::AssociativeIterator<KeyType, ElementType>::operator= ( const AssociativeIterator<KeyType, ElementType> & ) [inline]
 

Assignment operator.

Parameters:
AssociativeIterator   const reference
Returns:
AssociativeIterator reference

template<classKeyType, classElementType>
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