TAO_PortableServer
2.0.8
|
Helper class for use of perfect hashing operation lookup strategy. More...
#include <Operation_Table_Perfect_Hash.h>
Public Member Functions | |
virtual | ~TAO_Perfect_Hash_OpTable (void) |
Do nothing destrctor. | |
virtual int | find (const char *opname, TAO_Skeleton &skelfunc, const unsigned int length=0) |
See the documentation in the base class for details. | |
virtual int | find (const char *opname, TAO_Collocated_Skeleton &skelfunc, TAO::Collocation_Strategy s, const unsigned int length=0) |
virtual int | bind (const char *opname, const TAO::Operation_Skeletons skel_ptr) |
Private Member Functions | |
virtual unsigned int | hash (const char *str, unsigned int len)=0 |
virtual const TAO_operation_db_entry * | lookup (const char *str, unsigned int len)=0 |
Helper class for use of perfect hashing operation lookup strategy.
This class declares pure virtual methods called 'lookup ()' and 'hash ()' which will be generated by the GPERF program. These methods are used by 'bind ()' and 'find ()' methods. Subclasses will define the lookup and hash functions.
TAO_Perfect_Hash_OpTable::~TAO_Perfect_Hash_OpTable | ( | void | ) | [virtual] |
Do nothing destrctor.
int TAO_Perfect_Hash_OpTable::bind | ( | const char * | opname, |
const TAO::Operation_Skeletons | skel_ptr | ||
) | [virtual] |
Associate the skeleton skel_ptr with an operation named opname. Returns -1 on failure, 0 on success, 1 on duplicate.
Implements TAO_Operation_Table.
int TAO_Perfect_Hash_OpTable::find | ( | const char * | opname, |
TAO_Skeleton & | skelfunc, | ||
const unsigned int | length = 0 |
||
) | [virtual] |
See the documentation in the base class for details.
Implements TAO_Operation_Table.
int TAO_Perfect_Hash_OpTable::find | ( | const char * | opname, |
TAO_Collocated_Skeleton & | skelfunc, | ||
TAO::Collocation_Strategy | s, | ||
const unsigned int | length = 0 |
||
) | [virtual] |
Uses opname to look up the collocated skeleton function and pass it back in skelfunc. Returns non-negative integer on success, or -1 on failure.
Implements TAO_Operation_Table.
virtual unsigned int TAO_Perfect_Hash_OpTable::hash | ( | const char * | str, |
unsigned int | len | ||
) | [private, pure virtual] |
Implemented in TAO_CORBA_Policy_Perfect_Hash_OpTable.
virtual const TAO_operation_db_entry* TAO_Perfect_Hash_OpTable::lookup | ( | const char * | str, |
unsigned int | len | ||
) | [private, pure virtual] |
Implemented in TAO_CORBA_Policy_Perfect_Hash_OpTable.