Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Iterator Class Template Reference

Defines the iterator interface. More...

#include <Map_T.h>

Collaboration diagram for ACE_Iterator:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef ACE_Iterator_Impl< T > implementation

Public Methods

 ACE_Iterator (ACE_Iterator_Impl< T > *impl)
 Constructor. More...

 ACE_Iterator (const ACE_Iterator< T > &rhs)
 Copy constructor. More...

 ~ACE_Iterator (void)
 Destructor. More...

ACE_Iterator< T > & operator= (const ACE_Iterator< T > &rhs)
 Assignment operator. More...

int operator== (const ACE_Iterator< T > &rhs) const
 Comparison operators. More...

int operator!= (const ACE_Iterator< T > &rhs) const
operator * () const
 Dereference operator. More...

ACE_Iterator< T > & operator++ (void)
 Prefix advance. More...

ACE_Iterator< T > operator++ (int)
 Postfix advance. More...

ACE_Iterator< T > & operator-- (void)
 Prefix reverse. More...

ACE_Iterator< T > operator-- (int)
 Postfix reverse. More...

ACE_Iterator_Impl< T > & impl (void)
 Accessor to implementation object. More...


Protected Attributes

ACE_Iterator_Impl< T > * implementation_
 Implementation pointer. More...


Detailed Description

template<class T>
class ACE_Iterator< T >

Defines the iterator interface.

Implementation to be provided by forwarding.

Definition at line 143 of file Map_T.h.


Member Typedef Documentation

template<class T>
typedef ACE_Iterator_Impl<T> ACE_Iterator::implementation
 

Definition at line 149 of file Map_T.h.

template<class T>
typedef T ACE_Iterator::value_type
 

Definition at line 148 of file Map_T.h.


Constructor & Destructor Documentation

template<class T>
ACE_INLINE ACE_Iterator< T >::ACE_Iterator ACE_Iterator_Impl< T > *    impl
 

Constructor.

Definition at line 39 of file Map_T.i.

00040   : implementation_ (impl)
00041 {
00042 }

template<class T>
ACE_INLINE ACE_Iterator< T >::ACE_Iterator const ACE_Iterator< T > &    rhs
 

Copy constructor.

Definition at line 45 of file Map_T.i.

00046   : implementation_ (rhs.implementation_->clone ())
00047 {
00048 }

template<class T>
ACE_INLINE ACE_Iterator< T >::~ACE_Iterator void   
 

Destructor.

Definition at line 51 of file Map_T.i.

References implementation_.

00052 {
00053   delete this->implementation_;
00054 }


Member Function Documentation

template<class T>
ACE_INLINE ACE_Iterator_Impl< T > & ACE_Iterator< T >::impl void   
 

Accessor to implementation object.

Definition at line 113 of file Map_T.i.

References implementation_.

00114 {
00115   return *this->implementation_;
00116 }

template<class T>
ACE_INLINE T ACE_Iterator< T >::operator *   const
 

Dereference operator.

Definition at line 77 of file Map_T.i.

References implementation_.

00078 {
00079   return this->implementation_->dereference ();
00080 }

template<class T>
ACE_INLINE int ACE_Iterator< T >::operator!= const ACE_Iterator< T > &    rhs const
 

Definition at line 71 of file Map_T.i.

References operator==.

00072 {
00073   return !this->operator== (rhs);
00074 }

template<class T>
ACE_INLINE ACE_Iterator< T > ACE_Iterator< T >::operator++ int   
 

Postfix advance.

Definition at line 90 of file Map_T.i.

References implementation_.

00091 {
00092   ACE_Iterator<T> tmp = *this;
00093   this->implementation_->plus_plus ();
00094   return tmp;
00095 }

template<class T>
ACE_INLINE ACE_Iterator< T > & ACE_Iterator< T >::operator++ void   
 

Prefix advance.

Definition at line 83 of file Map_T.i.

References implementation_.

00084 {
00085   this->implementation_->plus_plus ();
00086   return *this;
00087 }

template<class T>
ACE_INLINE ACE_Iterator< T > ACE_Iterator< T >::operator-- int   
 

Postfix reverse.

Definition at line 105 of file Map_T.i.

References implementation_.

00106 {
00107   ACE_Iterator<T> tmp = *this;
00108   this->implementation_->minus_minus ();
00109   return tmp;
00110 }

template<class T>
ACE_INLINE ACE_Iterator< T > & ACE_Iterator< T >::operator-- void   
 

Prefix reverse.

Definition at line 98 of file Map_T.i.

References implementation_.

00099 {
00100   this->implementation_->minus_minus ();
00101   return *this;
00102 }

template<class T>
ACE_INLINE ACE_Iterator< T > & ACE_Iterator< T >::operator= const ACE_Iterator< T > &    rhs
 

Assignment operator.

Definition at line 57 of file Map_T.i.

References implementation_.

00058 {
00059   delete this->implementation_;
00060   this->implementation_ = rhs.implementation_->clone ();
00061   return *this;
00062 }

template<class T>
ACE_INLINE int ACE_Iterator< T >::operator== const ACE_Iterator< T > &    rhs const
 

Comparison operators.

Definition at line 65 of file Map_T.i.

References implementation_.

Referenced by operator!=.

00066 {
00067   return this->implementation_->compare (*rhs.implementation_);
00068 }


Member Data Documentation

template<class T>
ACE_Iterator_Impl<T>* ACE_Iterator::implementation_ [protected]
 

Implementation pointer.

Definition at line 188 of file Map_T.h.

Referenced by impl, operator *, operator++, operator--, operator=, operator==, and ~ACE_Iterator.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:49:09 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002