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

ACE_Map_Manager_Iterator_Adapter Class Template Reference

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

#include <Map_T.h>

Inheritance diagram for ACE_Map_Manager_Iterator_Adapter:

Inheritance graph
[legend]
Collaboration diagram for ACE_Map_Manager_Iterator_Adapter:

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Methods

 ACE_Map_Manager_Iterator_Adapter (const ACE_Map_Iterator< KEY, VALUE, ACE_Null_Mutex > &impl)
 Constructor. More...

virtual ~ACE_Map_Manager_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_Map_Iterator< KEY, VALUE,
ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object. More...


Protected Attributes

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


Detailed Description

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

Defines a iterator implementation for the Map_Manager_Adapter.

Implementation to be provided by ACE_Map_Manager::iterator.

Definition at line 1310 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>::iterator ACE_Map_Manager_Iterator_Adapter::implementation
 

Definition at line 1316 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class KEY, class VALUE>
ACE_INLINE ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::ACE_Map_Manager_Iterator_Adapter const ACE_Map_Iterator< KEY, VALUE, ACE_Null_Mutex > &    impl
 

Constructor.

Definition at line 1385 of file Map_T.i.

01386   : implementation_ (impl)
01387 {
01388 }

template<class T, class KEY, class VALUE>
ACE_INLINE ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::~ACE_Map_Manager_Iterator_Adapter void    [virtual]
 

Destructor.

Definition at line 1391 of file Map_T.i.

01392 {
01393 }


Member Function Documentation

template<class T, class KEY, class VALUE>
ACE_INLINE ACE_Iterator_Impl< T > * ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::clone void    const [virtual]
 

Clone.

Implements ACE_Iterator_Impl.

Definition at line 1396 of file Map_T.i.

References ACE_NEW_RETURN.

01397 {
01398   ACE_Iterator_Impl<T> *temp = 0;
01399   ACE_NEW_RETURN (temp,
01400                   (ACE_Map_Manager_Iterator_Adapter<T, KEY, VALUE>) (*this),
01401                   0);
01402   return temp;
01403 }

template<class T, class KEY, class VALUE>
ACE_INLINE int ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::compare const ACE_Iterator_Impl< T > &    rhs const [virtual]
 

Comparison.

Implements ACE_Iterator_Impl.

Definition at line 1407 of file Map_T.i.

References implementation_.

01408 {
01409   const ACE_Map_Manager_Iterator_Adapter<T, KEY, VALUE> &rhs_local
01410     = ACE_dynamic_cast_3_ref (const ACE_Map_Manager_Iterator_Adapter, T, KEY, VALUE, rhs);
01411 
01412   return this->implementation_ == rhs_local.implementation_;
01413 }

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

Dereference.

Implements ACE_Iterator_Impl.

Definition at line 1416 of file Map_T.i.

01417 {
01418   // The following syntax is necessary to work around certain broken compilers.
01419   // In particular, please do not prefix implementation_ with this->
01420   return T ((*implementation_).ext_id_,
01421             (*implementation_).int_id_);
01422 }

template<class T, class KEY, class VALUE>
ACE_INLINE ACE_Map_Iterator< KEY, VALUE, ACE_Null_Mutex > & ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::impl void   
 

Accessor to implementation object.

Definition at line 1437 of file Map_T.i.

References implementation_.

01438 {
01439   return this->implementation_;
01440 }

template<class T, class KEY, class VALUE>
ACE_INLINE void ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::minus_minus void    [virtual]
 

Reverse.

Implements ACE_Iterator_Impl.

Definition at line 1431 of file Map_T.i.

References implementation_.

01432 {
01433   --this->implementation_;
01434 }

template<class T, class KEY, class VALUE>
ACE_INLINE void ACE_Map_Manager_Iterator_Adapter< T, KEY, VALUE >::plus_plus void    [virtual]
 

Advance.

Implements ACE_Iterator_Impl.

Definition at line 1425 of file Map_T.i.

References implementation_.

01426 {
01427   ++this->implementation_;
01428 }


Member Data Documentation

template<class T, class KEY, class VALUE>
ACE_Map_Iterator<KEY, VALUE, ACE_Null_Mutex> ACE_Map_Manager_Iterator_Adapter::implementation_ [protected]
 

All implementation details are forwarded to this class.

Definition at line 1345 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:50:11 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002