#include <Operation_Table.h>
Inheritance diagram for TAO_Dynamic_Hash_OpTable:
Public Methods | |
TAO_Dynamic_Hash_OpTable (const TAO_operation_db_entry *db, CORBA::ULong dbsize, CORBA::ULong hashtblsize, ACE_Allocator *alloc) | |
Initialize the dynamic hash operation table with a database of operation names. More... | |
~TAO_Dynamic_Hash_OpTable (void) | |
Destructor. More... | |
virtual int | bind (const char *opname, const TAO_Skeleton skel_ptr) |
Associate the skeleton <{skel_ptr}> with an operation named <{opname}>. Returns -1 on failure, 0 on success, 1 on duplicate. More... | |
virtual int | find (const char *opname, TAO_Skeleton &skelfunc, const unsigned int length=0) |
Uses <{opname}> to look up the skeleton function and pass it back in <{skelfunc}>. More... | |
Private Types | |
typedef ACE_Hash_Map_Manager_Ex< const char *, TAO_Skeleton, ACE_Hash< const char *>, ACE_Equal_To< const char *>, ACE_Null_Mutex > | OP_MAP_MANAGER |
Private Attributes | |
OP_MAP_MANAGER | hash_ |
The hash table data structure. More... |
|
|
|
Initialize the dynamic hash operation table with a database of operation names. The hash table size may be different from the size of the database. Hence we use the third argument to specify the size of the internal hash table. The <alloc> argument is used to determine where the memory comes from (usually from <ACE_Static_Allocator_Base>). |
|
Destructor.
|
|
Associate the skeleton <{skel_ptr}> with an operation named <{opname}>. Returns -1 on failure, 0 on success, 1 on duplicate.
Reimplemented from TAO_Operation_Table. |
|
Uses <{opname}> to look up the skeleton function and pass it back in <{skelfunc}>. Returns non-negative integer on success, or -1 on failure. Reimplemented from TAO_Operation_Table. |
|
The hash table data structure.
|