TAO_Persistent_Index_IntId Class Reference

Helper class for TAO_Persistent_Context_Index: unifies several data items, so they can be stored together as a for a in a hash table holding the state of a Persistent Context Index. (Persistent Context Index is like directory that stores info about every active Naming Context). More...

#include <Persistent_Entries.h>

Collaboration diagram for TAO_Persistent_Index_IntId:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Persistent_Index_IntId (void)
 Constructor.

 TAO_Persistent_Index_IntId (ACE_UINT32 *counter, ACE_Hash_Map_With_Allocator< TAO_Persistent_ExtId, TAO_Persistent_IntId > *hash_map)
 Constructor.

 TAO_Persistent_Index_IntId (const TAO_Persistent_Index_IntId &rhs)
 Copy constructor.

 ~TAO_Persistent_Index_IntId (void)
 Destructor.

void operator= (const TAO_Persistent_Index_IntId &rhs)
 Assignment operator (does copy memory).


Public Attributes

ACE_UINT32 * counter_
 Pointer to a Persistent Naming Context's counter.

ACE_Hash_Map_With_Allocator<
TAO_Persistent_ExtId, TAO_Persistent_IntId > * 
hash_map_
 Pointer to a Persistent Naming Context's hash map.


Detailed Description

Helper class for TAO_Persistent_Context_Index: unifies several data items, so they can be stored together as a for a in a hash table holding the state of a Persistent Context Index. (Persistent Context Index is like directory that stores info about every active Naming Context).

This class holds a counter and a hash map pointers, so they can be stored together as a for a in a hash table holding the state of a Persistent Context Index.

Definition at line 147 of file Persistent_Entries.h.


Constructor & Destructor Documentation

TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId void   ) 
 

Constructor.

Definition at line 125 of file Persistent_Entries.cpp.

00126   : counter_ (0),
00127     hash_map_ (0)
00128 {
00129 }

TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId ACE_UINT32 *  counter,
ACE_Hash_Map_With_Allocator< TAO_Persistent_ExtId, TAO_Persistent_IntId > *  hash_map
 

Constructor.

Definition at line 131 of file Persistent_Entries.cpp.

00134   : counter_ (counter),
00135     hash_map_ (hash_map)
00136 {
00137 }

TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId const TAO_Persistent_Index_IntId rhs  ) 
 

Copy constructor.

Definition at line 139 of file Persistent_Entries.cpp.

References counter_, and hash_map_.

00140 {
00141   counter_ = rhs.counter_;
00142   hash_map_ = rhs.hash_map_;
00143 }

TAO_Persistent_Index_IntId::~TAO_Persistent_Index_IntId void   ) 
 

Destructor.

Definition at line 145 of file Persistent_Entries.cpp.

00146 {
00147 }


Member Function Documentation

void TAO_Persistent_Index_IntId::operator= const TAO_Persistent_Index_IntId rhs  ) 
 

Assignment operator (does copy memory).

Definition at line 150 of file Persistent_Entries.cpp.

References counter_, and hash_map_.

00151 {
00152   // check for self assignment.
00153   if (&rhs == this)
00154     return;
00155 
00156   counter_ = rhs.counter_;
00157   hash_map_ = rhs.hash_map_;
00158 }


Member Data Documentation

ACE_UINT32* TAO_Persistent_Index_IntId::counter_
 

Pointer to a Persistent Naming Context's counter.

Definition at line 171 of file Persistent_Entries.h.

Referenced by operator=(), TAO_Persistent_Index_IntId(), and TAO_Persistent_Context_Index::unbind().

ACE_Hash_Map_With_Allocator<TAO_Persistent_ExtId, TAO_Persistent_IntId>* TAO_Persistent_Index_IntId::hash_map_
 

Pointer to a Persistent Naming Context's hash map.

Definition at line 175 of file Persistent_Entries.h.

Referenced by operator=(), and TAO_Persistent_Index_IntId().


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:57:44 2006 for TAO_CosNaming by doxygen 1.3.6