TAO_Persistent_IntId Class Reference

Helper class for TAO_Persistent_Bindings_Map: unifies several data items, so they can be stored together as a for a in a hash table holding the state of a Persistent Naming Context. More...

#include <Persistent_Entries.h>

List of all members.

Public Member Functions

 TAO_Persistent_IntId (void)
 Constructor.

 TAO_Persistent_IntId (char *obj_ref, CosNaming::BindingType type)
 Constructor.

 TAO_Persistent_IntId (const TAO_Persistent_IntId &rhs)
 Copy constructor.

 ~TAO_Persistent_IntId (void)
 Destructor.

void operator= (const TAO_Persistent_IntId &rhs)
 Assignment operator.


Public Attributes

const char * ref_
 Stringified IOR to be stored in a Persistent Naming Context.

CosNaming::BindingType type_
 Binding type for .


Detailed Description

Helper class for TAO_Persistent_Bindings_Map: unifies several data items, so they can be stored together as a for a in a hash table holding the state of a Persistent Naming Context.

This class holds a strigified IOR and a binding type, so they can be stored together as a for a in a hash table holding the state of a Persistent Naming Context. Memory for the ior isn't allocated/deallocated, this class just copies a pointer.

Definition at line 42 of file Persistent_Entries.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Persistent_IntId::TAO_Persistent_IntId void   ) 
 

Constructor.

Definition at line 21 of file Persistent_Entries.cpp.

00022   : ref_ (0),
00023     type_ (CosNaming::nobject)
00024 {
00025 }

TAO_Persistent_IntId::TAO_Persistent_IntId char *  obj_ref,
CosNaming::BindingType  type
 

Constructor.

Definition at line 27 of file Persistent_Entries.cpp.

00029   : ref_ (obj_ref),
00030     type_ (type)
00031 {
00032 }

TAO_Persistent_IntId::TAO_Persistent_IntId const TAO_Persistent_IntId rhs  ) 
 

Copy constructor.

Definition at line 34 of file Persistent_Entries.cpp.

References ref_, and type_.

00035 {
00036   ref_ = rhs.ref_;
00037   type_ = rhs.type_;
00038 }

TAO_Persistent_IntId::~TAO_Persistent_IntId void   ) 
 

Destructor.

Definition at line 40 of file Persistent_Entries.cpp.

00041 {
00042 }


Member Function Documentation

void TAO_Persistent_IntId::operator= const TAO_Persistent_IntId rhs  ) 
 

Assignment operator.

Definition at line 45 of file Persistent_Entries.cpp.

References ref_, and type_.

00046 {
00047   // check for self assignment.
00048   if (&rhs == this)
00049     return;
00050 
00051   type_ = rhs.type_;
00052   ref_ = rhs.ref_;
00053 }


Member Data Documentation

const char* TAO_Persistent_IntId::ref_
 

Stringified IOR to be stored in a Persistent Naming Context.

Definition at line 65 of file Persistent_Entries.h.

Referenced by TAO_Persistent_Bindings_Map::find(), operator=(), TAO_Persistent_Bindings_Map::shared_bind(), TAO_Persistent_IntId(), and TAO_Persistent_Bindings_Map::unbind().

CosNaming::BindingType TAO_Persistent_IntId::type_
 

Binding type for .

Definition at line 68 of file Persistent_Entries.h.

Referenced by TAO_Persistent_Bindings_Map::find(), operator=(), TAO_Persistent_Bindings_Map::shared_bind(), and TAO_Persistent_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