ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID > Class Template ReferenceThis class is a thin wrapper around ACE_Hash_Map_Manager, which comes handy when ACE_Hash_Map_Manager is to be used with a non-nil ACE_Allocator. This wrapper insures that the appropriate allocator is in place for every operation that accesses or updates the hash map. More...
Inheritance diagram for ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >:
Collaboration diagram for ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >:
Detailed Descriptiontemplate<class EXT_ID, class INT_ID>
This class is a thin wrapper around ACE_Hash_Map_Manager, which comes handy when ACE_Hash_Map_Manager is to be used with a non-nil ACE_Allocator. This wrapper insures that the appropriate allocator is in place for every operation that accesses or updates the hash map.
|
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >::ACE_Hash_Map_With_Allocator | ( | ACE_Allocator * | alloc | ) | [inline] |
Constructor.
ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >::ACE_Hash_Map_With_Allocator | ( | size_t | size, | |
ACE_Allocator * | alloc | |||
) | [inline] |
Constructor that specifies hash table size.
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 | |||
) | [inline] |
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 | |||
) | [inline] |
ACE_INLINE int ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >::unbind | ( | const EXT_ID & | ext_id, | |
ACE_Allocator * | alloc | |||
) | [inline] |
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 | |||
) | [inline] |
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 | |||
) | [inline] |
ACE_INLINE int ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >::find | ( | const EXT_ID & | ext_id, | |
ACE_Allocator * | alloc | |||
) | [inline] |
Returns 0 if the ext_id is in the mapping, otherwise -1.
ACE_BEGIN_VERSIONED_NAMESPACE_DECL ACE_INLINE int ACE_Hash_Map_With_Allocator< EXT_ID, INT_ID >::close | ( | ACE_Allocator * | alloc | ) | [inline] |