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

ACE_Cache_Map_Iterator Class Template Reference

Defines a iterator for the Cache_Map_Manager. More...

#include <Cache_Map_Manager_T.h>

Collaboration diagram for ACE_Cache_Map_Iterator:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Reference_Pair<
KEY, VALUE > 
value_type
 The actual value mapped to the key in the cache. The <attributes> are used by the strategy and is transperant to the cache user. More...

typedef ACE_Pair< VALUE, ATTRIBUTES > CACHE_VALUE

Public Methods

 ACE_Cache_Map_Iterator (const IMPLEMENTATION &iterator_impl)
 ACE_Cache_Map_Iterator (const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs)
 Copy constructor. More...

virtual ~ACE_Cache_Map_Iterator (void)
ACE_Cache_Map_Iterator< KEY,
VALUE, IMPLEMENTATION, CACHING_STRATEGY,
ATTRIBUTES > & 
operator= (const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs)
 assignment operator. More...

int operator== (const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs) const
 Comparision operators. More...

int operator!= (const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs) const
ACE_Reference_Pair< KEY, VALUE > operator * (void) const
 Returns a reference to the internal element <this> is pointing to. More...

ACE_Cache_Map_Iterator< KEY,
VALUE, IMPLEMENTATION, CACHING_STRATEGY,
ATTRIBUTES > & 
operator++ (void)
 Prefix advance. More...

ACE_Cache_Map_Iterator< KEY,
VALUE, IMPLEMENTATION, CACHING_STRATEGY,
ATTRIBUTES > 
operator++ (int)
 Postfix advance. More...

ACE_Cache_Map_Iterator< KEY,
VALUE, IMPLEMENTATION, CACHING_STRATEGY,
ATTRIBUTES > & 
operator-- (void)
 Prefix reverse. More...

ACE_Cache_Map_Iterator< KEY,
VALUE, IMPLEMENTATION, CACHING_STRATEGY,
ATTRIBUTES > 
operator-- (int)
 Postfix reverse. More...

IMPLEMENTATION & iterator_implementation (void)
 Returns the iterator of the internal map in the custody of the Cache_Map_Manager. More...

void dump (void) const
 Dump the state of an object. More...


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks. More...


Protected Attributes

IMPLEMENTATION iterator_implementation_
 The actual iterator which iterates internally on the map belonging to the Cache_Map_Manager. More...


Detailed Description

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
class ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >

Defines a iterator for the Cache_Map_Manager.

Implementation to be provided by the iterator of the map managed by the ACE_Cache_Map_Manager.

Definition at line 267 of file Cache_Map_Manager_T.h.


Member Typedef Documentation

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
typedef ACE_Pair<VALUE, ATTRIBUTES> ACE_Cache_Map_Iterator::CACHE_VALUE
 

Definition at line 278 of file Cache_Map_Manager_T.h.

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
typedef ACE_Reference_Pair<KEY, VALUE> ACE_Cache_Map_Iterator::value_type
 

The actual value mapped to the key in the cache. The <attributes> are used by the strategy and is transperant to the cache user.

Definition at line 276 of file Cache_Map_Manager_T.h.


Constructor & Destructor Documentation

template<ACE_T1 >
ACE_INLINE ACE_Cache_Map_Iterator<>::ACE_Cache_Map_Iterator const IMPLEMENTATION &    iterator_impl
 

Definition at line 160 of file Cache_Map_Manager_T.i.

00161   : iterator_implementation_ (iterator_impl)
00162 {
00163 }

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::ACE_Cache_Map_Iterator const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &    rhs
 

Copy constructor.

template<ACE_T1 >
ACE_INLINE ACE_Cache_Map_Iterator<>::~ACE_Cache_Map_Iterator void    [virtual]
 

Definition at line 87 of file Cache_Map_Manager_T.i.

00088 {
00089 }


Member Function Documentation

template<ACE_T1 >
ACE_INLINE void ACE_Cache_Map_Iterator<>::dump void    const
 

Dump the state of an object.

Definition at line 154 of file Cache_Map_Manager_T.i.

References iterator_implementation_.

00155 {
00156   this->iterator_implementation_.dump ();
00157 }

template<ACE_T1 >
ACE_INLINE IMPLEMENTATION & ACE_Cache_Map_Iterator<>::iterator_implementation void   
 

Returns the iterator of the internal map in the custody of the Cache_Map_Manager.

Definition at line 166 of file Cache_Map_Manager_T.i.

References iterator_implementation_.

00167 {
00168   return this->iterator_implementation_;
00169 }

template<ACE_T1 >
ACE_INLINE ACE_Reference_Pair< KEY, VALUE > ACE_Cache_Map_Iterator<>::operator * void    const
 

Returns a reference to the internal element <this> is pointing to.

Definition at line 111 of file Cache_Map_Manager_T.i.

00112 {
00113   value_type retn ((*this->iterator_implementation_).ext_id_,
00114                    (*this->iterator_implementation_).int_id_.first ());
00115   return retn;
00116 }

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
int ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator!= const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &    rhs const
 

template<ACE_T1 >
ACE_INLINE ACE_Cache_Map_Iterator< ACE_T2 > ACE_Cache_Map_Iterator<>::operator++ int   
 

Postfix advance.

Definition at line 128 of file Cache_Map_Manager_T.i.

References iterator_implementation_.

00129 {
00130   ACE_Cache_Map_Iterator<ACE_T2> retn = *this;
00131   ++this->iterator_implementation_;
00132   return retn;
00133 }

template<ACE_T1 >
ACE_INLINE ACE_Cache_Map_Iterator< ACE_T2 > & ACE_Cache_Map_Iterator<>::operator++ void   
 

Prefix advance.

Definition at line 120 of file Cache_Map_Manager_T.i.

References iterator_implementation_.

00121 {
00122   ++this->iterator_implementation_;
00123   return *this;
00124 }

template<ACE_T1 >
ACE_INLINE ACE_Cache_Map_Iterator< ACE_T2 > ACE_Cache_Map_Iterator<>::operator-- int   
 

Postfix reverse.

Definition at line 145 of file Cache_Map_Manager_T.i.

References iterator_implementation_.

00146 {
00147   ACE_Cache_Map_Iterator<ACE_T2> retn = *this;
00148   --this->iterator_implementation_;
00149   return retn;
00150 }

template<ACE_T1 >
ACE_INLINE ACE_Cache_Map_Iterator< ACE_T2 > & ACE_Cache_Map_Iterator<>::operator-- void   
 

Prefix reverse.

Definition at line 137 of file Cache_Map_Manager_T.i.

References iterator_implementation_.

00138 {
00139   --this->iterator_implementation_;
00140   return *this;
00141 }

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_Cache_Map_Iterator<KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES>& ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator= const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &    rhs
 

assignment operator.

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
int ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator== const ACE_Cache_Map_Iterator< KEY, VALUE, IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &    rhs const
 

Comparision operators.


Member Data Documentation

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_Cache_Map_Iterator::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Definition at line 327 of file Cache_Map_Manager_T.h.

template<class KEY, class VALUE, class IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
IMPLEMENTATION ACE_Cache_Map_Iterator::iterator_implementation_ [protected]
 

The actual iterator which iterates internally on the map belonging to the Cache_Map_Manager.

Definition at line 332 of file Cache_Map_Manager_T.h.

Referenced by dump, iterator_implementation, operator++, and operator--.


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