#include <Hash_Naming_Context.h>
Inheritance diagram for TAO_Bindings_Map:
Public Member Functions | |
virtual | ~TAO_Bindings_Map (void) |
Destructor. | |
virtual size_t | current_size (void)=0 |
virtual int | bind (const char *id, const char *kind, CORBA::Object_ptr obj, CosNaming::BindingType type)=0 |
virtual int | rebind (const char *id, const char *kind, CORBA::Object_ptr obj, CosNaming::BindingType type)=0 |
virtual int | unbind (const char *id, const char *kind)=0 |
virtual int | find (const char *id, const char *kind, CORBA::Object_ptr &obj, CosNaming::BindingType &type)=0 |
Define an interface for several hash-based data structures, so that we can write some code that would work with any of them, i.e., TAO_Hash_Naming_Context.
|
Destructor.
|
|
Add a binding with the specified parameters to the table. Return 0 on success and -1 on failure, 1 if there already is a binding with <id> and <kind>. Implemented in TAO_Persistent_Bindings_Map, TAO_Storable_Bindings_Map, and TAO_Transient_Bindings_Map. |
|
Return current number of entries (name bindings) in the underlying hash map. Implemented in TAO_Persistent_Bindings_Map, TAO_Storable_Bindings_Map, and TAO_Transient_Bindings_Map. |
|
Find the binding containing <id> and <kind> in the table, and pass binding's type and object back to the caller by reference. Return 0 on success and -1 on failure. Note: a 'duplicated' object reference is assigned to <obj>, so the caller is responsible for its deallocation. Implemented in TAO_Persistent_Bindings_Map, TAO_Storable_Bindings_Map, and TAO_Transient_Bindings_Map. |
|
Overwrite a binding containing <id> and <kind> (or create a new one if one doesn't exist) with the specified parameters. Returns -1 on failure. Implemented in TAO_Persistent_Bindings_Map, TAO_Storable_Bindings_Map, and TAO_Transient_Bindings_Map. |
|
Remove a binding containing <id> and <kind> from the table. Return 0 on success and -1 on failure. Implemented in TAO_Persistent_Bindings_Map, TAO_Storable_Bindings_Map, and TAO_Transient_Bindings_Map. |