summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/LocalObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/LocalObject.cpp')
-rw-r--r--cppe/src/IceE/LocalObject.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/cppe/src/IceE/LocalObject.cpp b/cppe/src/IceE/LocalObject.cpp
new file mode 100644
index 00000000000..caa268678aa
--- /dev/null
+++ b/cppe/src/IceE/LocalObject.cpp
@@ -0,0 +1,41 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2005 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICEE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#include <IceE/LocalObject.h>
+
+using namespace std;
+using namespace IceE;
+using namespace IceEInternal;
+
+void IceEInternal::incRef(LocalObject* p) { p->__incRef(); }
+void IceEInternal::decRef(LocalObject* p) { p->__decRef(); }
+
+bool
+IceE::LocalObject::operator==(const LocalObject& r) const
+{
+ return this == &r;
+}
+
+bool
+IceE::LocalObject::operator!=(const LocalObject& r) const
+{
+ return this != &r;
+}
+
+bool
+IceE::LocalObject::operator<(const LocalObject& r) const
+{
+ return this < &r;
+}
+
+Int
+IceE::LocalObject::ice_hash() const
+{
+ return static_cast<Int>(reinterpret_cast<Long>(this) >> 4);
+}