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

ACE_Reverse_Iterator Class Template Reference

Defines the reverse iterator interface. More...

#include <Map_T.h>

Collaboration diagram for ACE_Reverse_Iterator:

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef ACE_Reverse_Iterator_Impl<
T > 
implementation

Public Methods

 ACE_Reverse_Iterator (ACE_Reverse_Iterator_Impl< T > *impl)
 Constructor. More...

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

 ~ACE_Reverse_Iterator (void)
 Destructor. More...

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

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

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

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

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

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

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

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


Protected Attributes

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


Detailed Description

template<class T>
class ACE_Reverse_Iterator< T >

Defines the reverse iterator interface.

Implementation to be provided by forwarding.

Definition at line 199 of file Map_T.h.


Member Typedef Documentation

template<class T>
typedef ACE_Reverse_Iterator_Impl<T> ACE_Reverse_Iterator::implementation
 

Definition at line 205 of file Map_T.h.

template<class T>
typedef T ACE_Reverse_Iterator::value_type
 

Definition at line 204 of file Map_T.h.


Constructor & Destructor Documentation

template<class T>
ACE_INLINE ACE_Reverse_Iterator< T >::ACE_Reverse_Iterator ACE_Reverse_Iterator_Impl< T > *    impl
 

Constructor.

Definition at line 119 of file Map_T.i.

00120   : implementation_ (impl)
00121 {
00122 }

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

Copy constructor.

Definition at line 125 of file Map_T.i.

00126   : implementation_ (rhs.implementation_->clone ())
00127 {
00128 }

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

Destructor.

Definition at line 131 of file Map_T.i.

References implementation_.

00132 {
00133   delete this->implementation_;
00134 }


Member Function Documentation

template<class T>
ACE_INLINE ACE_Reverse_Iterator_Impl< T > & ACE_Reverse_Iterator< T >::impl void   
 

Accessor to implementation object.

Definition at line 193 of file Map_T.i.

References implementation_.

00194 {
00195   return *this->implementation_;
00196 }

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

Dereference operator.

Definition at line 157 of file Map_T.i.

References implementation_.

00158 {
00159   return this->implementation_->dereference ();
00160 }

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

Definition at line 151 of file Map_T.i.

References operator==.

00152 {
00153   return !this->operator== (rhs);
00154 }

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

Postfix advance.

Definition at line 170 of file Map_T.i.

References implementation_.

00171 {
00172   ACE_Reverse_Iterator<T> tmp = *this;
00173   this->implementation_->plus_plus ();
00174   return tmp;
00175 }

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

Prefix advance.

Definition at line 163 of file Map_T.i.

References implementation_.

00164 {
00165   this->implementation_->plus_plus ();
00166   return *this;
00167 }

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

Postfix reverse.

Definition at line 185 of file Map_T.i.

References implementation_.

00186 {
00187   ACE_Reverse_Iterator<T> tmp = *this;
00188   this->implementation_->minus_minus ();
00189   return tmp;
00190 }

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

Prefix reverse.

Definition at line 178 of file Map_T.i.

References implementation_.

00179 {
00180   this->implementation_->minus_minus ();
00181   return *this;
00182 }

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

Assignment operator.

Definition at line 137 of file Map_T.i.

References implementation_.

00138 {
00139   delete this->implementation_;
00140   this->implementation_ = rhs.implementation_->clone ();
00141   return *this;
00142 }

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

Comparison operators.

Definition at line 145 of file Map_T.i.

References implementation_.

Referenced by operator!=.

00146 {
00147   return this->implementation_->compare (*rhs.implementation_);
00148 }


Member Data Documentation

template<class T>
ACE_Reverse_Iterator_Impl<T>* ACE_Reverse_Iterator::implementation_ [protected]
 

Implementation pointer.

Definition at line 244 of file Map_T.h.

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


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