template<class EXT_ID, class INT_ID> class ACE_Hash_Map_With_Allocator : public ACE_Hash_Map_Manager<EXT_ID, INT_ID, ACE_Null_Mutex> {
public:
ACE_Hash_Map_With_Allocator (ACE_Allocator *alloc);
ACE_Hash_Map_With_Allocator (size_t size, ACE_Allocator *alloc);
int bind (const EXT_ID &, const INT_ID &, ACE_Allocator *alloc);
int unbind (const EXT_ID &, INT_ID &, ACE_Allocator *alloc);
int unbind (const EXT_ID &, ACE_Allocator *alloc);
int rebind ( const EXT_ID &, const INT_ID &, EXT_ID &, INT_ID &, ACE_Allocator *alloc );
int find (const EXT_ID &, INT_ID &, ACE_Allocator *alloc);
int find (const EXT_ID &, ACE_Allocator *alloc);
int close (ACE_Allocator *alloc);
};
ACE_Hash_Map_Manager
. Each method sets the allocator to
the one specified by the invoking entity, and then calls the
corresponding method in ACE_Hash_Map_Manager
to do the
actual work.
int bind (const EXT_ID &, const INT_ID &, ACE_Allocator *alloc);
int unbind (const EXT_ID &, INT_ID &, ACE_Allocator *alloc);
int unbind (const EXT_ID &, ACE_Allocator *alloc);
int rebind (
const EXT_ID &,
const INT_ID &,
EXT_ID &,
INT_ID &,
ACE_Allocator *alloc
);
int find (const EXT_ID &, INT_ID &, ACE_Allocator *alloc);
int find (const EXT_ID &, ACE_Allocator *alloc);
ext_id
is in the mapping, otherwise -1.
int close (ACE_Allocator *alloc);