// $Id$ template ACE_INLINE int ACE_Noop_Key_Generator::operator() (T &) { return -1; } template ACE_INLINE ACE_Incremental_Key_Generator::ACE_Incremental_Key_Generator (void) : t_ (0) { } template ACE_INLINE int ACE_Incremental_Key_Generator::operator() (T &t) { t = ++this->t_; return 0; } template ACE_INLINE const T & ACE_Incremental_Key_Generator::current_value (void) const { return this->t_; } template ACE_INLINE ACE_Iterator_Impl::~ACE_Iterator_Impl (void) { } template ACE_INLINE ACE_Reverse_Iterator_Impl::~ACE_Reverse_Iterator_Impl (void) { } template ACE_INLINE ACE_Iterator::ACE_Iterator (ACE_Iterator_Impl *impl) : implementation_ (impl) { } template ACE_INLINE ACE_Iterator::ACE_Iterator (const ACE_Iterator &rhs) : implementation_ (rhs.implementation_->clone ()) { } template ACE_INLINE ACE_Iterator::~ACE_Iterator (void) { delete this->implementation_; } template ACE_INLINE ACE_Iterator & ACE_Iterator::operator= (const ACE_Iterator &rhs) { delete this->implementation_; this->implementation_ = rhs.implementation_->clone (); return *this; } template ACE_INLINE int ACE_Iterator::operator== (const ACE_Iterator &rhs) const { return this->implementation_->compare (*rhs.implementation_); } template ACE_INLINE int ACE_Iterator::operator!= (const ACE_Iterator &rhs) const { return !this->operator== (rhs); } template ACE_INLINE T ACE_Iterator::operator* (void) const { return this->implementation_->dereference (); } template ACE_INLINE ACE_Iterator & ACE_Iterator::operator++ (void) { this->implementation_->plus_plus (); return *this; } template ACE_INLINE ACE_Iterator ACE_Iterator::operator++ (int) { ACE_Iterator tmp = *this; this->implementation_->plus_plus (); return tmp; } template ACE_INLINE ACE_Iterator & ACE_Iterator::operator-- (void) { this->implementation_->minus_minus (); return *this; } template ACE_INLINE ACE_Iterator ACE_Iterator::operator-- (int) { ACE_Iterator tmp = *this; this->implementation_->minus_minus (); return tmp; } template ACE_INLINE ACE_Iterator_Impl & ACE_Iterator::impl (void) { return *this->implementation_; } template ACE_INLINE ACE_Reverse_Iterator::ACE_Reverse_Iterator (ACE_Reverse_Iterator_Impl *impl) : implementation_ (impl) { } template ACE_INLINE ACE_Reverse_Iterator::ACE_Reverse_Iterator (const ACE_Reverse_Iterator &rhs) : implementation_ (rhs.implementation_->clone ()) { } template ACE_INLINE ACE_Reverse_Iterator::~ACE_Reverse_Iterator (void) { delete this->implementation_; } template ACE_INLINE ACE_Reverse_Iterator & ACE_Reverse_Iterator::operator= (const ACE_Reverse_Iterator &rhs) { delete this->implementation_; this->implementation_ = rhs.implementation_->clone (); return *this; } template ACE_INLINE int ACE_Reverse_Iterator::operator== (const ACE_Reverse_Iterator &rhs) const { return this->implementation_->compare (*rhs.implementation_); } template ACE_INLINE int ACE_Reverse_Iterator::operator!= (const ACE_Reverse_Iterator &rhs) const { return !this->operator== (rhs); } template ACE_INLINE T ACE_Reverse_Iterator::operator* (void) const { return this->implementation_->dereference (); } template ACE_INLINE ACE_Reverse_Iterator & ACE_Reverse_Iterator::operator++ (void) { this->implementation_->plus_plus (); return *this; } template ACE_INLINE ACE_Reverse_Iterator ACE_Reverse_Iterator::operator++ (int) { ACE_Reverse_Iterator tmp = *this; this->implementation_->plus_plus (); return tmp; } template ACE_INLINE ACE_Reverse_Iterator & ACE_Reverse_Iterator::operator-- (void) { this->implementation_->minus_minus (); return *this; } template ACE_INLINE ACE_Reverse_Iterator ACE_Reverse_Iterator::operator-- (int) { ACE_Reverse_Iterator tmp = *this; this->implementation_->minus_minus (); return tmp; } template ACE_INLINE ACE_Reverse_Iterator_Impl & ACE_Reverse_Iterator::impl (void) { return *this->implementation_; } template ACE_INLINE ACE_Map::ACE_Map (void) { } template ACE_INLINE ACE_Map::~ACE_Map (void) { } template ACE_INLINE ACE_Iterator > ACE_Map::begin (void) { return iterator (this->begin_impl ()); } template ACE_INLINE ACE_Iterator > ACE_Map::end (void) { return iterator (this->end_impl ()); } template ACE_INLINE ACE_Reverse_Iterator > ACE_Map::rbegin (void) { return reverse_iterator (this->rbegin_impl ()); } template ACE_INLINE ACE_Reverse_Iterator > ACE_Map::rend (void) { return reverse_iterator (this->rend_impl ()); } template ACE_INLINE ACE_Map_Impl_Iterator_Adapter::ACE_Map_Impl_Iterator_Adapter (const IMPLEMENTATION &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Map_Impl_Iterator_Adapter::~ACE_Map_Impl_Iterator_Adapter (void) { } template ACE_INLINE ACE_Iterator_Impl * ACE_Map_Impl_Iterator_Adapter::clone (void) const { ACE_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Map_Impl_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Map_Impl_Iterator_Adapter::compare (const ACE_Iterator_Impl &rhs) const { const ACE_Map_Impl_Iterator_Adapter &rhs_local = ACE_dynamic_cast_3_ref (const ACE_Map_Impl_Iterator_Adapter, T, IMPLEMENTATION, ENTRY, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Map_Impl_Iterator_Adapter::dereference () const { ENTRY &entry = *this->implementation_; return T (entry.ext_id_, entry.int_id_); } template ACE_INLINE void ACE_Map_Impl_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Map_Impl_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE IMPLEMENTATION & ACE_Map_Impl_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Map_Impl_Reverse_Iterator_Adapter::ACE_Map_Impl_Reverse_Iterator_Adapter (const IMPLEMENTATION &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Map_Impl_Reverse_Iterator_Adapter::~ACE_Map_Impl_Reverse_Iterator_Adapter (void) { } template ACE_INLINE ACE_Reverse_Iterator_Impl * ACE_Map_Impl_Reverse_Iterator_Adapter::clone (void) const { ACE_Reverse_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Map_Impl_Reverse_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Map_Impl_Reverse_Iterator_Adapter::compare (const ACE_Reverse_Iterator_Impl &rhs) const { const ACE_Map_Impl_Reverse_Iterator_Adapter &rhs_local = ACE_dynamic_cast_3_ref (const ACE_Map_Impl_Reverse_Iterator_Adapter, T, IMPLEMENTATION, ENTRY, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Map_Impl_Reverse_Iterator_Adapter::dereference () const { ENTRY &entry = *this->implementation_; return T (entry.ext_id_, entry.int_id_); } template ACE_INLINE void ACE_Map_Impl_Reverse_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Map_Impl_Reverse_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE IMPLEMENTATION & ACE_Map_Impl_Reverse_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Map_Impl::ACE_Map_Impl (ACE_Allocator *alloc) : implementation_ (alloc) { } template ACE_INLINE ACE_Map_Impl::ACE_Map_Impl (size_t size, ACE_Allocator *alloc) : implementation_ (size, alloc) { } template ACE_INLINE ACE_Map_Impl::~ACE_Map_Impl (void) { } template ACE_INLINE int ACE_Map_Impl::open (size_t length, ACE_Allocator *alloc) { return this->implementation_.open (length, alloc); } template ACE_INLINE int ACE_Map_Impl::close (void) { return this->implementation_.close (); } template ACE_INLINE int ACE_Map_Impl::bind (const KEY &key, const VALUE &value) { return this->implementation_.bind (key, value); } template ACE_INLINE int ACE_Map_Impl::bind_modify_key (const VALUE &value, KEY &key) { return this->implementation_.bind_modify_key (value, key); } template ACE_INLINE int ACE_Map_Impl::create_key (KEY &key) { return this->implementation_.create_key (key); } template ACE_INLINE int ACE_Map_Impl::bind_create_key (const VALUE &value, KEY &key) { return this->implementation_.bind_create_key (value, key); } template ACE_INLINE int ACE_Map_Impl::bind_create_key (const VALUE &value) { return this->implementation_.bind_create_key (value); } template ACE_INLINE int ACE_Map_Impl::recover_key (const KEY &modified_key, KEY &original_key) { return this->implementation_.recover_key (modified_key, original_key); } template ACE_INLINE int ACE_Map_Impl::rebind (const KEY &key, const VALUE &value) { return this->implementation_.rebind (key, value); } template ACE_INLINE int ACE_Map_Impl::rebind (const KEY &key, const VALUE &value, VALUE &old_value) { return this->implementation_.rebind (key, value, old_value); } template ACE_INLINE int ACE_Map_Impl::rebind (const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value) { return this->implementation_.rebind (key, value, old_key, old_value); } template ACE_INLINE int ACE_Map_Impl::trybind (const KEY &key, VALUE &value) { return this->implementation_.trybind (key, value); } template ACE_INLINE int ACE_Map_Impl::find (const KEY &key, VALUE &value) { return this->implementation_.find (key, value); } template ACE_INLINE int ACE_Map_Impl::find (const KEY &key) { return this->implementation_.find (key); } template ACE_INLINE int ACE_Map_Impl::unbind (const KEY &key) { return this->implementation_.unbind (key); } template ACE_INLINE int ACE_Map_Impl::unbind (const KEY &key, VALUE &value) { return this->implementation_.unbind (key, value); } template ACE_INLINE size_t ACE_Map_Impl::current_size (void) const { return this->implementation_.current_size (); } template ACE_INLINE size_t ACE_Map_Impl::total_size (void) const { return this->implementation_.total_size (); } template ACE_INLINE void ACE_Map_Impl::dump (void) const { this->implementation_.dump (); } template ACE_INLINE ACE_Iterator_Impl > * ACE_Map_Impl::begin_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.begin ()), 0); return temp; } template ACE_INLINE ACE_Iterator_Impl > * ACE_Map_Impl::end_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.end ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Map_Impl::rbegin_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rbegin ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Map_Impl::rend_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rend ()), 0); return temp; } template ACE_INLINE IMPLEMENTATION & ACE_Map_Impl::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Active_Map_Manager_Iterator_Adapter::ACE_Active_Map_Manager_Iterator_Adapter (const ACE_Map_Iterator &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Active_Map_Manager_Iterator_Adapter::~ACE_Active_Map_Manager_Iterator_Adapter (void) { } template ACE_INLINE ACE_Iterator_Impl * ACE_Active_Map_Manager_Iterator_Adapter::clone (void) const { ACE_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Active_Map_Manager_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Active_Map_Manager_Iterator_Adapter::compare (const ACE_Iterator_Impl &rhs) const { const ACE_Active_Map_Manager_Iterator_Adapter &rhs_local = ACE_dynamic_cast_2_ref (const ACE_Active_Map_Manager_Iterator_Adapter, T, VALUE, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Active_Map_Manager_Iterator_Adapter::dereference () const { // The following syntax is necessary to work around certain broken compilers. // In particular, please do not prefix implementation_ with this-> return T ((*implementation_).int_id_.first (), (*implementation_).int_id_.second ()); } template ACE_INLINE void ACE_Active_Map_Manager_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Active_Map_Manager_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE ACE_Map_Iterator & ACE_Active_Map_Manager_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Active_Map_Manager_Reverse_Iterator_Adapter::ACE_Active_Map_Manager_Reverse_Iterator_Adapter (const ACE_Map_Reverse_Iterator &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Active_Map_Manager_Reverse_Iterator_Adapter::~ACE_Active_Map_Manager_Reverse_Iterator_Adapter (void) { } template ACE_INLINE ACE_Reverse_Iterator_Impl * ACE_Active_Map_Manager_Reverse_Iterator_Adapter::clone (void) const { ACE_Reverse_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Active_Map_Manager_Reverse_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Active_Map_Manager_Reverse_Iterator_Adapter::compare (const ACE_Reverse_Iterator_Impl &rhs) const { const ACE_Active_Map_Manager_Reverse_Iterator_Adapter &rhs_local = ACE_dynamic_cast_2_ref (const ACE_Active_Map_Manager_Reverse_Iterator_Adapter, T, VALUE, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Active_Map_Manager_Reverse_Iterator_Adapter::dereference () const { // The following syntax is necessary to work around certain broken compilers. // In particular, please do not prefix implementation_ with this-> return T ((*implementation_).int_id_.first (), (*implementation_).int_id_.second ()); } template ACE_INLINE void ACE_Active_Map_Manager_Reverse_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Active_Map_Manager_Reverse_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE ACE_Map_Reverse_Iterator & ACE_Active_Map_Manager_Reverse_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Active_Map_Manager_Adapter::ACE_Active_Map_Manager_Adapter (ACE_Allocator *alloc) : implementation_ (alloc) { } template ACE_INLINE ACE_Active_Map_Manager_Adapter::ACE_Active_Map_Manager_Adapter (size_t size, ACE_Allocator *alloc) : implementation_ (size, alloc) { } template ACE_INLINE ACE_Active_Map_Manager_Adapter::~ACE_Active_Map_Manager_Adapter (void) { } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::open (size_t length, ACE_Allocator *alloc) { return this->implementation_.open (length, alloc); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::close (void) { return this->implementation_.close (); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::bind (const KEY &, const VALUE &) { ACE_NOTSUP_RETURN (-1); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::bind_modify_key (const VALUE &value, KEY &key) { // Reserve a slot and create an active key. expanded_value *internal_value = 0; ACE_Active_Map_Manager_Key active_key; int result = this->implementation_.bind (active_key, internal_value); if (result == 0) { // Encode the active key and the existing user key into key part // of . result = this->key_adapter_.encode (key, active_key, internal_value->first ()); if (result == 0) { // Copy user value into . internal_value->second (value); // Copy new, modified key back to the user key. key = internal_value->first (); } else { // In case of errors, unbind from map. this->implementation_.unbind (active_key); } } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::create_key (KEY &) { ACE_NOTSUP_RETURN (-1); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::bind_create_key (const VALUE &value, KEY &key) { // Reserve a slot and create an active key. expanded_value *internal_value = 0; ACE_Active_Map_Manager_Key active_key; int result = this->implementation_.bind (active_key, internal_value); if (result == 0) { // Encode the active key into key part of . result = this->key_adapter_.encode (internal_value->first (), active_key, internal_value->first ()); if (result == 0) { // Copy user value into . internal_value->second (value); // Copy new, modified key to the user key. key = internal_value->first (); } else { // In case of errors, unbind from map. this->implementation_.unbind (active_key); } } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::bind_create_key (const VALUE &value) { // Reserve a slot and create an active key. expanded_value *internal_value = 0; ACE_Active_Map_Manager_Key active_key; int result = this->implementation_.bind (active_key, internal_value); if (result == 0) { // Encode the active key into key part of . result = this->key_adapter_.encode (internal_value->first (), active_key, internal_value->first ()); if (result == 0) { // Copy user value into . internal_value->second (value); } else { // In case of errors, unbind from map. this->implementation_.unbind (active_key); } } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::recover_key (const KEY &modified_key, KEY &original_key) { // Ask the to help out with recovering the original // user key, since it was the one that encode it in the first place. return this->key_adapter_.decode (modified_key, original_key); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::find (const KEY &key, expanded_value *&internal_value) { // Ask the to recover the active key. ACE_Active_Map_Manager_Key active_key; int result = this->key_adapter_.decode (key, active_key); if (result == 0) { // Find recovered active key in map. result = this->implementation_.find (active_key, internal_value); } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::find (const KEY &key, VALUE &value) { expanded_value *internal_value = 0; int result = this->find (key, internal_value); if (result == 0) { // Copy value. value = internal_value->second (); } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::find (const KEY &key) { expanded_value *internal_value = 0; return this->find (key, internal_value); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::rebind (const KEY &key, const VALUE &value) { expanded_value *internal_value = 0; int result = this->find (key, internal_value); if (result == 0) { // Reset value. internal_value->second (value); } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::rebind (const KEY &key, const VALUE &value, VALUE &old_value) { expanded_value *internal_value = 0; int result = this->find (key, internal_value); if (result == 0) { // Copy old value. old_value = internal_value->second (); // Reset to new value. internal_value->second (value); } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::rebind (const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value) { expanded_value *internal_value = 0; int result = this->find (key, internal_value); if (result == 0) { // Copy old key and value. old_key = internal_value->first (); old_value = internal_value->second (); // Reset to new value. internal_value->second (value); } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::trybind (const KEY &, VALUE &) { ACE_NOTSUP_RETURN (-1); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::unbind (const KEY &key, expanded_value *&internal_value) { // Ask the to recover the active key. ACE_Active_Map_Manager_Key active_key; int result = this->key_adapter_.decode (key, active_key); if (result == 0) { // Unbind recovered active key from map. result = this->implementation_.unbind (active_key, internal_value); } return result; } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::unbind (const KEY &key) { expanded_value *internal_value = 0; return this->unbind (key, internal_value); } template ACE_INLINE int ACE_Active_Map_Manager_Adapter::unbind (const KEY &key, VALUE &value) { expanded_value *internal_value = 0; int result = this->unbind (key, internal_value); if (result == 0) { // Copy value. value = internal_value->second (); } return result; } template ACE_INLINE size_t ACE_Active_Map_Manager_Adapter::current_size (void) const { return this->implementation_.current_size (); } template ACE_INLINE size_t ACE_Active_Map_Manager_Adapter::total_size (void) const { return this->implementation_.total_size (); } template ACE_INLINE void ACE_Active_Map_Manager_Adapter::dump (void) const { this->implementation_.dump (); } template ACE_INLINE ACE_Iterator_Impl > * ACE_Active_Map_Manager_Adapter::begin_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.begin ()), 0); return temp; } template ACE_INLINE ACE_Iterator_Impl > * ACE_Active_Map_Manager_Adapter::end_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.end ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Active_Map_Manager_Adapter::rbegin_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rbegin ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Active_Map_Manager_Adapter::rend_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rend ()), 0); return temp; } template ACE_INLINE ACE_Active_Map_Manager > & ACE_Active_Map_Manager_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE KEY_ADAPTER & ACE_Active_Map_Manager_Adapter::key_adapter (void) { return this->key_adapter_; } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Iterator_Adapter::ACE_Hash_Map_Manager_Ex_Iterator_Adapter (const ACE_Hash_Map_Iterator_Ex &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Iterator_Adapter::~ACE_Hash_Map_Manager_Ex_Iterator_Adapter (void) { } template ACE_INLINE ACE_Iterator_Impl * ACE_Hash_Map_Manager_Ex_Iterator_Adapter::clone (void) const { ACE_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Hash_Map_Manager_Ex_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Iterator_Adapter::compare (const ACE_Iterator_Impl &rhs) const { const ACE_Hash_Map_Manager_Ex_Iterator_Adapter &rhs_local = ACE_dynamic_cast_5_ref (const ACE_Hash_Map_Manager_Ex_Iterator_Adapter, T, KEY, VALUE, HASH_KEY, COMPARE_KEYS, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Hash_Map_Manager_Ex_Iterator_Adapter::dereference () const { // The following syntax is necessary to work around certain broken compilers. // In particular, please do not prefix implementation_ with this-> return T ((*implementation_).ext_id_, (*implementation_).int_id_); } template ACE_INLINE void ACE_Hash_Map_Manager_Ex_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Hash_Map_Manager_Ex_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE ACE_Hash_Map_Iterator_Ex & ACE_Hash_Map_Manager_Ex_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter (const ACE_Hash_Map_Reverse_Iterator_Ex &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::~ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter (void) { } template ACE_INLINE ACE_Reverse_Iterator_Impl * ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::clone (void) const { ACE_Reverse_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::compare (const ACE_Reverse_Iterator_Impl &rhs) const { const ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter &rhs_local = ACE_dynamic_cast_5_ref (const ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter, T, KEY, VALUE, HASH_KEY, COMPARE_KEYS, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::dereference () const { // The following syntax is necessary to work around certain broken compilers. // In particular, please do not prefix implementation_ with this-> return T ((*implementation_).ext_id_, (*implementation_).int_id_); } template ACE_INLINE void ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE ACE_Hash_Map_Reverse_Iterator_Ex & ACE_Hash_Map_Manager_Ex_Reverse_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Adapter::ACE_Hash_Map_Manager_Ex_Adapter (ACE_Allocator *alloc) : implementation_ (alloc) { } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Adapter::ACE_Hash_Map_Manager_Ex_Adapter (size_t size, ACE_Allocator *alloc) : implementation_ (size, alloc) { } template ACE_INLINE ACE_Hash_Map_Manager_Ex_Adapter::~ACE_Hash_Map_Manager_Ex_Adapter (void) { } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::open (size_t length, ACE_Allocator *alloc) { return this->implementation_.open (length, alloc); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::close (void) { return this->implementation_.close (); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::bind (const KEY &key, const VALUE &value) { return this->implementation_.bind (key, value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::bind_modify_key (const VALUE &value, KEY &key) { return this->implementation_.bind (key, value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::create_key (KEY &key) { // Invoke the user specified key generation functor. return this->key_generator_ (key); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::bind_create_key (const VALUE &value, KEY &key) { // Invoke the user specified key generation functor. int result = this->key_generator_ (key); if (result == 0) { // Try to add. result = this->implementation_.bind (key, value); } return result; } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::bind_create_key (const VALUE &value) { KEY key; return this->bind_create_key (value, key); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::recover_key (const KEY &modified_key, KEY &original_key) { original_key = modified_key; return 0; } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::rebind (const KEY &key, const VALUE &value) { return this->implementation_.rebind (key, value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::rebind (const KEY &key, const VALUE &value, VALUE &old_value) { return this->implementation_.rebind (key, value, old_value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::rebind (const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value) { return this->implementation_.rebind (key, value, old_key, old_value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::trybind (const KEY &key, VALUE &value) { return this->implementation_.trybind (key, value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::find (const KEY &key, VALUE &value) { return this->implementation_.find (key, value); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::find (const KEY &key) { return this->implementation_.find (key); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::unbind (const KEY &key) { return this->implementation_.unbind (key); } template ACE_INLINE int ACE_Hash_Map_Manager_Ex_Adapter::unbind (const KEY &key, VALUE &value) { return this->implementation_.unbind (key, value); } template ACE_INLINE size_t ACE_Hash_Map_Manager_Ex_Adapter::current_size (void) const { return this->implementation_.current_size (); } template ACE_INLINE size_t ACE_Hash_Map_Manager_Ex_Adapter::total_size (void) const { return this->implementation_.total_size (); } template ACE_INLINE void ACE_Hash_Map_Manager_Ex_Adapter::dump (void) const { this->implementation_.dump (); } template ACE_INLINE ACE_Iterator_Impl > * ACE_Hash_Map_Manager_Ex_Adapter::begin_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.begin ()), 0); return temp; } template ACE_INLINE ACE_Iterator_Impl > * ACE_Hash_Map_Manager_Ex_Adapter::end_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.end ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Hash_Map_Manager_Ex_Adapter::rbegin_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rbegin ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Hash_Map_Manager_Ex_Adapter::rend_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rend ()), 0); return temp; } template ACE_INLINE ACE_Hash_Map_Manager_Ex & ACE_Hash_Map_Manager_Ex_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE KEY_GENERATOR & ACE_Hash_Map_Manager_Ex_Adapter::key_generator (void) { return this->key_generator_; } template ACE_INLINE ACE_Map_Manager_Iterator_Adapter::ACE_Map_Manager_Iterator_Adapter (const ACE_Map_Iterator &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Map_Manager_Iterator_Adapter::~ACE_Map_Manager_Iterator_Adapter (void) { } template ACE_INLINE ACE_Iterator_Impl * ACE_Map_Manager_Iterator_Adapter::clone (void) const { ACE_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Map_Manager_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Map_Manager_Iterator_Adapter::compare (const ACE_Iterator_Impl &rhs) const { const ACE_Map_Manager_Iterator_Adapter &rhs_local = ACE_dynamic_cast_3_ref (const ACE_Map_Manager_Iterator_Adapter, T, KEY, VALUE, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Map_Manager_Iterator_Adapter::dereference () const { // The following syntax is necessary to work around certain broken compilers. // In particular, please do not prefix implementation_ with this-> return T ((*implementation_).ext_id_, (*implementation_).int_id_); } template ACE_INLINE void ACE_Map_Manager_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Map_Manager_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE ACE_Map_Iterator & ACE_Map_Manager_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Map_Manager_Reverse_Iterator_Adapter::ACE_Map_Manager_Reverse_Iterator_Adapter (const ACE_Map_Reverse_Iterator &impl) : implementation_ (impl) { } template ACE_INLINE ACE_Map_Manager_Reverse_Iterator_Adapter::~ACE_Map_Manager_Reverse_Iterator_Adapter (void) { } template ACE_INLINE ACE_Reverse_Iterator_Impl * ACE_Map_Manager_Reverse_Iterator_Adapter::clone (void) const { ACE_Reverse_Iterator_Impl *temp = 0; ACE_NEW_RETURN (temp, (ACE_Map_Manager_Reverse_Iterator_Adapter) (*this), 0); return temp; } template ACE_INLINE int ACE_Map_Manager_Reverse_Iterator_Adapter::compare (const ACE_Reverse_Iterator_Impl &rhs) const { const ACE_Map_Manager_Reverse_Iterator_Adapter &rhs_local = ACE_dynamic_cast_3_ref (const ACE_Map_Manager_Reverse_Iterator_Adapter, T, KEY, VALUE, rhs); return this->implementation_ == rhs_local.implementation_; } template ACE_INLINE T ACE_Map_Manager_Reverse_Iterator_Adapter::dereference () const { // The following syntax is necessary to work around certain broken compilers. // In particular, please do not prefix implementation_ with this-> return T ((*implementation_).ext_id_, (*implementation_).int_id_); } template ACE_INLINE void ACE_Map_Manager_Reverse_Iterator_Adapter::plus_plus (void) { ++this->implementation_; } template ACE_INLINE void ACE_Map_Manager_Reverse_Iterator_Adapter::minus_minus (void) { --this->implementation_; } template ACE_INLINE ACE_Map_Reverse_Iterator & ACE_Map_Manager_Reverse_Iterator_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE ACE_Map_Manager_Adapter::ACE_Map_Manager_Adapter (ACE_Allocator *alloc) : implementation_ (alloc) { } template ACE_INLINE ACE_Map_Manager_Adapter::ACE_Map_Manager_Adapter (size_t size, ACE_Allocator *alloc) : implementation_ (size, alloc) { } template ACE_INLINE ACE_Map_Manager_Adapter::~ACE_Map_Manager_Adapter (void) { } template ACE_INLINE int ACE_Map_Manager_Adapter::open (size_t length, ACE_Allocator *alloc) { return this->implementation_.open (length, alloc); } template ACE_INLINE int ACE_Map_Manager_Adapter::close (void) { return this->implementation_.close (); } template ACE_INLINE int ACE_Map_Manager_Adapter::bind (const KEY &key, const VALUE &value) { return this->implementation_.bind (key, value); } template ACE_INLINE int ACE_Map_Manager_Adapter::bind_modify_key (const VALUE &value, KEY &key) { return this->implementation_.bind (key, value); } template ACE_INLINE int ACE_Map_Manager_Adapter::create_key (KEY &key) { // Invoke the user specified key generation functor. return this->key_generator_ (key); } template ACE_INLINE int ACE_Map_Manager_Adapter::bind_create_key (const VALUE &value, KEY &key) { // Invoke the user specified key generation functor. int result = this->key_generator_ (key); if (result == 0) { // Try to add. result = this->implementation_.bind (key, value); } return result; } template ACE_INLINE int ACE_Map_Manager_Adapter::bind_create_key (const VALUE &value) { KEY key; return this->bind_create_key (value, key); } template ACE_INLINE int ACE_Map_Manager_Adapter::recover_key (const KEY &modified_key, KEY &original_key) { original_key = modified_key; return 0; } template ACE_INLINE int ACE_Map_Manager_Adapter::rebind (const KEY &key, const VALUE &value) { return this->implementation_.rebind (key, value); } template ACE_INLINE int ACE_Map_Manager_Adapter::rebind (const KEY &key, const VALUE &value, VALUE &old_value) { return this->implementation_.rebind (key, value, old_value); } template ACE_INLINE int ACE_Map_Manager_Adapter::rebind (const KEY &key, const VALUE &value, KEY &old_key, VALUE &old_value) { return this->implementation_.rebind (key, value, old_key, old_value); } template ACE_INLINE int ACE_Map_Manager_Adapter::trybind (const KEY &key, VALUE &value) { return this->implementation_.trybind (key, value); } template ACE_INLINE int ACE_Map_Manager_Adapter::find (const KEY &key, VALUE &value) { return this->implementation_.find (key, value); } template ACE_INLINE int ACE_Map_Manager_Adapter::find (const KEY &key) { return this->implementation_.find (key); } template ACE_INLINE int ACE_Map_Manager_Adapter::unbind (const KEY &key) { return this->implementation_.unbind (key); } template ACE_INLINE int ACE_Map_Manager_Adapter::unbind (const KEY &key, VALUE &value) { return this->implementation_.unbind (key, value); } template ACE_INLINE size_t ACE_Map_Manager_Adapter::current_size (void) const { return this->implementation_.current_size (); } template ACE_INLINE size_t ACE_Map_Manager_Adapter::total_size (void) const { return this->implementation_.total_size (); } template ACE_INLINE void ACE_Map_Manager_Adapter::dump (void) const { this->implementation_.dump (); } template ACE_INLINE ACE_Iterator_Impl > * ACE_Map_Manager_Adapter::begin_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.begin ()), 0); return temp; } template ACE_INLINE ACE_Iterator_Impl > * ACE_Map_Manager_Adapter::end_impl (void) { ACE_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, iterator_impl (this->implementation_.end ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Map_Manager_Adapter::rbegin_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rbegin ()), 0); return temp; } template ACE_INLINE ACE_Reverse_Iterator_Impl > * ACE_Map_Manager_Adapter::rend_impl (void) { ACE_Reverse_Iterator_Impl > *temp = 0; ACE_NEW_RETURN (temp, reverse_iterator_impl (this->implementation_.rend ()), 0); return temp; } template ACE_INLINE ACE_Map_Manager & ACE_Map_Manager_Adapter::impl (void) { return this->implementation_; } template ACE_INLINE KEY_GENERATOR & ACE_Map_Manager_Adapter::key_generator (void) { return this->key_generator_; }