ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > Class Template Reference

Defines a reverse iterator for the Cache_Map_Manager. More...

#include <Cache_Map_Manager_T.h>

Collaboration diagram for ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef ACE_Reference_Pair<
KEY, VALUE > 
value_type
typedef ACE_Pair< VALUE, ATTRIBUTES > CACHE_VALUE

Public Member Functions

 ACE_Cache_Map_Reverse_Iterator (const REVERSE_IMPLEMENTATION &iterator_impl)
 ACE_Cache_Map_Reverse_Iterator (const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs)
 Copy constructor.

 ~ACE_Cache_Map_Reverse_Iterator (void)
ACE_Cache_Map_Reverse_Iterator<
KEY, VALUE, REVERSE_IMPLEMENTATION,
CACHING_STRATEGY, ATTRIBUTES > & 
operator= (const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs)
 Assignment operator.

bool operator== (const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs) const
 Comparision operators.

bool operator!= (const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &rhs) const
ACE_Reference_Pair< KEY, VALUE > operator * (void) const
ACE_Cache_Map_Reverse_Iterator<
KEY, VALUE, REVERSE_IMPLEMENTATION,
CACHING_STRATEGY, ATTRIBUTES > & 
operator++ (void)
 Prefix advance.

ACE_Cache_Map_Reverse_Iterator<
KEY, VALUE, REVERSE_IMPLEMENTATION,
CACHING_STRATEGY, ATTRIBUTES > 
operator++ (int)
 Postfix advance.

ACE_Cache_Map_Reverse_Iterator<
KEY, VALUE, REVERSE_IMPLEMENTATION,
CACHING_STRATEGY, ATTRIBUTES > & 
operator-- (void)
 Prefix reverse.

ACE_Cache_Map_Reverse_Iterator<
KEY, VALUE, REVERSE_IMPLEMENTATION,
CACHING_STRATEGY, ATTRIBUTES > 
operator-- (int)
 Postfix reverse.

REVERSE_IMPLEMENTATION & iterator_implementation (void)
void dump (void) const
 Dump the state of an object.


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Protected Attributes

REVERSE_IMPLEMENTATION reverse_iterator_implementation_

Detailed Description

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
class ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >

Defines a reverse iterator for the Cache_Map_Manager.

Implementation to be provided by the reverse iterator of the map managed by thr Cache_Map_manager.

Definition at line 324 of file Cache_Map_Manager_T.h.


Member Typedef Documentation

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
typedef ACE_Pair<VALUE, ATTRIBUTES> ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::CACHE_VALUE
 

Definition at line 332 of file Cache_Map_Manager_T.h.

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
typedef ACE_Reference_Pair<KEY, VALUE> ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::value_type
 

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

Definition at line 331 of file Cache_Map_Manager_T.h.


Constructor & Destructor Documentation

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::ACE_Cache_Map_Reverse_Iterator const REVERSE_IMPLEMENTATION &  iterator_impl  ) 
 

Definition at line 234 of file Cache_Map_Manager_T.inl.

00235   : reverse_iterator_implementation_(iterator_impl)
00236 {
00237 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::ACE_Cache_Map_Reverse_Iterator const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &  rhs  ) 
 

Copy constructor.

Definition at line 153 of file Cache_Map_Manager_T.inl.

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::~ACE_Cache_Map_Reverse_Iterator void   ) 
 

Definition at line 159 of file Cache_Map_Manager_T.inl.

00160 {
00161 }


Member Function Documentation

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE void ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::dump void   )  const
 

Dump the state of an object.

Definition at line 226 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00227 {
00228 #if defined (ACE_HAS_DUMP)
00229   this->reverse_iterator_implementation_.dump ();
00230 #endif /* ACE_HAS_DUMP */
00231 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE REVERSE_IMPLEMENTATION & ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::iterator_implementation void   ) 
 

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

Definition at line 240 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00241 {
00242   return this->reverse_iterator_implementation_;
00243 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Reference_Pair< KEY, VALUE > ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator * void   )  const
 

Returns a reference to the internal element is pointing to.

Definition at line 183 of file Cache_Map_Manager_T.inl.

00184 {
00185   value_type retv ((*this->reverse_iterator_implementation_).ext_id_,
00186                    (*this->reverse_iterator_implementation_).int_id_.first ());
00187   return retv;
00188 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE bool ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator!= const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &  rhs  )  const
 

Definition at line 177 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00178 {
00179   return this->reverse_iterator_implementation_ != rhs.reverse_iterator_implementation_;
00180 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator++ int   ) 
 

Postfix advance.

Definition at line 200 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > & ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator++ void   ) 
 

Prefix advance.

Definition at line 192 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00193 {
00194   ++this->reverse_iterator_implementation_;
00195   return *this;
00196 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator-- int   ) 
 

Postfix reverse.

Definition at line 217 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > & ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator-- void   ) 
 

Prefix reverse.

Definition at line 209 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00210 {
00211   --this->reverse_iterator_implementation_;
00212   return *this;
00213 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > & ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator= const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &  rhs  ) 
 

Assignment operator.

Definition at line 164 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00165 {
00166   this->reverse_iterator_implementation_ = rhs.reverse_iterator_implementation_;
00167   return *this;
00168 }

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_INLINE bool ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator== const ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES > &  rhs  )  const
 

Comparision operators.

Definition at line 171 of file Cache_Map_Manager_T.inl.

References ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_.

00172 {
00173   return this->reverse_iterator_implementation_ == rhs.reverse_iterator_implementation_;
00174 }


Member Data Documentation

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Definition at line 381 of file Cache_Map_Manager_T.h.

template<class KEY, class VALUE, class REVERSE_IMPLEMENTATION, class CACHING_STRATEGY, class ATTRIBUTES>
REVERSE_IMPLEMENTATION ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::reverse_iterator_implementation_ [protected]
 

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

Definition at line 386 of file Cache_Map_Manager_T.h.

Referenced by ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::dump(), ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::iterator_implementation(), ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator!=(), ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator++(), ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator--(), ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator=(), and ACE_Cache_Map_Reverse_Iterator< KEY, VALUE, REVERSE_IMPLEMENTATION, CACHING_STRATEGY, ATTRIBUTES >::operator==().


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