#include <Operation_Table.h>
Inheritance diagram for TAO_Perfect_Hash_OpTable:
Public Methods | |
TAO_Perfect_Hash_OpTable (void) | |
Do nothing constructor. More... | |
virtual | ~TAO_Perfect_Hash_OpTable (void) |
Do nothing destrctor. 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... | |
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... | |
Private Methods | |
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 |
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.
|
Do nothing constructor.
|
|
Do nothing destrctor.
|
|
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. |
|
|