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

ACE_Hash_Map_Manager_Ex_Iterator_Adapter 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:

Inheritance graph
[legend]
Collaboration diagram for ACE_Hash_Map_Manager_Ex_Iterator_Adapter:

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 >::iterator 
implementation

Public Methods

 ACE_Hash_Map_Manager_Ex_Iterator_Adapter (const ACE_Hash_Map_Iterator_Ex< KEY, VALUE, HASH_KEY, COMPARE_KEYS, ACE_Null_Mutex > &impl)
 Constructor. More...

virtual ~ACE_Hash_Map_Manager_Ex_Iterator_Adapter (void)
 Destructor. More...

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

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

virtual T dereference (void) const
 Dereference. More...

virtual void plus_plus (void)
 Advance. More...

virtual void minus_minus (void)
 Reverse. More...

ACE_Hash_Map_Iterator_Ex<
KEY, VALUE, HASH_KEY, COMPARE_KEYS,
ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object. More...


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. More...


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 1024 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>::iterator ACE_Hash_Map_Manager_Ex_Iterator_Adapter::implementation
 

Definition at line 1030 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 1044 of file Map_T.i.

01045   : implementation_ (impl)
01046 {
01047 }

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 void    [virtual]
 

Destructor.

Definition at line 1050 of file Map_T.i.

01051 {
01052 }


Member Function Documentation

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_INLINE 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.

Definition at line 1055 of file Map_T.i.

References ACE_NEW_RETURN.

01056 {
01057   ACE_Iterator_Impl<T> *temp = 0;
01058   ACE_NEW_RETURN (temp,
01059                   (ACE_Hash_Map_Manager_Ex_Iterator_Adapter<T, KEY, VALUE, HASH_KEY, COMPARE_KEYS>) (*this),
01060                   0);
01061   return temp;
01062 }

template<class T, class KEY, class VALUE, class HASH_KEY, class COMPARE_KEYS>
ACE_INLINE 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.

Definition at line 1066 of file Map_T.i.

References implementation_.

01067 {
01068   const ACE_Hash_Map_Manager_Ex_Iterator_Adapter<T, KEY, VALUE, HASH_KEY, COMPARE_KEYS> &rhs_local
01069     = ACE_dynamic_cast_5_ref (const ACE_Hash_Map_Manager_Ex_Iterator_Adapter, T, KEY, VALUE, HASH_KEY, COMPARE_KEYS, rhs);
01070 
01071   return this->implementation_ == rhs_local.implementation_;
01072 }

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

Dereference.

Implements ACE_Iterator_Impl.

Definition at line 1075 of file Map_T.i.

01076 {
01077   // The following syntax is necessary to work around certain broken compilers.
01078   // In particular, please do not prefix implementation_ with this->
01079   return T ((*implementation_).ext_id_,
01080             (*implementation_).int_id_);
01081 }

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 1096 of file Map_T.i.

References implementation_.

01097 {
01098   return this->implementation_;
01099 }

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

Reverse.

Implements ACE_Iterator_Impl.

Definition at line 1090 of file Map_T.i.

References implementation_.

01091 {
01092   --this->implementation_;
01093 }

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

Advance.

Implements ACE_Iterator_Impl.

Definition at line 1084 of file Map_T.i.

References implementation_.

01085 {
01086   ++this->implementation_;
01087 }


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::implementation_ [protected]
 

All implementation details are forwarded to this class.

Definition at line 1059 of file Map_T.h.

Referenced by compare, impl, minus_minus, and plus_plus.


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