diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:30 +0000 |
commit | c44379cc7d9c7aa113989237ab0f56db12aa5219 (patch) | |
tree | 66a84b20d47f2269d8bdc6e0323f338763424d3a /ACE/ace/Hash_Map_With_Allocator_T.inl | |
parent | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (diff) | |
download | ATCD-c44379cc7d9c7aa113989237ab0f56db12aa5219.tar.gz |
Repo restructuring
Diffstat (limited to 'ACE/ace/Hash_Map_With_Allocator_T.inl')
-rw-r--r-- | ACE/ace/Hash_Map_With_Allocator_T.inl | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/ACE/ace/Hash_Map_With_Allocator_T.inl b/ACE/ace/Hash_Map_With_Allocator_T.inl new file mode 100644 index 00000000000..4ba51437abf --- /dev/null +++ b/ACE/ace/Hash_Map_With_Allocator_T.inl @@ -0,0 +1,82 @@ +// -*- C++ -*- + +// $Id$ + +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::close (ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::close"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->close_i (); +} + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::bind (const EXT_ID &ext_id, + const INT_ID &int_id, + ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::bind"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->bind_i (ext_id, int_id); +} + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::unbind (const EXT_ID &ext_id, + INT_ID &int_id, + ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::unbind"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->unbind_i (ext_id, int_id); +} + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::unbind (const EXT_ID &ext_id, + ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID>::unbind"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->unbind_i (ext_id); +} + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::rebind (const EXT_ID &ext_id, + const INT_ID &int_id, + EXT_ID &old_ext_id, + INT_ID &old_int_id, + ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::rebind"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->rebind_i (ext_id, int_id, old_ext_id, old_int_id); +} + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::find (const EXT_ID &ext_id, + INT_ID &int_id, + ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::find"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->find_i (ext_id, int_id); +} + +template <class EXT_ID, class INT_ID> ACE_INLINE int +ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::find (const EXT_ID &ext_id, + ACE_Allocator *alloc) +{ + ACE_TRACE ("ACE_Hash_Map_With_Allocator<EXT_ID, INT_ID>::find"); + this->table_allocator_ = alloc; + this->entry_allocator_ = alloc; + return this->find_i (ext_id); +} + +ACE_END_VERSIONED_NAMESPACE_DECL |