ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE > Class Template Reference

Defines a reverse iterator implementation for the Map Manager. More...

#include <Map_T.h>

Inheritance diagram for ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_TYPENAME ACE_Map_Manager<
KEY, VALUE, ACE_Null_Mutex
>::reverse_iterator 
implementation

Public Member Functions

 ACE_Map_Manager_Reverse_Iterator_Adapter (const ACE_Map_Reverse_Iterator< KEY, VALUE, ACE_Null_Mutex > &impl)
 Constructor.

virtual ~ACE_Map_Manager_Reverse_Iterator_Adapter (void)
 Destructor.

virtual ACE_Reverse_Iterator_Impl<
T > * 
clone (void) const
 Clone.

virtual int compare (const ACE_Reverse_Iterator_Impl< T > &rhs) const
 Comparison.

virtual T dereference (void) const
 Dereference.

virtual void plus_plus (void)
 Advance.

virtual void minus_minus (void)
 Reverse.

ACE_Map_Reverse_Iterator<
KEY, VALUE, ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object.


Protected Attributes

ACE_Map_Reverse_Iterator<
KEY, VALUE, ACE_Null_Mutex
implementation_
 All implementation details are forwarded to this class.


Detailed Description

template<class T, class KEY, class VALUE>
class ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >

Defines a reverse iterator implementation for the Map Manager.

Implementation to be provided by ACE_Map_Manager::reverse_iterator.

Definition at line 1364 of file Map_T.h.


Member Typedef Documentation

template<class T, class KEY, class VALUE>
typedef ACE_TYPENAME ACE_Map_Manager<KEY, VALUE, ACE_Null_Mutex>::reverse_iterator ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::implementation
 

Definition at line 1370 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class KEY, class VALUE>
ACE_INLINE ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::ACE_Map_Manager_Reverse_Iterator_Adapter const ACE_Map_Reverse_Iterator< KEY, VALUE, ACE_Null_Mutex > &  impl  ) 
 

Constructor.

Definition at line 378 of file Map_T.inl.

00379   : implementation_ (impl)
00380 {
00381 }

template<class T, class KEY, class VALUE>
ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::~ACE_Map_Manager_Reverse_Iterator_Adapter void   )  [virtual]
 

Destructor.

Definition at line 1095 of file Map_T.cpp.

01096 {
01097 }


Member Function Documentation

template<class T, class KEY, class VALUE>
ACE_Reverse_Iterator_Impl< T > * ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::clone void   )  const [virtual]
 

Clone.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 1100 of file Map_T.cpp.

References ACE_NEW_RETURN.

01101 {
01102   ACE_Reverse_Iterator_Impl<T> *temp = 0;
01103   ACE_NEW_RETURN (temp,
01104                   (ACE_Map_Manager_Reverse_Iterator_Adapter<T, KEY, VALUE>) (*this),
01105                   0);
01106   return temp;
01107 }

template<class T, class KEY, class VALUE>
int ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::compare const ACE_Reverse_Iterator_Impl< T > &  rhs  )  const [virtual]
 

Comparison.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 1111 of file Map_T.cpp.

References ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::implementation_.

01112 {
01113   const ACE_Map_Manager_Reverse_Iterator_Adapter<T, KEY, VALUE> &rhs_local
01114     = dynamic_cast<const ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE> &> (rhs);
01115 
01116   return this->implementation_ == rhs_local.implementation_;
01117 }

template<class T, class KEY, class VALUE>
T ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::dereference void   )  const [virtual]
 

Dereference.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 1120 of file Map_T.cpp.

01121 {
01122   // The following syntax is necessary to work around certain broken compilers.
01123   // In particular, please do not prefix implementation_ with this->
01124   return T ((*implementation_).ext_id_,
01125             (*implementation_).int_id_);
01126 }

template<class T, class KEY, class VALUE>
ACE_INLINE ACE_Map_Reverse_Iterator< KEY, VALUE, ACE_Null_Mutex > & ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::impl void   ) 
 

Accessor to implementation object.

Definition at line 384 of file Map_T.inl.

00385 {
00386   return this->implementation_;
00387 }

template<class T, class KEY, class VALUE>
void ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::minus_minus void   )  [virtual]
 

Reverse.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 1135 of file Map_T.cpp.

01136 {
01137   --this->implementation_;
01138 }

template<class T, class KEY, class VALUE>
void ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::plus_plus void   )  [virtual]
 

Advance.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 1129 of file Map_T.cpp.

01130 {
01131   ++this->implementation_;
01132 }


Member Data Documentation

template<class T, class KEY, class VALUE>
ACE_Map_Reverse_Iterator<KEY, VALUE, ACE_Null_Mutex> ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::implementation_ [protected]
 

All implementation details are forwarded to this class.

Definition at line 1399 of file Map_T.h.

Referenced by ACE_Map_Manager_Reverse_Iterator_Adapter< T, KEY, VALUE >::compare().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:24:33 2006 for ACE by doxygen 1.3.6