ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY > 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< T, IMPLEMENTATION, ENTRY >:

Inheritance graph
[legend]
Collaboration diagram for ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef IMPLEMENTATION implementation

Public Member Functions

 ACE_Map_Impl_Iterator_Adapter (const IMPLEMENTATION &impl)
 Constructor.

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

IMPLEMENTATION & impl (void)
 Accessor to implementation object.


Protected Attributes

IMPLEMENTATION implementation_
 All implementation details are forwarded to this class.


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 .

Definition at line 455 of file Map_T.h.


Member Typedef Documentation

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

Definition at line 461 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 222 of file Map_T.inl.

00223   : implementation_ (impl)
00224 {
00225 }

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

Destructor.

Definition at line 34 of file Map_T.cpp.

00035 {
00036 }


Member Function Documentation

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

Clone.

Implements ACE_Iterator_Impl< T >.

Definition at line 40 of file Map_T.cpp.

References ACE_NEW_RETURN.

00041 {
00042   ACE_Iterator_Impl<T> *temp = 0;
00043   ACE_NEW_RETURN (temp,
00044                   (ACE_Map_Impl_Iterator_Adapter<T, IMPLEMENTATION, ENTRY>) (*this),
00045                   0);
00046   return temp;
00047 }

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

Comparison.

Implements ACE_Iterator_Impl< T >.

Definition at line 50 of file Map_T.cpp.

References ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::implementation_.

00051 {
00052   const ACE_Map_Impl_Iterator_Adapter<T, IMPLEMENTATION, ENTRY> &rhs_local
00053     = dynamic_cast<const ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY> &> (rhs);
00054 
00055   return this->implementation_ == rhs_local.implementation_;
00056 }

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

Dereference.

Implements ACE_Iterator_Impl< T >.

Definition at line 59 of file Map_T.cpp.

00060 {
00061   ENTRY &entry = *this->implementation_;
00062   return T (entry.ext_id_,
00063             entry.int_id_);
00064 }

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 228 of file Map_T.inl.

00229 {
00230   return this->implementation_;
00231 }

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

Reverse.

Implements ACE_Iterator_Impl< T >.

Definition at line 73 of file Map_T.cpp.

00074 {
00075   --this->implementation_;
00076 }

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

Advance.

Implements ACE_Iterator_Impl< T >.

Definition at line 67 of file Map_T.cpp.

00068 {
00069   ++this->implementation_;
00070 }


Member Data Documentation

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

All implementation details are forwarded to this class.

Definition at line 490 of file Map_T.h.

Referenced by ACE_Map_Impl_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::compare().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 11:24:26 2006 for ACE by doxygen 1.3.6