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

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

#include <Map_T.h>

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

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

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Member Functions

 ACE_Hash_Map_Manager_Ex_Iterator_Adapter (const ACE_Hash_Map_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > &impl)
 Constructor.
virtual ~ACE_Hash_Map_Manager_Ex_Iterator_Adapter (void)
 Destructor.
virtual ACE_Iterator_Impl<
T > * 
clone (void) const
 Clone.
virtual int compare (const ACE_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_Iterator_Ex<
KEY, VALUE, HASH_KEY, COMPARE_KEYS,
ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object.

Protected Attributes

ACE_Hash_Map_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_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >

Defines a iterator implementation for the Hash_Map_Manager_Adapter.

Implementation to be provided by ACE_Hash_Map_Manager_Ex::iterator.

Definition at line 1032 of file Map_T.h.


Member Typedef Documentation

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
typedef ACE_Hash_Map_Manager_Ex<KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex>::iterator ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::implementation

Definition at line 1038 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_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::ACE_Hash_Map_Manager_Ex_Iterator_Adapter ( const ACE_Hash_Map_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > &  impl  ) 

Constructor.

Definition at line 316 of file Map_T.inl.

00317   : implementation_ (impl)
00318 {
00319 }

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

Destructor.

Definition at line 756 of file Map_T.cpp.

00757 {
00758 }


Member Function Documentation

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_Iterator_Impl< T > * ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::clone ( void   )  const [virtual]

Clone.

Implements ACE_Iterator_Impl< T >.

Definition at line 761 of file Map_T.cpp.

References ACE_NEW_RETURN.

00762 {
00763   ACE_Iterator_Impl<T> *temp = 0;
00764   ACE_NEW_RETURN (temp,
00765                   (ACE_Hash_Map_Manager_Ex_Iterator_Adapter<T, KEY, VALUE, HASH_KEY, COMPARE_KEYS>) (*this),
00766                   0);
00767   return temp;
00768 }

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

Comparison.

Implements ACE_Iterator_Impl< T >.

Definition at line 772 of file Map_T.cpp.

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

00773 {
00774   const ACE_Hash_Map_Manager_Ex_Iterator_Adapter<T, KEY, VALUE, HASH_KEY, COMPARE_KEYS> &rhs_local
00775     = dynamic_cast<const ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS> &> (rhs);
00776 
00777   return this->implementation_ == rhs_local.implementation_;
00778 }

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

Dereference.

Implements ACE_Iterator_Impl< T >.

Definition at line 781 of file Map_T.cpp.

00782 {
00783   // The following syntax is necessary to work around certain broken compilers.
00784   // In particular, please do not prefix implementation_ with this->
00785   return T ((*implementation_).ext_id_,
00786             (*implementation_).int_id_);
00787 }

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_INLINE ACE_Hash_Map_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > & ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::impl ( void   ) 

Accessor to implementation object.

Definition at line 322 of file Map_T.inl.

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

00323 {
00324   return this->implementation_;
00325 }

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

Reverse.

Implements ACE_Iterator_Impl< T >.

Definition at line 796 of file Map_T.cpp.

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

00797 {
00798   --this->implementation_;
00799 }

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

Advance.

Implements ACE_Iterator_Impl< T >.

Definition at line 790 of file Map_T.cpp.

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

00791 {
00792   ++this->implementation_;
00793 }


Member Data Documentation

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

All implementation details are forwarded to this class.

Definition at line 1067 of file Map_T.h.

Referenced by ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::compare(), ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::impl(), ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::minus_minus(), and ACE_Hash_Map_Manager_Ex_Iterator_Adapter< T, KEY, VALUE, HASH_KEY, COMPARE_KEYS >::plus_plus().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:11 2010 for ACE by  doxygen 1.4.7