ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE > 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< T, VALUE >:
Inheritance graph
[legend]
Collaboration diagram for ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ACE_Active_Map_Manager
< VALUE >::iterator 
implementation

Public Member Functions

 ACE_Active_Map_Manager_Iterator_Adapter (const ACE_Map_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > &impl)
 Constructor.
virtual ~ACE_Active_Map_Manager_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.
ACE_Map_Iterator
< ACE_Active_Map_Manager_Key,
VALUE, ACE_Null_Mutex > & 
impl (void)
 Accessor to implementation object.

Protected Attributes

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

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 736 of file Map_T.h.


Member Typedef Documentation

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

Definition at line 742 of file Map_T.h.


Constructor & Destructor Documentation

template<class T , class VALUE >
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  )  [inline]

Constructor.

Definition at line 266 of file Map_T.inl.

00267   : implementation_ (impl)
00268 {
00269 }

template<class T , class VALUE >
ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::~ACE_Active_Map_Manager_Iterator_Adapter ( void   )  [inline, virtual]

Destructor.

Definition at line 314 of file Map_T.cpp.

00315 {
00316 }


Member Function Documentation

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

Clone.

Implements ACE_Iterator_Impl< T >.

Definition at line 319 of file Map_T.cpp.

00320 {
00321   ACE_Iterator_Impl<T> *temp = 0;
00322   ACE_NEW_RETURN (temp,
00323                   (ACE_Active_Map_Manager_Iterator_Adapter<T, VALUE>) (*this),
00324                   0);
00325   return temp;
00326 }

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

Comparison.

Definition at line 330 of file Map_T.cpp.

00331 {
00332   const ACE_Active_Map_Manager_Iterator_Adapter<T, VALUE> &rhs_local
00333     = dynamic_cast<const ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE> &> (rhs);
00334 
00335   return this->implementation_ == rhs_local.implementation_;
00336 }

template<class T , class VALUE >
T ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::dereference ( void   )  const [inline, virtual]

Dereference.

Implements ACE_Iterator_Impl< T >.

Definition at line 339 of file Map_T.cpp.

00340 {
00341   // The following syntax is necessary to work around certain broken compilers.
00342   // In particular, please do not prefix implementation_ with this->
00343   return T ((*implementation_).int_id_.first (),
00344             (*implementation_).int_id_.second ());
00345 }

template<class T , class VALUE >
ACE_Map_Iterator< ACE_Active_Map_Manager_Key, VALUE, ACE_Null_Mutex > & ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::impl ( void   )  [inline]

Accessor to implementation object.

Definition at line 272 of file Map_T.inl.

00273 {
00274   return this->implementation_;
00275 }

template<class T , class VALUE >
void ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::minus_minus ( void   )  [inline, virtual]

Reverse.

Implements ACE_Iterator_Impl< T >.

Definition at line 354 of file Map_T.cpp.

00355 {
00356   --this->implementation_;
00357 }

template<class T , class VALUE >
void ACE_Active_Map_Manager_Iterator_Adapter< T, VALUE >::plus_plus ( void   )  [inline, virtual]

Advance.

Implements ACE_Iterator_Impl< T >.

Definition at line 348 of file Map_T.cpp.

00349 {
00350   ++this->implementation_;
00351 }


Member Data Documentation

All implementation details are forwarded to this class.

Definition at line 771 of file Map_T.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Sat Nov 21 23:15:47 2009 for ACE by  doxygen 1.6.1