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

ACE_Map_Impl_Iterator_Adapter Class Template Reference

Defines a iterator implementation for the Map_Impl class. More...

#include <Map_T.h>

Inheritance diagram for ACE_Map_Impl_Iterator_Adapter:

Inheritance graph
[legend]
Collaboration diagram for ACE_Map_Impl_Iterator_Adapter:

Collaboration graph
[legend]
List of all members.

Public Types

typedef IMPLEMENTATION implementation

Public Methods

 ACE_Map_Impl_Iterator_Adapter (const IMPLEMENTATION &impl)
 Constructor. More...

virtual ~ACE_Map_Impl_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...

IMPLEMENTATION & impl (void)
 Accessor to implementation object. More...


Protected Attributes

IMPLEMENTATION implementation_
 All implementation details are forwarded to this class. More...


Detailed Description

template<class T, class IMPLEMENTATION, class ENTRY>
class ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >

Defines a iterator implementation for the Map_Impl class.

Implementation to be provided by <IMPLEMENTATION>.

Definition at line 447 of file Map_T.h.


Member Typedef Documentation

template<class T, class IMPLEMENTATION, class ENTRY>
typedef IMPLEMENTATION ACE_Map_Impl_Iterator_Adapter::implementation
 

Definition at line 453 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::ACE_Map_Impl_Iterator_Adapter const IMPLEMENTATION &    impl
 

Constructor.

Definition at line 233 of file Map_T.i.

00234   : implementation_ (impl)
00235 {
00236 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::~ACE_Map_Impl_Iterator_Adapter void    [virtual]
 

Destructor.

Definition at line 239 of file Map_T.i.

00240 {
00241 }


Member Function Documentation

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE ACE_Iterator_Impl< T > * ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::clone void    const [virtual]
 

Clone.

Implements ACE_Iterator_Impl.

Definition at line 244 of file Map_T.i.

References ACE_NEW_RETURN.

00245 {
00246   ACE_Iterator_Impl<T> *temp = 0;
00247   ACE_NEW_RETURN (temp,
00248                   (ACE_Map_Impl_Iterator_Adapter<T, IMPLEMENTATION, ENTRY>) (*this),
00249                   0);
00250   return temp;
00251 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE int ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::compare const ACE_Iterator_Impl< T > &    rhs const [virtual]
 

Comparison.

Implements ACE_Iterator_Impl.

Definition at line 255 of file Map_T.i.

References implementation_.

00256 {
00257   const ACE_Map_Impl_Iterator_Adapter<T, IMPLEMENTATION, ENTRY> &rhs_local
00258     = ACE_dynamic_cast_3_ref (const ACE_Map_Impl_Iterator_Adapter, T, IMPLEMENTATION, ENTRY, rhs);
00259 
00260   return this->implementation_ == rhs_local.implementation_;
00261 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE T ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::dereference void    const [virtual]
 

Dereference.

Implements ACE_Iterator_Impl.

Definition at line 264 of file Map_T.i.

References implementation_.

00265 {
00266   ENTRY &entry = *this->implementation_;
00267   return T (entry.ext_id_,
00268             entry.int_id_);
00269 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE IMPLEMENTATION & ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::impl void   
 

Accessor to implementation object.

Definition at line 284 of file Map_T.i.

References implementation_.

00285 {
00286   return this->implementation_;
00287 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE void ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::minus_minus void    [virtual]
 

Reverse.

Implements ACE_Iterator_Impl.

Definition at line 278 of file Map_T.i.

References implementation_.

00279 {
00280   --this->implementation_;
00281 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE void ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::plus_plus void    [virtual]
 

Advance.

Implements ACE_Iterator_Impl.

Definition at line 272 of file Map_T.i.

References implementation_.

00273 {
00274   ++this->implementation_;
00275 }


Member Data Documentation

template<class T, class IMPLEMENTATION, class ENTRY>
IMPLEMENTATION ACE_Map_Impl_Iterator_Adapter::implementation_ [protected]
 

All implementation details are forwarded to this class.

Definition at line 482 of file Map_T.h.

Referenced by compare, dereference, impl, minus_minus, and plus_plus.


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