// -*- C++ -*- // //$Id$ ACE_BEGIN_VERSIONED_NAMESPACE_DECL template ACE_INLINE int ACE_Cache_Map_Manager::purge (void) { return this->caching_strategy ().caching_utility ().clear_cache (this->map_, this->caching_strategy ().purge_percent ()); } template ACE_INLINE size_t ACE_Cache_Map_Manager::current_size (void) const { return this->map_.current_size (); } template ACE_INLINE size_t ACE_Cache_Map_Manager::total_size (void) const { return this->map_.total_size (); } template ACE_INLINE CMAP_TYPE & ACE_Cache_Map_Manager::map (void) { return this->map_; } template ACE_INLINE CACHING_STRATEGY & ACE_Cache_Map_Manager::caching_strategy (void) { return this->caching_strategy_; } template ACE_INLINE ACE_Cache_Map_Iterator ACE_Cache_Map_Manager::begin (void) { return ITERATOR (this->map_.begin ()); } template ACE_INLINE ACE_Cache_Map_Iterator ACE_Cache_Map_Manager::end (void) { return ITERATOR (this->map_.end ()); } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator ACE_Cache_Map_Manager::rbegin (void) { return REVERSE_ITERATOR (this->map_.rbegin ()); } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator ACE_Cache_Map_Manager::rend (void) { return REVERSE_ITERATOR (this->map_.rend ()); } //////////////////////////////////////////////////////////////////////////////// template ACE_INLINE ACE_Cache_Map_Iterator::ACE_Cache_Map_Iterator (const ACE_Cache_Map_Iterator &rhs) : iterator_implementation_ (rhs.iterator_implementation_) { } template ACE_INLINE ACE_Cache_Map_Iterator & ACE_Cache_Map_Iterator::operator= (const ACE_Cache_Map_Iterator &rhs) { this->iterator_implementation_ = rhs.iterator_implementation_; return *this; } template ACE_INLINE bool ACE_Cache_Map_Iterator::operator== (const ACE_Cache_Map_Iterator &rhs) const { return this->iterator_implementation_ == rhs.iterator_implementation_; } template ACE_INLINE bool ACE_Cache_Map_Iterator::operator!= (const ACE_Cache_Map_Iterator &rhs) const { return this->iterator_implementation_ != rhs.iterator_implementation_; } template ACE_INLINE ACE_Reference_Pair ACE_Cache_Map_Iterator::operator* (void) const { value_type retn ((*this->iterator_implementation_).ext_id_, (*this->iterator_implementation_).int_id_.first); return retn; } template ACE_INLINE ACE_Cache_Map_Iterator & ACE_Cache_Map_Iterator::operator++ (void) { ++this->iterator_implementation_; return *this; } template ACE_INLINE ACE_Cache_Map_Iterator ACE_Cache_Map_Iterator::operator++ (int) { ACE_Cache_Map_Iterator retn = *this; ++this->iterator_implementation_; return retn; } template ACE_INLINE ACE_Cache_Map_Iterator & ACE_Cache_Map_Iterator::operator-- (void) { --this->iterator_implementation_; return *this; } template ACE_INLINE ACE_Cache_Map_Iterator ACE_Cache_Map_Iterator::operator-- (int) { ACE_Cache_Map_Iterator retn = *this; --this->iterator_implementation_; return retn; } template ACE_INLINE void ACE_Cache_Map_Iterator::dump (void) const { #if defined (ACE_HAS_DUMP) this->iterator_implementation_.dump (); #endif /* ACE_HAS_DUMP */ } template ACE_INLINE ACE_Cache_Map_Iterator::ACE_Cache_Map_Iterator (const IMPLEMENTATION &iterator_impl) : iterator_implementation_ (iterator_impl) { } template ACE_INLINE IMPLEMENTATION & ACE_Cache_Map_Iterator::iterator_implementation (void) { return this->iterator_implementation_; } //////////////////////////////////////////////////////////////////////////////// template ACE_INLINE ACE_Cache_Map_Reverse_Iterator::ACE_Cache_Map_Reverse_Iterator (const ACE_Cache_Map_Reverse_Iterator &rhs) : reverse_iterator_implementation_ (rhs.reverse_iterator_implementation_) { } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator::~ACE_Cache_Map_Reverse_Iterator (void) { } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator & ACE_Cache_Map_Reverse_Iterator::operator= (const ACE_Cache_Map_Reverse_Iterator &rhs) { this->reverse_iterator_implementation_ = rhs.reverse_iterator_implementation_; return *this; } template ACE_INLINE bool ACE_Cache_Map_Reverse_Iterator::operator== (const ACE_Cache_Map_Reverse_Iterator &rhs) const { return this->reverse_iterator_implementation_ == rhs.reverse_iterator_implementation_; } template ACE_INLINE bool ACE_Cache_Map_Reverse_Iterator::operator!= (const ACE_Cache_Map_Reverse_Iterator &rhs) const { return this->reverse_iterator_implementation_ != rhs.reverse_iterator_implementation_; } template ACE_INLINE ACE_Reference_Pair ACE_Cache_Map_Reverse_Iterator::operator* (void) const { value_type retv ((*this->reverse_iterator_implementation_).ext_id_, (*this->reverse_iterator_implementation_).int_id_.first); return retv; } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator & ACE_Cache_Map_Reverse_Iterator::operator++ (void) { ++this->reverse_iterator_implementation_; return *this; } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator ACE_Cache_Map_Reverse_Iterator::operator++ (int) { ACE_Cache_Map_Reverse_Iterator retn = *this; ++this->reverse_iterator_implementation_; return retn; } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator & ACE_Cache_Map_Reverse_Iterator::operator-- (void) { --this->reverse_iterator_implementation_; return *this; } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator ACE_Cache_Map_Reverse_Iterator::operator-- (int) { ACE_Cache_Map_Reverse_Iterator retn = *this; --this->reverse_iterator_implementation_; return retn; } template ACE_INLINE void ACE_Cache_Map_Reverse_Iterator::dump (void) const { #if defined (ACE_HAS_DUMP) this->reverse_iterator_implementation_.dump (); #endif /* ACE_HAS_DUMP */ } template ACE_INLINE ACE_Cache_Map_Reverse_Iterator::ACE_Cache_Map_Reverse_Iterator (const REVERSE_IMPLEMENTATION &iterator_impl) : reverse_iterator_implementation_(iterator_impl) { } template ACE_INLINE REVERSE_IMPLEMENTATION & ACE_Cache_Map_Reverse_Iterator::iterator_implementation (void) { return this->reverse_iterator_implementation_; } ACE_END_VERSIONED_NAMESPACE_DECL