TAO_No_Hint_Strategy Class Reference

No hint strategy. More...

#include <Active_Object_Map.h>

Inheritance diagram for TAO_No_Hint_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO_No_Hint_Strategy:

Collaboration graph
[legend]
List of all members.

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.


Detailed Description

No hint strategy.

Strategy for not adding active hints to ids.

Definition at line 596 of file Active_Object_Map.h.


Constructor & Destructor Documentation

TAO_No_Hint_Strategy::~TAO_No_Hint_Strategy void   )  [virtual]
 

Virtual destructor.

Definition at line 879 of file Active_Object_Map.cpp.

00880 {
00881 }


Member Function Documentation

int TAO_No_Hint_Strategy::bind TAO_Active_Object_Map_Entry entry  )  [virtual]
 

Add to map.

Implements TAO_Id_Hint_Strategy.

Definition at line 897 of file Active_Object_Map.cpp.

00898 {
00899   ACE_UNUSED_ARG (entry);
00900 
00901   return 0;
00902 }

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

00915 {
00916   ACE_UNUSED_ARG (system_id);
00917   ACE_UNUSED_ARG (entry);
00918 
00919   return -1;
00920 }

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

00924 {
00925   return 0;
00926 }

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

00886 {
00887   // Smartly copy all the data; <user_id does not own the data>.
00888   user_id.replace (system_id.maximum (),
00889                    system_id.length (),
00890                    const_cast<CORBA::Octet *> (system_id.get_buffer ()),
00891                    0);
00892 
00893   return 0;
00894 }

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

References ACE_NEW_RETURN, and TAO_Active_Object_Map_Entry::user_id_.

00931 {
00932   ACE_NEW_RETURN (system_id,
00933                   PortableServer::ObjectId (entry.user_id_),
00934                   -1);
00935   return 0;
00936 }

int TAO_No_Hint_Strategy::unbind TAO_Active_Object_Map_Entry entry  )  [virtual]
 

Remove from map.

Implements TAO_Id_Hint_Strategy.

Definition at line 905 of file Active_Object_Map.cpp.

00906 {
00907   ACE_UNUSED_ARG (entry);
00908 
00909   return 0;
00910 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:45:35 2006 for TAO_PortableServer by doxygen 1.3.6