TAO_PortableServer 4.0.0
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
TAO_Binary_Search_OpTable Class Referenceabstract

Helper class for using binary search operatin lookup strategy in the server skeletons. More...

#include <Operation_Table_Binary_Search.h>

Inheritance diagram for TAO_Binary_Search_OpTable:
Inheritance graph
[legend]
Collaboration diagram for TAO_Binary_Search_OpTable:
Collaboration graph
[legend]

Public Member Functions

 ~TAO_Binary_Search_OpTable () override=default
 Do nothing destructor.
 
int find (const char *opname, TAO_Skeleton &skelfunc, const unsigned int length=0) override
 See the documentation in the base class for details.
 
int find (const char *opname, TAO_Collocated_Skeleton &skelfunc, TAO::Collocation_Strategy s, const unsigned int length=0) override
 
int bind (const char *opname, const TAO::Operation_Skeletons skel_ptr) override
 
- Public Member Functions inherited from TAO_Operation_Table
virtual ~TAO_Operation_Table ()
 

Private Member Functions

virtual const TAO_operation_db_entrylookup (const char *str)=0
 

Detailed Description

Helper class for using binary search operatin lookup strategy in the server skeletons.

This class declares pure virtual method called 'lookup ()' which will be generated by the GPERF program. This method is used by 'bind ()' and 'find ()' methods. Subclasses will define the lookup method.

Constructor & Destructor Documentation

◆ ~TAO_Binary_Search_OpTable()

TAO_Binary_Search_OpTable::~TAO_Binary_Search_OpTable ( )
overridedefault

Do nothing destructor.

Member Function Documentation

◆ bind()

int TAO_Binary_Search_OpTable::bind ( const char * opname,
const TAO::Operation_Skeletons skel_ptr )
overridevirtual

Associate the skeleton skel_ptr with an operation named opname. Returns -1 on failure, 0 on success, 1 on duplicate.

Implements TAO_Operation_Table.

◆ find() [1/2]

int TAO_Binary_Search_OpTable::find ( const char * opname,
TAO_Collocated_Skeleton & skelfunc,
TAO::Collocation_Strategy s,
const unsigned int length = 0 )
overridevirtual

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.

◆ find() [2/2]

int TAO_Binary_Search_OpTable::find ( const char * opname,
TAO_Skeleton & skelfunc,
const unsigned int length = 0 )
overridevirtual

See the documentation in the base class for details.

Implements TAO_Operation_Table.

◆ lookup()

virtual const TAO_operation_db_entry * TAO_Binary_Search_OpTable::lookup ( const char * str)
privatepure virtual

Method that should defined by the subclasses. GPERF program will generate this routine routines.


The documentation for this class was generated from the following files: