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

ACE_Active_Map_Manager_Iterator_Adapter Class Template Reference

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

#include <Map_T.h>

Inheritance diagram for ACE_Active_Map_Manager_Iterator_Adapter:

Inheritance graph
[legend]
Collaboration diagram for ACE_Active_Map_Manager_Iterator_Adapter:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_TYPENAME ACE_Active_Map_Manager<
VALUE >::iterator 
implementation

Public Methods

 ACE_Active_Map_Manager_Iterator_Adapter (const ACE_Map_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > &impl)
 Constructor. More...

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


Protected Attributes

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


Detailed Description

template<class T, class VALUE>
class ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >

Defines a iterator implementation for the Active_Map_Manager_Adapter.

Implementation to be provided by ACE_Active_Map_Manager::iterator.

Definition at line 728 of file Map_T.h.


Member Typedef Documentation

template<class T, class VALUE>
typedef ACE_TYPENAME ACE_Active_Map_Manager<VALUE>::iterator ACE_Active_Map_Manager_Iterator_Adapter::implementation
 

Definition at line 734 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class VALUE>
ACE_INLINE ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::ACE_Active_Map_Manager_Iterator_Adapter const ACE_Map_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > &    impl
 

Constructor.

Definition at line 554 of file Map_T.i.

00555   : implementation_ (impl)
00556 {
00557 }

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

Destructor.

Definition at line 560 of file Map_T.i.

00561 {
00562 }


Member Function Documentation

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

Clone.

Implements ACE_Iterator_Impl.

Definition at line 565 of file Map_T.i.

References ACE_NEW_RETURN.

00566 {
00567   ACE_Iterator_Impl<T> *temp = 0;
00568   ACE_NEW_RETURN (temp,
00569                   (ACE_Active_Map_Manager_Iterator_Adapter<T, VALUE>) (*this),
00570                   0);
00571   return temp;
00572 }

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

Comparison.

Implements ACE_Iterator_Impl.

Definition at line 576 of file Map_T.i.

References implementation_.

00577 {
00578   const ACE_Active_Map_Manager_Iterator_Adapter<T, VALUE> &rhs_local
00579     = ACE_dynamic_cast_2_ref (const ACE_Active_Map_Manager_Iterator_Adapter, T, VALUE, rhs);
00580 
00581   return this->implementation_ == rhs_local.implementation_;
00582 }

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

Dereference.

Implements ACE_Iterator_Impl.

Definition at line 585 of file Map_T.i.

00586 {
00587   // The following syntax is necessary to work around certain broken compilers.
00588   // In particular, please do not prefix implementation_ with this->
00589   return T ((*implementation_).int_id_.first (),
00590             (*implementation_).int_id_.second ());
00591 }

template<class T, class VALUE>
ACE_INLINE ACE_Map_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > & ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::impl void   
 

Accessor to implementation object.

Definition at line 606 of file Map_T.i.

References implementation_.

00607 {
00608   return this->implementation_;
00609 }

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

Reverse.

Implements ACE_Iterator_Impl.

Definition at line 600 of file Map_T.i.

References implementation_.

00601 {
00602   --this->implementation_;
00603 }

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

Advance.

Implements ACE_Iterator_Impl.

Definition at line 594 of file Map_T.i.

References implementation_.

00595 {
00596   ++this->implementation_;
00597 }


Member Data Documentation

template<class T, class VALUE>
ACE_Map_Iterator<ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex> ACE_Active_Map_Manager_Iterator_Adapter::implementation_ [protected]
 

All implementation details are forwarded to this class.

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