Active hint strategy. More...
#include <Active_Object_Map.h>


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_ |
Active hint strategy.
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.
: system_id_map_ (map_size) { }
| 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.
{
entry.system_id_ = entry.user_id_;
return this->system_id_map_.bind_modify_key (&entry,
entry.system_id_);
}
| 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.
{
return this->system_id_map_.find (system_id,
entry);
}
| 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.
{
return ACE_Active_Map_Manager_Key::size ();
}
| 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.
{
return this->system_id_map_.recover_key (system_id, user_id);
}
| 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.
{
ACE_NEW_RETURN (system_id,
PortableServer::ObjectId (entry.system_id_),
-1);
return 0;
}
| 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.
{
return this->system_id_map_.unbind (entry.system_id_);
}
Definition at line 672 of file Active_Object_Map.h.
1.7.0