TAO_Active_Hint_Strategy Class Reference

Active hint strategy. More...

#include <Active_Object_Map.h>

Inheritance diagram for TAO_Active_Hint_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_Active_Hint_Strategy:

Collaboration graph
[legend]
List of all members.

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_

Detailed Description

Active hint strategy.

Strategy for adding active hints to ids.

Definition at line 564 of file Active_Object_Map.h.


Member Typedef Documentation

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 590 of file Active_Object_Map.h.


Constructor & Destructor Documentation

TAO_Active_Hint_Strategy::TAO_Active_Hint_Strategy CORBA::ULong  map_size  ) 
 

Definition at line 821 of file Active_Object_Map.cpp.

00822   : system_id_map_ (map_size)
00823 {
00824 }

TAO_Active_Hint_Strategy::~TAO_Active_Hint_Strategy void   )  [virtual]
 

Virtual destructor.

Definition at line 826 of file Active_Object_Map.cpp.

00827 {
00828 }


Member Function Documentation

int TAO_Active_Hint_Strategy::bind TAO_Active_Object_Map_Entry entry  )  [virtual]
 

Add to map.

Implements TAO_Id_Hint_Strategy.

Definition at line 839 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_.

00840 {
00841   entry.system_id_ = entry.user_id_;
00842 
00843   return this->system_id_map_.bind_modify_key (&entry,
00844                                                entry.system_id_);
00845 }

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 854 of file Active_Object_Map.cpp.

References ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::find(), and system_id_map_.

00856 {
00857   return this->system_id_map_.find (system_id,
00858                                     entry);
00859 }

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 862 of file Active_Object_Map.cpp.

References ACE_Active_Map_Manager_Key::size().

00863 {
00864   return ACE_Active_Map_Manager_Key::size ();
00865 }

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 831 of file Active_Object_Map.cpp.

References ACE_Active_Map_Manager_Adapter< KEY, VALUE, KEY_ADAPTER >::recover_key(), and system_id_map_.

00833 {
00834   return this->system_id_map_.recover_key (system_id,
00835                                            user_id);
00836 }

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 868 of file Active_Object_Map.cpp.

References ACE_NEW_RETURN, and TAO_Active_Object_Map_Entry::system_id_.

00870 {
00871   ACE_NEW_RETURN (system_id,
00872                   PortableServer::ObjectId (entry.system_id_),
00873                   -1);
00874   return 0;
00875 }

int TAO_Active_Hint_Strategy::unbind TAO_Active_Object_Map_Entry entry  )  [virtual]
 

Remove from map.

Implements TAO_Id_Hint_Strategy.

Definition at line 848 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().

00849 {
00850   return this->system_id_map_.unbind (entry.system_id_);
00851 }


Member Data Documentation

system_id_map TAO_Active_Hint_Strategy::system_id_map_
 

Definition at line 592 of file Active_Object_Map.h.

Referenced by bind(), find(), recover_key(), and unbind().


The documentation for this class was generated from the following files:
Generated on Sun Jan 27 13:27:04 2008 for TAO_PortableServer by doxygen 1.3.6