#include <Active_Object_Map.h>
Inheritance diagram for TAO_Active_Hint_Strategy:
Public Types | |
typedef ACE_Active_Map_Manager_Adapter< PortableServer::ObjectId, TAO_Active_Object_Map_Entry *, TAO_Preserve_Original_Key_Adapter > | system_id_map |
Public Member Functions | |
TAO_Active_Hint_Strategy (CORBA::ULong map_size) | |
virtual | ~TAO_Active_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. | |
Public Attributes | |
system_id_map | system_id_map_ |
Strategy for adding active hints to ids.
Definition at line 638 of file Active_Object_Map.h.
typedef ACE_Active_Map_Manager_Adapter< PortableServer::ObjectId, TAO_Active_Object_Map_Entry *, TAO_Preserve_Original_Key_Adapter> TAO_Active_Hint_Strategy::system_id_map |
Definition at line 670 of file Active_Object_Map.h.
TAO_Active_Hint_Strategy::TAO_Active_Hint_Strategy | ( | CORBA::ULong | map_size | ) |
Definition at line 980 of file Active_Object_Map.cpp.
00981 : system_id_map_ (map_size) 00982 { 00983 }
TAO_Active_Hint_Strategy::~TAO_Active_Hint_Strategy | ( | void | ) | [virtual] |
int TAO_Active_Hint_Strategy::bind | ( | TAO_Active_Object_Map_Entry & | entry | ) | [virtual] |
Add to map.
Implements TAO_Id_Hint_Strategy.
Definition at line 998 of file Active_Object_Map.cpp.
References ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::bind_modify_key(), TAO_Active_Object_Map_Entry::system_id_, system_id_map_, and TAO_Active_Object_Map_Entry::user_id_.
00999 { 01000 entry.system_id_ = entry.user_id_; 01001 01002 return this->system_id_map_.bind_modify_key (&entry, 01003 entry.system_id_); 01004 }
int TAO_Active_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 1013 of file Active_Object_Map.cpp.
References ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::find(), and system_id_map_.
01015 { 01016 return this->system_id_map_.find (system_id, 01017 entry); 01018 }
size_t TAO_Active_Hint_Strategy::hint_size | ( | void | ) | [virtual] |
How big is the hint generated by this strategy?
Implements TAO_Id_Hint_Strategy.
Definition at line 1021 of file Active_Object_Map.cpp.
References ACE_Active_Map_Manager_Key::size().
01022 { 01023 return ACE_Active_Map_Manager_Key::size (); 01024 }
int TAO_Active_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 990 of file Active_Object_Map.cpp.
References ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::recover_key(), and system_id_map_.
00993 { 00994 return this->system_id_map_.recover_key (system_id, user_id); 00995 }
int TAO_Active_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 1027 of file Active_Object_Map.cpp.
References ACE_NEW_RETURN, and TAO_Active_Object_Map_Entry::system_id_.
01029 { 01030 ACE_NEW_RETURN (system_id, 01031 PortableServer::ObjectId (entry.system_id_), 01032 -1); 01033 return 0; 01034 }
int TAO_Active_Hint_Strategy::unbind | ( | TAO_Active_Object_Map_Entry & | entry | ) | [virtual] |
Remove from map.
Implements TAO_Id_Hint_Strategy.
Definition at line 1007 of file Active_Object_Map.cpp.
References TAO_Active_Object_Map_Entry::system_id_, system_id_map_, and ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::unbind().
01008 { 01009 return this->system_id_map_.unbind (entry.system_id_); 01010 }
Definition at line 672 of file Active_Object_Map.h.
Referenced by bind(), find(), recover_key(), and unbind().