Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_Hash_Map_Manager Class Template Reference

Wrapper for backward compatibility. More...

#include <Hash_Map_Manager_T.h>

Inheritance diagram for ACE_Hash_Map_Manager:

Inheritance graph
[legend]
Collaboration diagram for ACE_Hash_Map_Manager:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Hash_Map_Manager (ACE_Allocator *alloc=0)
 Initialize a <Hash_Map_Manager> with default size. More...

 ACE_Hash_Map_Manager (size_t size, ACE_Allocator *alloc=0)
 Initialize a <Hash_Map_Manager> with size <length>. More...

int equal (const EXT_ID &id1, const EXT_ID &id2)
u_long hash (const EXT_ID &ext_id)

Detailed Description

template<class EXT_ID, class INT_ID, class ACE_LOCK>
class ACE_Hash_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >

Wrapper for backward compatibility.

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

Definition at line 848 of file Hash_Map_Manager_T.h.


Constructor & Destructor Documentation

template<class EXT_ID, class INT_ID, class ACE_LOCK>
ACE_Hash_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::ACE_Hash_Map_Manager ACE_Allocator   alloc = 0
 

Initialize a <Hash_Map_Manager> with default size.

Definition at line 859 of file Hash_Map_Manager_T.i.

template<class EXT_ID, class INT_ID, class ACE_LOCK>
ACE_Hash_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::ACE_Hash_Map_Manager size_t    size,
ACE_Allocator   alloc = 0
 

Initialize a <Hash_Map_Manager> with size <length>.

Definition at line 865 of file Hash_Map_Manager_T.i.

00867   : ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, ACE_Hash<EXT_ID>, ACE_Equal_To<EXT_ID>, ACE_LOCK> (size,
00868                                                                                                alloc)
00869 {
00870 }


Member Function Documentation

template<class EXT_ID, class INT_ID, class ACE_LOCK>
int ACE_Hash_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::equal const EXT_ID &    id1,
const EXT_ID &    id2
 

Reimplemented from ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, ACE_Hash< EXT_ID >, ACE_Equal_To< EXT_ID >, ACE_LOCK >.

Definition at line 873 of file Hash_Map_Manager_T.i.

00874 {
00875   return ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, ACE_Hash<EXT_ID>, ACE_Equal_To<EXT_ID>, ACE_LOCK>::equal (id1, id2);
00876 }

template<class EXT_ID, class INT_ID, class ACE_LOCK>
u_long ACE_Hash_Map_Manager< EXT_ID, INT_ID, ACE_LOCK >::hash const EXT_ID &    ext_id
 

Reimplemented from ACE_Hash_Map_Manager_Ex< EXT_ID, INT_ID, ACE_Hash< EXT_ID >, ACE_Equal_To< EXT_ID >, ACE_LOCK >.

Definition at line 879 of file Hash_Map_Manager_T.i.

00880 {
00881   return ACE_Hash_Map_Manager_Ex<EXT_ID, INT_ID, ACE_Hash<EXT_ID>, ACE_Equal_To<EXT_ID>, ACE_LOCK>::hash (ext_id);
00882 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:48:42 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002