ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS > Class Template Reference

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

#include <Map_T.h>

Inheritance diagram for ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_TYPENAME ACE_Hash_Map_Manager_Ex<
KEY, VALUE, HASH_KEY, COMPARE_KEYS,
ACE_Null_Mutex >::reverse_iterator 
implementation

Public Member Functions

 ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter (const ACE_Hash_Map_Reverse_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > &impl)
 Constructor.

virtual ~ACE_Hash_Map_Manager_Ex_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_Hash_Map_Reverse_Iterator_Ex<
KEY, VALUE, HASH_KEY, COMPARE_KEYS,
ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object.


Protected Attributes

ACE_Hash_Map_Reverse_Iterator_Ex<
KEY, VALUE, HASH_KEY, COMPARE_KEYS,
ACE_Null_Mutex
implementation_
 All implementation details are forwarded to this class.


Detailed Description

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
class ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >

Defines a reverse iterator implementation for the Hash_Map_Manager_Adapter.

Implementation to be provided by ACE_Hash_Map_Manager_Ex::reverse_iterator.

Definition at line 1078 of file Map_T.h.


Member Typedef Documentation

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
typedef ACE_TYPENAME ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex>::reverse_iterator ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::implementation
 

Definition at line 1084 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_INLINE ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter const ACE_Hash_Map_Reverse_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > &  impl  ) 
 

Constructor.

Definition at line 328 of file Map_T.inl.

00329   : implementation_ (impl)
00330 {
00331 }

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::~ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter void   )  [virtual]
 

Destructor.

Definition at line 802 of file Map_T.cpp.

00803 {
00804 }


Member Function Documentation

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

Clone.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 807 of file Map_T.cpp.

References ACE_NEW_RETURN.

00808 {
00809   ACE_Reverse_Iterator_Impl<T> *temp = 0;
00810   ACE_NEW_RETURN (temp,
00811                   (ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<T, KEY, VALUE, HASH_KEY, COMPARE_KEYS>) (*this),
00812                   0);
00813   return temp;
00814 }

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

Comparison.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 818 of file Map_T.cpp.

References ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::implementation_.

00819 {
00820   const ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter<T, KEY, VALUE, HASH_KEY, COMPARE_KEYS> &rhs_local
00821     = dynamic_cast<const ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS> &> (rhs);
00822 
00823   return this->implementation_ == rhs_local.implementation_;
00824 }

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

Dereference.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 827 of file Map_T.cpp.

00828 {
00829   // The following syntax is necessary to work around certain broken compilers.
00830   // In particular, please do not prefix implementation_ with this->
00831   return T ((*implementation_).ext_id_,
00832             (*implementation_).int_id_);
00833 }

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_INLINE ACE_Hash_Map_Reverse_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > & ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::impl void   ) 
 

Accessor to implementation object.

Definition at line 334 of file Map_T.inl.

00335 {
00336   return this->implementation_;
00337 }

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
void ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::minus_minus void   )  [virtual]
 

Reverse.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 842 of file Map_T.cpp.

00843 {
00844   --this->implementation_;
00845 }

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
void ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::plus_plus void   )  [virtual]
 

Advance.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 836 of file Map_T.cpp.

00837 {
00838   ++this->implementation_;
00839 }


Member Data Documentation

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_Hash_Map_Reverse_Iterator_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex> ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::implementation_ [protected]
 

All implementation details are forwarded to this class.

Definition at line 1113 of file Map_T.h.

Referenced by ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::compare().


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