TAO_PortableGroup
2.3.1
|
Map of GroupIds to ObjectKeys. More...
#include <Portable_Group_Map.h>
Classes | |
struct | Map_Entry |
Value field of the portable group map. More... | |
Public Types | |
typedef ACE_Hash_Map_Manager_Ex < PortableGroup::TagGroupTaggedComponent *, Map_Entry *, TAO_GroupId_Hash, TAO_GroupId_Equal_To, ACE_Null_Mutex > | GroupId_Table |
Id hash map. More... | |
typedef GroupId_Table::iterator | Iterator |
Public Member Functions | |
TAO_Portable_Group_Map () | |
Constructor. More... | |
~TAO_Portable_Group_Map (void) | |
Destructor. More... | |
void | add_groupid_objectkey_pair (PortableGroup::TagGroupTaggedComponent *group_id, const TAO::ObjectKey &key) |
void | remove_groupid_objectkey_pair (const PortableGroup::TagGroupTaggedComponent *group_id, const TAO::ObjectKey &key) |
Remove a GroupId->ObjectKey mapping from the map. More... | |
void | dispatch (PortableGroup::TagGroupTaggedComponent *group_id, TAO_ORB_Core *orb_core, TAO_ServerRequest &request, CORBA::Object_out forward_to) |
Protected Attributes | |
TAO_SYNCH_RW_MUTEX | lock_ |
Lock used to synchronize access to map_. More... | |
GroupId_Table | map_ |
Id map. More... | |
Map of GroupIds to ObjectKeys.
typedef ACE_Hash_Map_Manager_Ex< PortableGroup::TagGroupTaggedComponent *, Map_Entry *, TAO_GroupId_Hash, TAO_GroupId_Equal_To, ACE_Null_Mutex> TAO_Portable_Group_Map::GroupId_Table |
Id hash map.
TAO_Portable_Group_Map::TAO_Portable_Group_Map | ( | ) |
Constructor.
TAO_Portable_Group_Map::~TAO_Portable_Group_Map | ( | void | ) |
Destructor.
void TAO_Portable_Group_Map::add_groupid_objectkey_pair | ( | PortableGroup::TagGroupTaggedComponent * | group_id, |
const TAO::ObjectKey & | key | ||
) |
Add a GroupId->ObjectKey mapping to the map. This function takes ownership of the memory pointed to be group_id
void TAO_Portable_Group_Map::dispatch | ( | PortableGroup::TagGroupTaggedComponent * | group_id, |
TAO_ORB_Core * | orb_core, | ||
TAO_ServerRequest & | request, | ||
CORBA::Object_out | forward_to | ||
) |
Dispatch a request to all of the ObjectIds that belong to the specified group.
void TAO_Portable_Group_Map::remove_groupid_objectkey_pair | ( | const PortableGroup::TagGroupTaggedComponent * | group_id, |
const TAO::ObjectKey & | key | ||
) |
Remove a GroupId->ObjectKey mapping from the map.
|
protected |
Lock used to synchronize access to map_.
|
protected |
Id map.