#include <Hash_Map_Manager_T.h>
Inheritance diagram for ACE_Hash_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >:
Public Methods | |
ACE_Hash_Map_Manager (ACE_Allocator *alloc=0) | |
Initialize a <Hash_Map_Manager> with default size. | |
ACE_Hash_Map_Manager (size_t size, ACE_Allocator *alloc=0) | |
Initialize a <Hash_Map_Manager> with size <length>. | |
int | equal (const EXT_ID &id1, const EXT_ID &id2) |
u_long | hash (const EXT_ID &ext_id) |
This implementation of a map uses a hash table. This class expects that the <EXT_ID> contains a method called <hash>. In addition, the <EXT_ID> must support <operator==>. Both of these constraints can be alleviated via template specialization, as shown in the $ACE_ROOT/tests/Conn_Test.cpp test.
Requirements and Performance Characteristics
|
Initialize a <Hash_Map_Manager> with default size.
|
|
Initialize a <Hash_Map_Manager> with size <length>.
|
|
Returns 1 if <id1> == <id2>, else 0. This is defined as a separate method to facilitate template specialization. Reimplemented from ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, ACE_Hash< EXT_ID >, ACE_Equal_To< EXT_ID >, ACE_LOCK >. |
|
Compute the hash value of the <ext_id>. This is defined as a separate method to facilitate template specialization. Reimplemented from ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, ACE_Hash< EXT_ID >, ACE_Equal_To< EXT_ID >, ACE_LOCK >. |