in a hash table holding the state of a Persistent Naming Context. More...
#include <Persistent_Entries.h>
Public Member Functions | |
TAO_Persistent_ExtId (void) | |
Constructor. | |
TAO_Persistent_ExtId (const char *id, const char *kind) | |
Constructor. | |
TAO_Persistent_ExtId (const TAO_Persistent_ExtId &rhs) | |
Copy constructor. | |
~TAO_Persistent_ExtId (void) | |
Destructor. | |
void | operator= (const TAO_Persistent_ExtId &rhs) |
Assignment operator (does copy memory). | |
bool | operator== (const TAO_Persistent_ExtId &rhs) const |
Equality comparison operator (must match both id_ and kind_). | |
bool | operator!= (const TAO_Persistent_ExtId &rhs) const |
Inequality comparison operator. | |
u_long | hash (void) const |
const char * | id (void) |
const char * | kind (void) |
Public Attributes | |
const char * | id_ |
const char * | kind_ |
in a hash table holding the state of a Persistent Naming Context.
This class holds id and kind strings, so they can be stored together as a <key> for a
in a hash table holding the state of a Persistent Naming Context. Memory for id and kind isn't allocated/deallocated, this class just copies pointers.
Definition at line 85 of file Persistent_Entries.h.
TAO_Persistent_ExtId::TAO_Persistent_ExtId | ( | void | ) |
TAO_Persistent_ExtId::TAO_Persistent_ExtId | ( | const char * | id, | |
const char * | kind | |||
) |
TAO_Persistent_ExtId::TAO_Persistent_ExtId | ( | const TAO_Persistent_ExtId & | rhs | ) |
TAO_Persistent_ExtId::~TAO_Persistent_ExtId | ( | void | ) |
u_long TAO_Persistent_ExtId::hash | ( | void | ) | const |
<hash> function is required in order for this class to be usable by ACE_Hash_Map_Manager.
Definition at line 102 of file Persistent_Entries.cpp.
References ACE_String_Base< CHAR >::hash(), id_, and kind_.
00103 { 00104 ACE_CString temp (id_); 00105 temp += kind_; 00106 00107 return temp.hash (); 00108 }
const char * TAO_Persistent_ExtId::id | ( | void | ) |
Definition at line 111 of file Persistent_Entries.cpp.
References id_.
00112 { 00113 return id_; 00114 }
const char * TAO_Persistent_ExtId::kind | ( | void | ) |
Definition at line 117 of file Persistent_Entries.cpp.
References kind_.
00118 { 00119 return kind_; 00120 }
bool TAO_Persistent_ExtId::operator!= | ( | const TAO_Persistent_ExtId & | rhs | ) | const |
Inequality comparison operator.
Definition at line 95 of file Persistent_Entries.cpp.
References id_, kind_, and ACE_OS::strcmp().
00096 { 00097 return (ACE_OS::strcmp (id_, rhs.id_) != 0) 00098 || (ACE_OS::strcmp (kind_, rhs.kind_) != 0); 00099 }
void TAO_Persistent_ExtId::operator= | ( | const TAO_Persistent_ExtId & | rhs | ) |
bool TAO_Persistent_ExtId::operator== | ( | const TAO_Persistent_ExtId & | rhs | ) | const |
Equality comparison operator (must match both id_ and kind_).
Definition at line 88 of file Persistent_Entries.cpp.
References id_, kind_, and ACE_OS::strcmp().
00089 { 00090 return (ACE_OS::strcmp (id_, rhs.id_) == 0) 00091 && (ACE_OS::strcmp (kind_, rhs.kind_) == 0); 00092 }
const char* TAO_Persistent_ExtId::id_ |
<id> portion of the name to be associated with some object reference in a Persistent Naming Context.
Definition at line 122 of file Persistent_Entries.h.
Referenced by hash(), id(), operator!=(), operator=(), operator==(), and TAO_Persistent_ExtId().
const char* TAO_Persistent_ExtId::kind_ |
<kind> portion of the name to be associated with some object reference in a Persistent Naming Context.
Definition at line 126 of file Persistent_Entries.h.
Referenced by hash(), kind(), operator!=(), operator=(), operator==(), and TAO_Persistent_ExtId().