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 122 of file Persistent_Entries.cpp.

00123   : counter_ (0),
00124     hash_map_ (0)
00125 {
00126 }

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 128 of file Persistent_Entries.cpp.

00131   : counter_ (counter),
00132     hash_map_ (hash_map)
00133 {
00134 }

TAO_Persistent_Index_IntId::TAO_Persistent_Index_IntId const TAO_Persistent_Index_IntId rhs  ) 
 

Copy constructor.

Definition at line 136 of file Persistent_Entries.cpp.

References counter_, and hash_map_.

00137 {
00138   counter_ = rhs.counter_;
00139   hash_map_ = rhs.hash_map_;
00140 }

TAO_Persistent_Index_IntId::~TAO_Persistent_Index_IntId void   ) 
 

Destructor.

Definition at line 142 of file Persistent_Entries.cpp.

00143 {
00144 }


Member Function Documentation

void TAO_Persistent_Index_IntId::operator= const TAO_Persistent_Index_IntId rhs  ) 
 

Assignment operator (does copy memory).

Definition at line 147 of file Persistent_Entries.cpp.

References counter_, and hash_map_.

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


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 Sun Jan 27 16:16:21 2008 for TAO_CosNaming by doxygen 1.3.6