#include <Storable_Naming_Context.h>
Public Member Functions | |
TAO_Storable_ExtId (void) | |
Constructor. | |
TAO_Storable_ExtId (const char *id, const char *kind) | |
Constructor. | |
TAO_Storable_ExtId (const TAO_Storable_ExtId &rhs) | |
Copy constructor. | |
~TAO_Storable_ExtId (void) | |
Destructor. | |
void | operator= (const TAO_Storable_ExtId &rhs) |
Assignment operator (does copy memory). | |
bool | operator== (const TAO_Storable_ExtId &rhs) const |
Equality comparison operator (must match both id_ and kind_). | |
bool | operator!= (const TAO_Storable_ExtId &rhs) const |
Inequality comparison operator. | |
u_long | hash (void) const |
const char * | id (void) |
const char * | kind (void) |
Public Attributes | |
CORBA::String_var | id_ |
CORBA::String_var | kind_ |
|
Constructor.
Definition at line 65 of file Storable_Naming_Context.cpp.
|
|
Constructor.
Definition at line 71 of file Storable_Naming_Context.cpp.
|
|
Copy constructor.
Definition at line 78 of file Storable_Naming_Context.cpp.
|
|
Destructor.
Definition at line 84 of file Storable_Naming_Context.cpp.
00085 { 00086 } |
|
function is required in order for this class to be usable by ACE_Hash_Map_Manager. Definition at line 114 of file Storable_Naming_Context.cpp. References ACE_CString.
00115 { 00116 // @CJC I wager this could be optimized a bit better, but I'm not 00117 // sure how much it's called. At the very least, we could allocate 00118 // just one ACE_CString, and copy id_ and kind_ into that, rather than 00119 // taking a double-hit on allocations. 00120 ACE_CString temp (id_.in()); 00121 temp += kind_.in(); 00122 00123 return temp.hash (); 00124 } |
|
Definition at line 127 of file Storable_Naming_Context.cpp.
00128 { 00129 return id_.in(); 00130 } |
|
Definition at line 133 of file Storable_Naming_Context.cpp.
00134 { 00135 return kind_.in(); 00136 } |
|
Inequality comparison operator.
Definition at line 107 of file Storable_Naming_Context.cpp. References id_, kind_, and ACE_OS::strcmp().
00108 { 00109 return (ACE_OS::strcmp (id_.in(), rhs.id_.in()) != 0) 00110 || (ACE_OS::strcmp (kind_.in(), rhs.kind_.in()) != 0); 00111 } |
|
Assignment operator (does copy memory).
Definition at line 89 of file Storable_Naming_Context.cpp.
|
|
Equality comparison operator (must match both id_ and kind_).
Definition at line 100 of file Storable_Naming_Context.cpp. References id_, kind_, and ACE_OS::strcmp().
00101 { 00102 return (ACE_OS::strcmp (id_.in(), rhs.id_.in()) == 0) 00103 && (ACE_OS::strcmp (kind_.in(), rhs.kind_.in()) == 0); 00104 } |
|
portion of the name to be associated with some object reference in a Storable Naming Context. Definition at line 95 of file Storable_Naming_Context.h. Referenced by operator!=(), operator=(), operator==(), and TAO_Storable_ExtId(). |
|
portion of the name to be associated with some object reference in a Storable Naming Context. Definition at line 99 of file Storable_Naming_Context.h. Referenced by operator!=(), operator=(), operator==(), and TAO_Storable_ExtId(). |