ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY > Class Template Reference

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

#include <Map_T.h>

Inheritance diagram for ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef IMPLEMENTATION implementation

Public Member Functions

 ACE_Map_Impl_Reverse_Iterator_Adapter (const IMPLEMENTATION &impl)
 Constructor.
virtual ~ACE_Map_Impl_Reverse_Iterator_Adapter (void)
 Destructor.
virtual ACE_Reverse_Iterator_Impl<
T > * 
clone (void) const
 Clone.
virtual int compare (const ACE_Reverse_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_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >

Defines a reverse iterator implementation for the Map_Impl class.

Implementation to be provided by IMPLEMENTATION.

Definition at line 501 of file Map_T.h.


Member Typedef Documentation

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

Definition at line 507 of file Map_T.h.


Constructor & Destructor Documentation

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::ACE_Map_Impl_Reverse_Iterator_Adapter ( const IMPLEMENTATION &  impl  ) 

Constructor.

Definition at line 234 of file Map_T.inl.

00235   : implementation_ (impl)
00236 {
00237 }

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

Destructor.

Definition at line 79 of file Map_T.cpp.

00080 {
00081 }


Member Function Documentation

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_Reverse_Iterator_Impl< T > * ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::clone ( void   )  const [virtual]

Clone.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 84 of file Map_T.cpp.

References ACE_NEW_RETURN.

00085 {
00086   ACE_Reverse_Iterator_Impl<T> *temp = 0;
00087   ACE_NEW_RETURN (temp,
00088                   (ACE_Map_Impl_Reverse_Iterator_Adapter<T, IMPLEMENTATION, ENTRY>) (*this),
00089                   0);
00090   return temp;
00091 }

template<class T, class IMPLEMENTATION, class ENTRY>
int ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::compare ( const ACE_Reverse_Iterator_Impl< T > &  rhs  )  const [virtual]

Comparison.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 95 of file Map_T.cpp.

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

00096 {
00097   const ACE_Map_Impl_Reverse_Iterator_Adapter<T, IMPLEMENTATION, ENTRY> &rhs_local
00098     = dynamic_cast<const ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY> &> (rhs);
00099 
00100   return this->implementation_ == rhs_local.implementation_;
00101 }

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

Dereference.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 104 of file Map_T.cpp.

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

00105 {
00106   ENTRY &entry = *this->implementation_;
00107   return T (entry.ext_id_,
00108             entry.int_id_);
00109 }

template<class T, class IMPLEMENTATION, class ENTRY>
ACE_INLINE IMPLEMENTATION & ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::impl ( void   ) 

Accessor to implementation object.

Definition at line 240 of file Map_T.inl.

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

00241 {
00242   return this->implementation_;
00243 }

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

Reverse.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 118 of file Map_T.cpp.

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

00119 {
00120   --this->implementation_;
00121 }

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

Advance.

Implements ACE_Reverse_Iterator_Impl< T >.

Definition at line 112 of file Map_T.cpp.

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

00113 {
00114   ++this->implementation_;
00115 }


Member Data Documentation

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

All implementation details are forwarded to this class.

Definition at line 536 of file Map_T.h.

Referenced by ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::compare(), ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::dereference(), ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::impl(), ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::minus_minus(), and ACE_Map_Impl_Reverse_Iterator_Adapter< T, IMPLEMENTATION, ENTRY >::plus_plus().


The documentation for this class was generated from the following files:
Generated on Tue Feb 2 17:35:18 2010 for ACE by  doxygen 1.4.7