ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE > Class Template Reference

Defines a reverse iterator implementation for the Active_Map_Manager_Adapter. More...

#include <Map_T.h>

Inheritance diagram for ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_TYPENAME ACE_Active_Map_Manager<
VALUE >::reverse_iterator 
implementation

Public Member Functions

 ACE_Active_Map_Manager_Reverse_Iterator_Adapter (const ACE_Map_Reverse_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > &impl)
 Constructor.

virtual ~ACE_Active_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<
ACE_Active_Map_Manager_Key,
VALUE, ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object.


Protected Attributes

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


Detailed Description

template<class T, class VALUE>
class ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >

Defines a reverse iterator implementation for the Active_Map_Manager_Adapter.

Implementation to be provided by ACE_Active_Map_Manager::reverse_iterator.

Definition at line 782 of file Map_T.h.


Member Typedef Documentation

template<class T, class VALUE>
typedef ACE_TYPENAME ACE_Active_Map_Manager<VALUE>::reverse_iterator ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >::implementation
 

Definition at line 788 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class VALUE>
ACE_INLINE ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >::ACE_Active_Map_Manager_Reverse_Iterator_Adapter const ACE_Map_Reverse_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > &  impl  ) 
 

Constructor.

Definition at line 278 of file Map_T.inl.

00279   : implementation_ (impl)
00280 {
00281 }

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

Destructor.

Definition at line 360 of file Map_T.cpp.

00361 {
00362 }


Member Function Documentation

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

Clone.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 365 of file Map_T.cpp.

References ACE_NEW_RETURN.

00366 {
00367   ACE_Reverse_Iterator_Impl<T> *temp = 0;
00368   ACE_NEW_RETURN (temp,
00369                   (ACE_Active_Map_Manager_Reverse_Iterator_Adapter<T, VALUE>) (*this),
00370                   0);
00371   return temp;
00372 }

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

Comparison.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 376 of file Map_T.cpp.

References ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >::implementation_.

00377 {
00378   const ACE_Active_Map_Manager_Reverse_Iterator_Adapter<T, VALUE> &rhs_local
00379     = dynamic_cast<const ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE> &> (rhs);
00380 
00381   return this->implementation_ == rhs_local.implementation_;
00382 }

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

Dereference.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 385 of file Map_T.cpp.

00386 {
00387   // The following syntax is necessary to work around certain broken compilers.
00388   // In particular, please do not prefix implementation_ with this->
00389   return T ((*implementation_).int_id_.first (),
00390             (*implementation_).int_id_.second ());
00391 }

template<class T, class VALUE>
ACE_INLINE ACE_Map_Reverse_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > & ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >::impl void   ) 
 

Accessor to implementation object.

Definition at line 284 of file Map_T.inl.

00285 {
00286   return this->implementation_;
00287 }

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

Reverse.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 400 of file Map_T.cpp.

00401 {
00402   --this->implementation_;
00403 }

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

Advance.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 394 of file Map_T.cpp.

00395 {
00396   ++this->implementation_;
00397 }


Member Data Documentation

template<class T, class VALUE>
ACE_Map_Reverse_Iterator<ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex> ACE_Active_Map_Manager_Reverse_Iterator_Adapter< T, VALUE >::implementation_ [protected]
 

All implementation details are forwarded to this class.

Definition at line 817 of file Map_T.h.

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


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