diff options
author | Marc Laukien <marc@zeroc.com> | 2001-12-13 01:26:44 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2001-12-13 01:26:44 +0000 |
commit | d4a6568afbb9e923c23fcfd173bceb09a1dec158 (patch) | |
tree | e33516c3c57906bd47fcc409a98f58b49c3b5066 /cpp/src/Ice/LocalObject.cpp | |
parent | bug fixes (diff) | |
download | ice-d4a6568afbb9e923c23fcfd173bceb09a1dec158.tar.bz2 ice-d4a6568afbb9e923c23fcfd173bceb09a1dec158.tar.xz ice-d4a6568afbb9e923c23fcfd173bceb09a1dec158.zip |
comparison operators; started with Connection
Diffstat (limited to 'cpp/src/Ice/LocalObject.cpp')
-rw-r--r-- | cpp/src/Ice/LocalObject.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/cpp/src/Ice/LocalObject.cpp b/cpp/src/Ice/LocalObject.cpp index b4efdd39bb9..1db685549ae 100644 --- a/cpp/src/Ice/LocalObject.cpp +++ b/cpp/src/Ice/LocalObject.cpp @@ -16,3 +16,27 @@ using namespace IceInternal; void IceInternal::incRef(LocalObject* p) { p->__incRef(); } void IceInternal::decRef(LocalObject* p) { p->__decRef(); } + +bool +Ice::LocalObject::operator==(const LocalObject& r) const +{ + return this == &r; +} + +bool +Ice::LocalObject::operator!=(const LocalObject& r) const +{ + return this != &r; +} + +bool +Ice::LocalObject::operator<(const LocalObject& r) const +{ + return this < &r; +} + +Int +Ice::LocalObject::ice_hash() const +{ + return reinterpret_cast<Int>(this) >> 4; +} |