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 <key> 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 <ref_>.


Detailed Description

Helper class for TAO_Persistent_Bindings_Map: unifies several data items, so they can be stored together as a

for a <key> 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 <key> 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 18 of file Persistent_Entries.cpp.

00019   : ref_ (0),
00020     type_ (CosNaming::nobject)
00021 {
00022 }

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

Constructor.

Definition at line 24 of file Persistent_Entries.cpp.

00026   : ref_ (obj_ref),
00027     type_ (type)
00028 {
00029 }

TAO_Persistent_IntId::TAO_Persistent_IntId ( const TAO_Persistent_IntId rhs  ) 

Copy constructor.

Definition at line 31 of file Persistent_Entries.cpp.

References ref_, and type_.

00032 {
00033   ref_ = rhs.ref_;
00034   type_ = rhs.type_;
00035 }

TAO_Persistent_IntId::~TAO_Persistent_IntId ( void   ) 

Destructor.

Definition at line 37 of file Persistent_Entries.cpp.

00038 {
00039 }


Member Function Documentation

void TAO_Persistent_IntId::operator= ( const TAO_Persistent_IntId rhs  ) 

Assignment operator.

Definition at line 42 of file Persistent_Entries.cpp.

References ref_, and type_.

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


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 <ref_>.

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 Tue Feb 2 17:49:10 2010 for TAO_CosNaming by  doxygen 1.4.7