#include <Active_Object_Map.h>
Inheritance diagram for TAO_No_Hint_Strategy:
Public Member Functions | |
virtual | ~TAO_No_Hint_Strategy (void) |
Virtual destructor. | |
virtual int | recover_key (const PortableServer::ObjectId &system_id, PortableServer::ObjectId &user_id) |
Find the user id from the system id. | |
virtual int | bind (TAO_Active_Object_Map_Entry &entry) |
Add to map. | |
virtual int | unbind (TAO_Active_Object_Map_Entry &entry) |
Remove from map. | |
virtual int | find (const PortableServer::ObjectId &system_id, TAO_Active_Object_Map_Entry *&entry) |
Find system id. | |
virtual size_t | hint_size (void) |
How big is the hint generated by this strategy? | |
virtual int | system_id (PortableServer::ObjectId_out system_id, TAO_Active_Object_Map_Entry &entry) |
Get the system id associated with this entry. |
Strategy for not adding active hints to ids.
Definition at line 682 of file Active_Object_Map.h.
TAO_No_Hint_Strategy::~TAO_No_Hint_Strategy | ( | void | ) | [virtual] |
int TAO_No_Hint_Strategy::bind | ( | TAO_Active_Object_Map_Entry & | entry | ) | [virtual] |
int TAO_No_Hint_Strategy::find | ( | const PortableServer::ObjectId & | system_id, | |
TAO_Active_Object_Map_Entry *& | entry | |||
) | [virtual] |
Find system id.
Implements TAO_Id_Hint_Strategy.
Definition at line 1068 of file Active_Object_Map.cpp.
size_t TAO_No_Hint_Strategy::hint_size | ( | void | ) | [virtual] |
How big is the hint generated by this strategy?
Implements TAO_Id_Hint_Strategy.
Definition at line 1075 of file Active_Object_Map.cpp.
int TAO_No_Hint_Strategy::recover_key | ( | const PortableServer::ObjectId & | system_id, | |
PortableServer::ObjectId & | user_id | |||
) | [virtual] |
Find the user id from the system id.
Implements TAO_Id_Hint_Strategy.
Definition at line 1043 of file Active_Object_Map.cpp.
01045 { 01046 // Smartly copy all the data; <user_id does not own the data>. 01047 user_id.replace (system_id.maximum (), 01048 system_id.length (), 01049 const_cast<CORBA::Octet *> (system_id.get_buffer ()), 01050 0); 01051 01052 return 0; 01053 }
int TAO_No_Hint_Strategy::system_id | ( | PortableServer::ObjectId_out | system_id, | |
TAO_Active_Object_Map_Entry & | entry | |||
) | [virtual] |
Get the system id associated with this entry.
Implements TAO_Id_Hint_Strategy.
Definition at line 1081 of file Active_Object_Map.cpp.
References ACE_NEW_RETURN, and TAO_Active_Object_Map_Entry::user_id_.
01083 { 01084 ACE_NEW_RETURN (system_id, 01085 PortableServer::ObjectId (entry.user_id_), 01086 -1); 01087 return 0; 01088 }
int TAO_No_Hint_Strategy::unbind | ( | TAO_Active_Object_Map_Entry & | entry | ) | [virtual] |
Remove from map.
Implements TAO_Id_Hint_Strategy.
Definition at line 1062 of file Active_Object_Map.cpp.